{"site": "project_search", "repo": "cobra", "task": "trouve la fonction qui vérifie si le message d'erreur contient le dépassement du nombre d'arguments autorisés", "query": "error max arguments", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lang": "fr", "candidates": [{"text": "File: fish_completions_test.go\nLine 133: Use: \"child\",", "file": "fish_completions_test.go", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 273: checkOmit(t, output, `local_nonpersistent_flags+=(\"--string-flag=\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 44: Section: \"3\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 72: }", "file": "powershell_completions.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 115: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 71: // MarkFlagCustom adds the BashCompCustom annotation to the named flag, if it exists.", "file": "shell_completions.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3433: \"Completion ended with directive: ShellCompDirectiveNoFileComp\", \"\"}, \"\\n\"),", "file": "completions_test.go", "symbol": "", "line": 3433, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 453: __%[1]s_process_completion_results", "file": "bash_completionsV2.go", "symbol": "", "line": 453, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 25: )", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 272: }", "file": "powershell_completions.go", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 580: const minNamePadding = 11", "file": "command.go", "symbol": "", "line": 580, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 129: if !child.IsAvailableCommand() || child.IsAdditionalHelpTopicCommand() {", "file": "doc/yaml_docs.go", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 77: func maximumNArgsWithMoreArgs(err error, t *testing.T) {", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: shell_completions.go\nLine 8: //", "file": "shell_completions.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 135: right, _ = strconv.ParseInt(bv.String(), 10, 64)", "file": "cobra.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 94: __%[1]s_debug \"Starting __%[1]s_perform_completion_once\"", "file": "fish_completions.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "bash_completions_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 62: return MarkFlagFilename(c.PersistentFlags(), name, extensions...)", "file": "shell_completions.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 129: if err != nil {", "file": "doc/man_docs.go", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 115: rootCmd := &Command{Use: \"root\", Args: NoArgs, Run: emptyRun}", "file": "command_test.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1744: t.Errorf(\"expected: %q, got: %q\", expected, output)", "file": "completions_test.go", "symbol": "", "line": 1744, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 20: \"path/filepath\"", "file": "doc/md_docs_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 10: default: all", "file": "Makefile", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "trouve la fonction qui vérifie si le message d'erreur contient le dépassement du nombre d'arguments autorisés", "query": "error max arguments", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lang": "fr", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines maximumNArgsWithMoreArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "trouve la fonction qui vérifie si le message d'erreur contient le dépassement du nombre d'arguments autorisés", "query": "error max arguments", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lang": "fr", "candidates": [{"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "trouve la fonction qui vérifie si le message d'erreur contient le dépassement du nombre d'arguments autorisés", "query": "error max arguments", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lang": "fr", "candidates": [{"text": "Next: read completions.go lines=604-627\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=412-435\nread getOut for detail", "file": "command.go", "symbol": "getOut", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=30-53\nread install_deps for detail", "file": "Makefile", "symbol": "install_deps", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=77-100\nread maximumNArgsWithMoreArgs for detail", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read Makefile lines=22-45\nread test for detail", "file": "Makefile", "symbol": "test", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=25-48\nread activeHelpMessage for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=716-739\nread TestDisableFlagParsing for detail", "file": "command_test.go", "symbol": "TestDisableFlagParsing", "line": 716, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=101-124\nread compCmdNoDescFlagName for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagName", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=281-304\nread SetArgs for detail", "file": "command.go", "symbol": "SetArgs", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=95-118\nread ShellCompDirectiveDefault for detail", "file": "completions.go", "symbol": "ShellCompDirectiveDefault", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=179-202\nread tmpl for detail", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2461-2484\nread TestDefaultCompletionCmd for detail", "file": "completions_test.go", "symbol": "TestDefaultCompletionCmd", "line": 2461, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=143-166\nread manPreamble for detail", "file": "doc/man_docs.go", "symbol": "manPreamble", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=781-804\nread findSuggestions for detail", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=174-197\nread res for detail", "file": "doc/rest_docs.go", "symbol": "res", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=311-334\nread SliceValue for detail", "file": "completions.go", "symbol": "SliceValue", "line": 311, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "特定のフラグに対して、シェル補完時にディレクトリ名のみが表示されるように制限する処理が正しく動作していない可能性があります。フラグのオプション名を指定して補完対象をディレクトリに限定するメソッドを確認してください。", "query": "shell completion directory", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lang": "ja", "candidates": [{"text": "File: bash_completions.go\nLine 148: __%[1]s_debug \"File filtering command: $filteringCmd\"", "file": "bash_completions.go", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 20: )", "file": "active_help.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 202: }", "file": "active_help_test.go", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 98: func BenchmarkGenReSTToFile(b *testing.B) {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 162: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 286: if err != nil {", "file": "fish_completions.go", "symbol": "", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 69: output, err = executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"thechild\", \"\")", "file": "active_help_test.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 5: // You may obtain a copy of the License at", "file": "args.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "zsh_completions.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 12: // See the License for the specific language governing permissions and", "file": "cobra.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 47: cobra.CheckErr(doc.GenMan(cmd, header, out))", "file": "doc/man_examples_test.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1168: assertNoErr(t, rootCmd.MarkFlagDirname(\"dir\"))", "file": "completions_test.go", "symbol": "", "line": 1168, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nLine 94: b.ResetTimer()", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 32: BashCompOneRequiredFlag = \"cobra_annotation_bash_completion_one_required_flag\"", "file": "bash_completions.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 39: subC.Flags().String(\"subonly\", \"\", \"\")", "file": "flag_groups_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 271: # but we don't want a space after the =", "file": "bash_completions.go", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 3: go 1.15", "file": "go.mod", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 83: func (c *Command) MarkFlagDirname(name string) error {", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra.go\nLine 169: }", "file": "cobra.go", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 259: # Check for empty description and only add parentheses if needed", "file": "powershell_completions.go", "symbol": "", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 6: //", "file": "command_win.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 107: for i := 0; i < b.N; i++ {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 15: package cobra", "file": "zsh_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 27: \"github.com/spf13/cobra\"", "file": "doc/rest_docs.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "特定のフラグに対して、シェル補完時にディレクトリ名のみが表示されるように制限する処理が正しく動作していない可能性があります。フラグのオプション名を指定して補完対象をディレクトリに限定するメソッドを確認してください。", "query": "shell completion directory", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lang": "ja", "candidates": [{"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "特定のフラグに対して、シェル補完時にディレクトリ名のみが表示されるように制限する処理が正しく動作していない可能性があります。フラグのオプション名を指定して補完対象をディレクトリに限定するメソッドを確認してください。", "query": "shell completion directory", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lang": "ja", "candidates": [{"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "特定のフラグに対して、シェル補完時にディレクトリ名のみが表示されるように制限する処理が正しく動作していない可能性があります。フラグのオプション名を指定して補完対象をディレクトリに限定するメソッドを確認してください。", "query": "shell completion directory", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lang": "ja", "candidates": [{"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=83-106\nread MarkFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=716-739\nread TestDisableFlagParsing for detail", "file": "command_test.go", "symbol": "TestDisableFlagParsing", "line": 716, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=121-144\nread TestStringInSlice for detail", "file": "cobra_test.go", "symbol": "TestStringInSlice", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=24-47\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=770-793\nread TestEmptyInputs for detail", "file": "command_test.go", "symbol": "TestEmptyInputs", "line": 770, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=135-158\nread TestNoArgs_WithValid_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=31-54\nread MarkPersistentFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=276-299\nread GenFishCompletion for detail", "file": "fish_completions.go", "symbol": "GenFishCompletion", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=339-362\nread TestExactArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2787-2810\nread TestCompleteWithDisableFlagParsing for detail", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=81-104\nread TestGenMdNoTag for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoTag", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=412-435\nread getOut for detail", "file": "command.go", "symbol": "getOut", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=985-1008\nread CompError for detail", "file": "completions.go", "symbol": "CompError", "line": 985, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=275-298\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "셸 완성 스크립트에서 설명 없이 결과만 요청할 때 사용하는 내부 명령어가 무엇인가요?", "query": "shell completion command", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lang": "ko", "candidates": [{"text": "File: completions_test.go\nLine 3584: // Regression test that ensures the bug described in", "file": "completions_test.go", "symbol": "", "line": 3584, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 33: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 43: output, err := executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"\")", "file": "active_help_test.go", "symbol": "", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nLine 350: }", "file": "powershell_completions.go", "symbol": "", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 308: c := getCommand(MaximumNArgs(2), true)", "file": "args_test.go", "symbol": "", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 33: compCmd = ShellCompNoDescRequestCmd", "file": "fish_completions.go", "symbol": "", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nLine 115: else", "file": "bash_completionsV2.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 5: $(warning \"could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh\")", "file": "Makefile", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 37: fmt.Scanln()", "file": "command_win.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 39: \"eq\": Eq,", "file": "cobra.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 36: compCmd = ShellCompNoDescRequestCmd", "file": "powershell_completions.go", "symbol": "", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nLine 251: }", "file": "flag_groups.go", "symbol": "", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 89: output, err := executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"\")", "file": "completions_test.go", "symbol": "", "line": 89, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nLine 39: check(t, output, ShellCompNoDescRequestCmd)", "file": "fish_completions_test.go", "symbol": "", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "bash_completionsV2_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 218: expected = strings.Join([]string{", "file": "active_help_test.go", "symbol": "", "line": 218, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 22: \"path/filepath\"", "file": "fish_completions_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 34: ShellCompNoDescRequestCmd = \"__completeNoDesc\"", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nLine 40: checkStringContains(t, output, echoSubCmd.Short)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "active_help.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 240: \"Complete\" {", "file": "powershell_completions.go", "symbol": "", "line": 240, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 34: compCmd = ShellCompNoDescRequestCmd", "file": "bash_completionsV2.go", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nLine 6: //", "file": "shell_completions.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 483: return c.genBashCompletion(w, includeDesc)", "file": "bash_completionsV2.go", "symbol": "", "line": 483, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "셸 완성 스크립트에서 설명 없이 결과만 요청할 때 사용하는 내부 명령어가 무엇인가요?", "query": "shell completion command", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lang": "ko", "candidates": [{"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "셸 완성 스크립트에서 설명 없이 결과만 요청할 때 사용하는 내부 명령어가 무엇인가요?", "query": "shell completion command", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "셸 완성 스크립트에서 설명 없이 결과만 요청할 때 사용하는 내부 명령어가 무엇인가요?", "query": "shell completion command", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lang": "ko", "candidates": [{"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=167-190\nread validateOneRequiredFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateOneRequiredFlagGroups", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2787-2810\nread TestCompleteWithDisableFlagParsing for detail", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=159-182\nread trimRightSpace for detail", "file": "cobra.go", "symbol": "trimRightSpace", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=680-703\nread String for detail", "file": "completions_test.go", "symbol": "String", "line": 680, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=42-65\nread GenZshCompletionNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionNoDesc", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=83-106\nread TestBashCompletions for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletions", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=54-77\nread Command for detail", "file": "command.go", "symbol": "Command", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=261-284\nread TestBashCompletionTraverseChildren for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionTraverseChildren", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=49-72\nread TestLevenshteinDistance for detail", "file": "cobra_test.go", "symbol": "TestLevenshteinDistance", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=31-54\nread GenZshCompletion for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletion", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=426-449\nread TestValidArgsFuncAndCmdCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAndCmdCompletionInGo", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=33-56\nread TestAddTemplateFunctions for detail", "file": "cobra_test.go", "symbol": "TestAddTemplateFunctions", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=30-53\nread BashCompFilenameExt for detail", "file": "bash_completions.go", "symbol": "BashCompFilenameExt", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help_test.go lines=122-145\nread comps for detail", "file": "active_help_test.go", "symbol": "comps", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args.go lines=82-105\nread ArbitraryArgs for detail", "file": "args.go", "symbol": "ArbitraryArgs", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=202-225\nread genMan for detail", "file": "doc/man_docs.go", "symbol": "genMan", "line": 202, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "カスタムマルチストリング用のスライスタイプを定義する変数の場所を確認したいです。これは完成度テストファイルの中で使用されているものを探しています。", "query": "customMultiString variable", "file": "completions_test.go", "symbol": "_", "line": 678, "lang": "ja", "candidates": [{"text": "File: powershell_completions_test.go\nLine 8: //", "file": "powershell_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 76: for _, name := range []string{\"rootflag\", \"strtwo\"} {", "file": "doc/man_docs_test.go", "symbol": "", "line": 76, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nLine 192: # Do full file completion instead", "file": "fish_completions.go", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 13: // limitations under the License.", "file": "zsh_completions_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 17: import (", "file": "doc/util.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 119: }", "file": "flag_groups.go", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 49: // OnlyValidArgs returns an error if there are any positional args that are not in", "file": "args.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 53: for _, c := range cmd.Commands() {", "file": "doc/man_docs.go", "symbol": "", "line": 53, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nLine 335: # Don't call \"printf\" in a sub-shell because it will be much slower", "file": "bash_completionsV2.go", "symbol": "", "line": 335, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 73: Long: `a slightly useless command for testing.`,", "file": "doc/cmd_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 60: for _, name := range []string{\"rootflag\", \"strtwo\"} {", "file": "doc/md_docs_test.go", "symbol": "", "line": 60, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\nLine 678: var _ SliceValue = (*customMultiString)(nil)", "file": "completions_test.go", "symbol": "_", "line": 678, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nLine 48: Use: \"root\",", "file": "doc/cmd_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 8: //", "file": "command_win.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 381: if newArgCount > realArgCount {", "file": "completions.go", "symbol": "", "line": 381, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 76: defer f.Close()", "file": "doc/man_docs.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/man_examples_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 68: _, err := stdin.Write([]byte(s))", "file": "bash_completions_test.go", "symbol": "", "line": 68, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nLine 474: })", "file": "completions.go", "symbol": "", "line": 474, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 15: //go:build !windows", "file": "command_notwin.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 387: for _, command := range c.commands {", "file": "command.go", "symbol": "", "line": 387, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nLine 70: if _, err := os.Stat(filepath.Join(tmpdir, \"do.yaml\")); err != nil {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 70, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "fish_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "bash_completionsV2.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "カスタムマルチストリング用のスライスタイプを定義する変数の場所を確認したいです。これは完成度テストファイルの中で使用されているものを探しています。", "query": "customMultiString variable", "file": "completions_test.go", "symbol": "_", "line": 678, "lang": "ja", "candidates": [{"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "カスタムマルチストリング用のスライスタイプを定義する変数の場所を確認したいです。これは完成度テストファイルの中で使用されているものを探しています。", "query": "customMultiString variable", "file": "completions_test.go", "symbol": "_", "line": 678, "lang": "ja", "candidates": [{"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "カスタムマルチストリング用のスライスタイプを定義する変数の場所を確認したいです。これは完成度テストファイルの中で使用されているものを探しています。", "query": "customMultiString variable", "file": "completions_test.go", "symbol": "_", "line": 678, "lang": "ja", "candidates": [{"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=179-202\nread tmpl for detail", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=107-130\nread CompletionOptions for detail", "file": "completions.go", "symbol": "CompletionOptions", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=99-122\nread OnInitialize for detail", "file": "cobra.go", "symbol": "OnInitialize", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2_test.go lines=23-46\nread TestBashCompletionV2WithActiveHelp for detail", "file": "bash_completionsV2_test.go", "symbol": "TestBashCompletionV2WithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=599-622\nread getFlagNameCompletions for detail", "file": "completions.go", "symbol": "getFlagNameCompletions", "line": 599, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=352-375\nread SetCompletionCommandGroupID for detail", "file": "command.go", "symbol": "SetCompletionCommandGroupID", "line": 352, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=316-339\nread getCompletions for detail", "file": "completions.go", "symbol": "getCompletions", "line": 316, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=526-549\nread UsageString for detail", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=567-590\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=149-172\nread genFlagResult for detail", "file": "doc/yaml_docs.go", "symbol": "genFlagResult", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=201-224\nread TestArbitraryArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=505-528\nread getHelpTemplateFunc for detail", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=678-701\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 678, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=105-128\nread OnFinalize for detail", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=26-49\nread TestGenMdDoc for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=75-98\nread TestGenYamlDocRunnable for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDocRunnable", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=828-851\nread parentFlagValue for detail", "file": "command_test.go", "symbol": "parentFlagValue", "line": 828, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=715-738\nread argsMinusFirstX for detail", "file": "command.go", "symbol": "argsMinusFirstX", "line": 715, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "busca la prueba de completar argumentos con descripciones en subcomandos", "query": "test valid args desc", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmdsWithDesc", "line": 1717, "lang": "es", "candidates": [{"text": "File: cobra_test.go\nLine 136: a: \"pear\",", "file": "cobra_test.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2425: func TestUpdateName(t *testing.T) {", "file": "command_test.go", "symbol": "", "line": 2425, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 76: }", "file": "args.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 285: outFile, err := os.Create(filename)", "file": "fish_completions.go", "symbol": "", "line": 285, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 453: WriteStringAndCheck(buf, fmt.Sprintf(\" commands+=(%q)\\n\", c.Name()))", "file": "bash_completions.go", "symbol": "", "line": 453, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 102: }", "file": "active_help_test.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "powershell_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 143: list: []string{\"orange\", \"banana\", \"apple\", \"grape\"},", "file": "cobra_test.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 48: defer func() { f.Hidden = false }()", "file": "doc/rest_docs_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 85: fmt.Fprintf(buf, \"::\\n\\n %s\\n\\n\", cmd.UseLine())", "file": "doc/rest_docs.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 37: output := buf.String()", "file": "fish_completions_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_win.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 105: }", "file": "doc/cmd_test.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 164: func TestGenManTree(t *testing.T) {", "file": "doc/man_docs_test.go", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 130: fi", "file": "bash_completionsV2.go", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 93: }", "file": "args.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 75: defer outFile.Close()", "file": "zsh_completions.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 297: [System.Management.Automation.CompletionResult]::new($CompletionText, \"$($comp.Name)\", 'ParameterValue', \"$($comp.Description)\")", "file": "powershell_completions.go", "symbol": "", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 25: func ExampleGenManTree() {", "file": "doc/man_examples_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1653: }", "file": "command.go", "symbol": "", "line": 1653, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 166: a: \"\",", "file": "cobra_test.go", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1717: func TestValidArgsFuncChildCmdsWithDesc(t *testing.T) {", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmdsWithDesc", "line": 1717, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions_test.go\nLine 21: )", "file": "zsh_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "busca la prueba de completar argumentos con descripciones en subcomandos", "query": "test valid args desc", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmdsWithDesc", "line": 1717, "lang": "es", "candidates": [{"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "busca la prueba de completar argumentos con descripciones en subcomandos", "query": "test valid args desc", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmdsWithDesc", "line": 1717, "lang": "es", "candidates": [{"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "busca la prueba de completar argumentos con descripciones en subcomandos", "query": "test valid args desc", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmdsWithDesc", "line": 1717, "lang": "es", "candidates": [{"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=84-107\nread GenManTreeOptions for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeOptions", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=149-172\nread genFlagResult for detail", "file": "doc/yaml_docs.go", "symbol": "genFlagResult", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=105-128\nread OnFinalize for detail", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=466-489\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=748-771\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 748, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=580-603\nread minNamePadding for detail", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=30-53\nread printOptionsReST for detail", "file": "doc/rest_docs.go", "symbol": "printOptionsReST", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=358-381\nread SetHelpTemplate for detail", "file": "command.go", "symbol": "SetHelpTemplate", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1018-1041\nread getEnvConfig for detail", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=652-675\nread gen for detail", "file": "bash_completions.go", "symbol": "gen", "line": 652, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1717-1740\nread TestValidArgsFuncChildCmdsWithDesc for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmdsWithDesc", "line": 1717, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=101-124\nread compCmdNoDescFlagName for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagName", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=81-104\nread ValidateFlagGroups for detail", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "pflag 패키지의 전역 플래그 완료 함수를 저장하고 조회할 때 동시성 문제를 해결하기 위해 어떤 메커니즘(예: 뮤텍스)을 사용해야 하는지 설명해 줘.", "query": "pflag mutex concurrent", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lang": "ko", "candidates": [{"text": "File: doc/man_docs.go\nLine 44: }", "file": "doc/man_docs.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 51: }", "file": "active_help.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 2026: }", "file": "command.go", "symbol": "", "line": 2026, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 25: const (", "file": "flag_groups.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 63: defer func() { f.Hidden = false }()", "file": "doc/md_docs_test.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 503: format += \"flags+=(\\\"-%s\" + cbn", "file": "bash_completions.go", "symbol": "", "line": 503, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 8: //", "file": "doc/yaml_docs.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 38: var flagCompletionFunctions = map[*pflag.Flag]CompletionFunc{}", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nLine 209: buf := new(bytes.Buffer)", "file": "doc/man_docs.go", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 67: t.Fatalf(\"GenYamlTree failed: %s\", err.Error())", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 539: for flag := range flagCompletionFunctions {", "file": "bash_completions.go", "symbol": "", "line": 539, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nLine 82: genZshComp(buf, c.Name(), includeDesc)", "file": "zsh_completions.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 252: local endIndex=${#activeHelpMarker}", "file": "bash_completionsV2.go", "symbol": "", "line": 252, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 23: func TestZshCompletionWithActiveHelp(t *testing.T) {", "file": "zsh_completions_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 2: //", "file": "args.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 32: c.Print(MousetrapHelpText)", "file": "command_win.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 196: cobra.WriteStringAndCheck(buf, \"# OPTIONS INHERITED FROM PARENT COMMANDS\\n\")", "file": "doc/man_docs.go", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 104: }", "file": "powershell_completions.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2866: cmd, foundArgs, err := root.Find(tc.args)", "file": "command_test.go", "symbol": "", "line": 2866, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 159: func manPrintFlags(buf io.StringWriter, flags *pflag.FlagSet) {", "file": "doc/man_docs.go", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 57: {", "file": "cobra_test.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "pflag 패키지의 전역 플래그 완료 함수를 저장하고 조회할 때 동시성 문제를 해결하기 위해 어떤 메커니즘(예: 뮤텍스)을 사용해야 하는지 설명해 줘.", "query": "pflag mutex concurrent", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lang": "ko", "candidates": [{"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "pflag 패키지의 전역 플래그 완료 함수를 저장하고 조회할 때 동시성 문제를 해결하기 위해 어떤 메커니즘(예: 뮤텍스)을 사용해야 하는지 설명해 줘.", "query": "pflag mutex concurrent", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "pflag 패키지의 전역 플래그 완료 함수를 저장하고 조회할 때 동시성 문제를 해결하기 위해 어떤 메커니즘(예: 뮤텍스)을 사용해야 하는지 설명해 줘.", "query": "pflag mutex concurrent", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lang": "ko", "candidates": [{"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=337-360\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=25-48\nread GenZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFile", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=26-49\nread activeHelpMessage2 for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=352-375\nread SetCompletionCommandGroupID for detail", "file": "command.go", "symbol": "SetCompletionCommandGroupID", "line": 352, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=161-184\nread TestOnlyValidArgs_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs_WithInvalidArgs", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=89-112\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions.go lines=508-531\nread writeFlag for detail", "file": "bash_completions.go", "symbol": "writeFlag", "line": 508, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=536-559\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=52-75\nread GenMarkdown for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdown", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=339-362\nread TestExactArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=209-232\nread sortedKeys for detail", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "當執行指令時,如果輸入的名稱與預期不符,似乎是因為在處理指令集合時使用了基於名稱的排序或查找方式,導致某些子指令無法被正確識別。", "query": "command name sort", "file": "doc/util.go", "symbol": "byName", "line": 48, "lang": "zh", "candidates": [{"text": "File: Makefile\nLine 18: lint:", "file": "Makefile", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 127: sort.Sort(byName(children))", "file": "doc/yaml_docs.go", "symbol": "", "line": 127, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nLine 249: }", "file": "flag_groups.go", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 48: type byName []*cobra.Command", "file": "doc/util.go", "symbol": "byName", "line": 48, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nLine 177: }", "file": "powershell_completions.go", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 80: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 219: if err != nil {", "file": "doc/man_docs_test.go", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 32: output := buf.String()", "file": "doc/md_docs_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "zsh_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 241: t.Errorf(\"Expected completion to not include %q flag: Got %v\", flagName, output)", "file": "bash_completions_test.go", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 8: //", "file": "doc/rest_docs_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 14: fmt:", "file": "Makefile", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 676: writeRequiredFlag(buf, cmd)", "file": "bash_completions.go", "symbol": "", "line": 676, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 40: parentFlags := cmd.InheritedFlags()", "file": "doc/rest_docs.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 83: t.Fatal(err)", "file": "doc/man_docs_test.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 84: return MarkFlagDirname(c.Flags(), name)", "file": "shell_completions.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 18: package cobra", "file": "command_win.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 99: sort.Sort(byName(children))", "file": "doc/md_docs.go", "symbol": "", "line": 99, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nLine 232: sort.Sort(byName(children))", "file": "doc/man_docs.go", "symbol": "", "line": 232, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nLine 579: })", "file": "bash_completions.go", "symbol": "", "line": 579, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3491: {", "file": "completions_test.go", "symbol": "", "line": 3491, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1973: // defaultUsageFunc is equivalent to executing defaultUsageTemplate. The two should be changed in sync.", "file": "command.go", "symbol": "", "line": 1973, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/man_examples_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 113: sort.Sort(byName(children))", "file": "doc/rest_docs.go", "symbol": "", "line": 113, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "當執行指令時,如果輸入的名稱與預期不符,似乎是因為在處理指令集合時使用了基於名稱的排序或查找方式,導致某些子指令無法被正確識別。", "query": "command name sort", "file": "doc/util.go", "symbol": "byName", "line": 48, "lang": "zh", "candidates": [{"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nsibling in doc", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nelsewhere in the tree", "file": "Makefile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "當執行指令時,如果輸入的名稱與預期不符,似乎是因為在處理指令集合時使用了基於名稱的排序或查找方式,導致某些子指令無法被正確識別。", "query": "command name sort", "file": "doc/util.go", "symbol": "byName", "line": 48, "lang": "zh", "candidates": [{"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "當執行指令時,如果輸入的名稱與預期不符,似乎是因為在處理指令集合時使用了基於名稱的排序或查找方式,導致某些子指令無法被正確識別。", "query": "command name sort", "file": "doc/util.go", "symbol": "byName", "line": 48, "lang": "zh", "candidates": [{"text": "Next: read completions.go lines=170-193\nread RegisterFlagCompletionFunc for detail", "file": "completions.go", "symbol": "RegisterFlagCompletionFunc", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help_test.go lines=29-52\nread TestActiveHelpAlone for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=58-81\nread ShellCompDirectiveError for detail", "file": "completions.go", "symbol": "ShellCompDirectiveError", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=254-277\nread progname for detail", "file": "cobra_test.go", "symbol": "progname", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=169-192\nread TestNoDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=84-107\nread GenManTreeOptions for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeOptions", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=54-77\nread Command for detail", "file": "command.go", "symbol": "Command", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=138-161\nread GenReSTTree for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTree", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=127-150\nread MatchAll for detail", "file": "args.go", "symbol": "MatchAll", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=48-71\nread byName for detail", "file": "doc/util.go", "symbol": "byName", "line": 48, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1038-1061\nread TestFlagFileExtFilterCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagFileExtFilterCompletionInGo", "line": 1038, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=50-73\nread Len for detail", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=334-357\nread TestAliasPrefixMatching for detail", "file": "command_test.go", "symbol": "TestAliasPrefixMatching", "line": 334, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=289-312\nread SetOutput for detail", "file": "command.go", "symbol": "SetOutput", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=95-118\nread ShellCompDirectiveDefault for detail", "file": "completions.go", "symbol": "ShellCompDirectiveDefault", "line": 95, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "최상위 명령에 정의되지 않은 인자가 전달되었을 때 에러가 발생하는지 확인하는 테스트 코드가 어디 있지?", "query": "unknown command error", "file": "args_test.go", "symbol": "TestRootTakesNoArgs", "line": 421, "lang": "ko", "candidates": [{"text": "File: flag_groups.go\nLine 198: if len(set) == 0 || len(set) == 1 {", "file": "flag_groups.go", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "zsh_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "bash_completionsV2_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 50: buf := new(bytes.Buffer)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 187: for scanner.Scan() {", "file": "doc/man_docs_test.go", "symbol": "", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 241: return 1", "file": "fish_completions.go", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 171: fi", "file": "zsh_completions.go", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 10: default: all", "file": "Makefile", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 421: func TestRootTakesNoArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestRootTakesNoArgs", "line": 421, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nLine 214: buf.WriteString(\"# EXAMPLE\\n\")", "file": "doc/man_docs.go", "symbol": "", "line": 214, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 150: c := &cobra.Command{}", "file": "doc/man_docs_test.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 208: d[i][j] = d[i-1][j-1]", "file": "cobra.go", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 81: // ArbitraryArgs never returns an error.", "file": "args.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 75: ignoreCase: false,", "file": "cobra_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 86: // MinimumNArgs returns an error if there is not at least N args.", "file": "args.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2196: if strings.HasPrefix(comp, toComplete) {", "file": "completions_test.go", "symbol": "", "line": 2196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 250: // check that a simple program using cobra in its default configuration is", "file": "cobra_test.go", "symbol": "", "line": 250, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 21: \"path/filepath\"", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 72: f, err := os.Create(filename)", "file": "doc/man_docs.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 32: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 78: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 214: expected: \"cobra\",", "file": "cobra_test.go", "symbol": "", "line": 214, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 148: continue", "file": "doc/rest_docs.go", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 177: format += \"=%s\"", "file": "doc/man_docs.go", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "최상위 명령에 정의되지 않은 인자가 전달되었을 때 에러가 발생하는지 확인하는 테스트 코드가 어디 있지?", "query": "unknown command error", "file": "args_test.go", "symbol": "TestRootTakesNoArgs", "line": 421, "lang": "ko", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestRootTakesNoArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "최상위 명령에 정의되지 않은 인자가 전달되었을 때 에러가 발생하는지 확인하는 테스트 코드가 어디 있지?", "query": "unknown command error", "file": "args_test.go", "symbol": "TestRootTakesNoArgs", "line": 421, "lang": "ko", "candidates": [{"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "최상위 명령에 정의되지 않은 인자가 전달되었을 때 에러가 발생하는지 확인하는 테스트 코드가 어디 있지?", "query": "unknown command error", "file": "args_test.go", "symbol": "TestRootTakesNoArgs", "line": 421, "lang": "ko", "candidates": [{"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2121-2144\nread TestFlagCompletionConcurrentRegistration for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionConcurrentRegistration", "line": 2121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=573-596\nread CommandPathPadding for detail", "file": "command.go", "symbol": "CommandPathPadding", "line": 573, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2607-2630\nread TestCompleteCompletion for detail", "file": "completions_test.go", "symbol": "TestCompleteCompletion", "line": 2607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=421-444\nread TestRootTakesNoArgs for detail", "file": "args_test.go", "symbol": "TestRootTakesNoArgs", "line": 421, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=464-487\nread getUsageTemplateFunc for detail", "file": "command.go", "symbol": "getUsageTemplateFunc", "line": 464, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=616-639\nread TestFlagBeforeCommand for detail", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=508-531\nread writeFlag for detail", "file": "bash_completions.go", "symbol": "writeFlag", "line": 508, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=536-559\nread prepareCustomAnnotationsForFlags for detail", "file": "bash_completions.go", "symbol": "prepareCustomAnnotationsForFlags", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=83-106\nread MarkFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=83-106\nread TestBashCompletions for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletions", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=164-187\nread TestGenManTree for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManTree", "line": 164, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Estou tentando validar como as sugestões de preenchimento automático funcionam quando anexamos uma função de ajuda dinâmica ao comando principal. Você pode me mostrar o teste que verifica se essa mensagem de ajuda é gerada corretamente e incluída no output do shell?", "query": "active help completion", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lang": "pt", "candidates": [{"text": "File: flag_groups_test.go\nLine 28: // Define lots of flags to utilize for testing.", "file": "flag_groups_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 6: //", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 42: Options []cmdOption `yaml:\",omitempty\"`", "file": "doc/yaml_docs.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 56: return GenYamlTreeCustom(cmd, dir, emptyStr, identity)", "file": "doc/yaml_docs.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 74: Run: emptyRun,", "file": "doc/cmd_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1475: if displayName, ok := c.Annotations[CommandDisplayNameAnnotation]; ok {", "file": "command.go", "symbol": "", "line": 1475, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 29: func TestActiveHelpAlone(t *testing.T) {", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nLine 38: checkStringContains(t, output, rootCmd.Short)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 132: case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:", "file": "cobra.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 76: }", "file": "args.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 200: func (d ShellCompDirective) string() string {", "file": "completions.go", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1956: }", "file": "completions_test.go", "symbol": "", "line": 1956, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 29: )", "file": "active_help.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 59: }", "file": "flag_groups.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "fish_completions.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1652: if err != nil {", "file": "completions_test.go", "symbol": "", "line": 1652, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 6: github.com/cpuguy83/go-md2man/v2 v2.0.6", "file": "go.mod", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 147: }", "file": "powershell_completions.go", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 30: header := &doc.GenManHeader{", "file": "doc/man_examples_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 62: return MarkFlagFilename(c.PersistentFlags(), name, extensions...)", "file": "shell_completions.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 566: }", "file": "command.go", "symbol": "", "line": 566, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 31: )", "file": "doc/man_docs.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 3: go 1.15", "file": "go.mod", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 55: validArgs := make([]string, 0, len(cmd.ValidArgs))", "file": "args.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Estou tentando validar como as sugestões de preenchimento automático funcionam quando anexamos uma função de ajuda dinâmica ao comando principal. Você pode me mostrar o teste que verifica se essa mensagem de ajuda é gerada corretamente e incluída no output do shell?", "query": "active help completion", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lang": "pt", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\ndefines TestActiveHelpAlone", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Estou tentando validar como as sugestões de preenchimento automático funcionam quando anexamos uma função de ajuda dinâmica ao comando principal. Você pode me mostrar o teste que verifica se essa mensagem de ajuda é gerada corretamente e incluída no output do shell?", "query": "active help completion", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lang": "pt", "candidates": [{"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> strings", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> testing", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Estou tentando validar como as sugestões de preenchimento automático funcionam quando anexamos uma função de ajuda dinâmica ao comando principal. Você pode me mostrar o teste que verifica se essa mensagem de ajuda é gerada corretamente e incluída no output do shell?", "query": "active help completion", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lang": "pt", "candidates": [{"text": "Next: read active_help_test.go lines=26-49\nread activeHelpMessage2 for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=599-622\nread getFlagNameCompletions for detail", "file": "completions.go", "symbol": "getFlagNameCompletions", "line": 599, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=169-192\nread TestMultiActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestMultiActiveHelp", "line": 169, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=67-90\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=84-107\nread TestActiveHelpWithComps for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpWithComps", "line": 84, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=122-145\nread comps for detail", "file": "active_help_test.go", "symbol": "comps", "line": 122, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=321-344\nread TestExactArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=678-701\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=29-52\nread TestActiveHelpAlone for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_notwin.go lines=20-43\nread preExecHookFn for detail", "file": "command_notwin.go", "symbol": "preExecHookFn", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions_test.go lines=23-46\nread TestZshCompletionWithActiveHelp for detail", "file": "zsh_completions_test.go", "symbol": "TestZshCompletionWithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=334-357\nread TestAliasPrefixMatching for detail", "file": "command_test.go", "symbol": "TestAliasPrefixMatching", "line": 334, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=358-381\nread SetHelpTemplate for detail", "file": "command.go", "symbol": "SetHelpTemplate", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread left for detail", "file": "cobra.go", "symbol": "left", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=30-53\nread markdownExtension for detail", "file": "doc/md_docs.go", "symbol": "markdownExtension", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=484-507\nread HelpFunc for detail", "file": "command.go", "symbol": "HelpFunc", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=25-48\nread activeHelpMessage for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read powershell_completions.go lines=313-336\nread genPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletion", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=683-706\nread GenBashCompletion for detail", "file": "bash_completions.go", "symbol": "GenBashCompletion", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1384-1407\nread TestValidArgsFuncChildCmds for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmds", "line": 1384, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Wo werden die benutzerdefinierten Funktionen für die Help- und Usage-Templates registriert?", "query": "template help functions", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lang": "de", "candidates": [{"text": "File: completions.go\nLine 664: var flagName string", "file": "completions.go", "symbol": "", "line": 664, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 6: //", "file": "args.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 199: if (($Directive -band $ShellCompDirectiveKeepOrder) -eq 0 ) {", "file": "powershell_completions.go", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/util.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 13: // limitations under the License.", "file": "command_win.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 684: }", "file": "completions.go", "symbol": "", "line": 684, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 32: if !includeDesc {", "file": "fish_completions.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 91: func AddTemplateFuncs(tmplFuncs template.FuncMap) {", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 35: AddTemplateFuncs(template.FuncMap{", "file": "cobra_test.go", "symbol": "", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nLine 87: // GenYaml creates yaml output.", "file": "doc/yaml_docs.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 241: // of that group required so that the shell completion suggests them automatically", "file": "flag_groups.go", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1211: output, err := executeCommand(rootCmd, \"--help\")", "file": "command_test.go", "symbol": "", "line": 1211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 70: args: []string{\"--c=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 42: // MarkFlagFilename instructs the various shell completion implementations to", "file": "shell_completions.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 225: cmd.VisitParents(func(c *cobra.Command) {", "file": "doc/man_docs.go", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 267: done <<<\"${out}\"", "file": "bash_completionsV2.go", "symbol": "", "line": 267, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 283: }", "file": "cobra_test.go", "symbol": "", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 8: //", "file": "doc/man_docs_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 357: func TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 21: \"testing\"", "file": "doc/md_docs_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 18: \"bytes\"", "file": "doc/md_docs_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 182: if test $compErr -eq 1", "file": "fish_completions.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_win.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Wo werden die benutzerdefinierten Funktionen für die Help- und Usage-Templates registriert?", "query": "template help functions", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lang": "de", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Wo werden die benutzerdefinierten Funktionen für die Help- und Usage-Templates registriert?", "query": "template help functions", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lang": "de", "candidates": [{"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Wo werden die benutzerdefinierten Funktionen für die Help- und Usage-Templates registriert?", "query": "template help functions", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lang": "de", "candidates": [{"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=412-435\nread getOut for detail", "file": "command.go", "symbol": "getOut", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=587-610\nread helpOrVersionFlagPresent for detail", "file": "completions.go", "symbol": "helpOrVersionFlagPresent", "line": 587, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=34-57\nread clean for detail", "file": "Makefile", "symbol": "clean", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=91-114\nread AddTemplateFuncs for detail", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=67-90\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1717-1740\nread TestValidArgsFuncChildCmdsWithDesc for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmdsWithDesc", "line": 1717, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=632-655\nread completeRequireFlags for detail", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=207-230\nread TestArbitraryArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=38-61\nread AppendActiveHelp for detail", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=654-677\nread hasNoOptDefVal for detail", "file": "command.go", "symbol": "hasNoOptDefVal", "line": 654, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Die Bash-Vervollständigung für Datei-Flags ignoriert leere Erweiterungslisten, unterstützt aber einzelne und mehrere Erweiterungen sowie direkte Annotationen korrekt. Bitte überprüfen, ob die Filterlogik für Dateierweiterungen wie erwartet funktioniert.", "query": "go flag completion filter", "file": "completions_test.go", "symbol": "TestFlagFileExtFilterCompletionInGo", "line": 1038, "lang": "de", "candidates": [{"text": "File: completions_test.go\nLine 1038: func TestFlagFileExtFilterCompletionInGo(t *testing.T) {", "file": "completions_test.go", "symbol": "TestFlagFileExtFilterCompletionInGo", "line": 1038, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args_test.go\nLine 127: }", "file": "args_test.go", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 22: const (", "file": "active_help.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 155: // Using len(flag.ShorthandDeprecated) > 0 can't handle this, others are ok.", "file": "doc/yaml_docs.go", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 48: if err != nil {", "file": "bash_completions_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 32: return MarkFlagRequired(c.PersistentFlags(), name)", "file": "shell_completions.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 78: output := buf.String()", "file": "fish_completions_test.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "powershell_completions_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 6: //", "file": "flag_groups_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 62: var EnableCaseInsensitive = defaultCaseInsensitive", "file": "cobra.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 799: }", "file": "completions.go", "symbol": "", "line": 799, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 18: \"strings\"", "file": "flag_groups_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 180: }", "file": "completions.go", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 697: // delete 'arg' from args or break the loop if len(args) <= 1.", "file": "command.go", "symbol": "", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 31: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 104: }", "file": "doc/md_docs.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 80: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 86: Short: \"Print anything to the screen\",", "file": "doc/cmd_test.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 49: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 15: package cobra", "file": "zsh_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 46: }", "file": "doc/util.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_notwin.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 45: rootCmd.DisableAutoGenTag = true", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Die Bash-Vervollständigung für Datei-Flags ignoriert leere Erweiterungslisten, unterstützt aber einzelne und mehrere Erweiterungen sowie direkte Annotationen korrekt. Bitte überprüfen, ob die Filterlogik für Dateierweiterungen wie erwartet funktioniert.", "query": "go flag completion filter", "file": "completions_test.go", "symbol": "TestFlagFileExtFilterCompletionInGo", "line": 1038, "lang": "de", "candidates": [{"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Die Bash-Vervollständigung für Datei-Flags ignoriert leere Erweiterungslisten, unterstützt aber einzelne und mehrere Erweiterungen sowie direkte Annotationen korrekt. Bitte überprüfen, ob die Filterlogik für Dateierweiterungen wie erwartet funktioniert.", "query": "go flag completion filter", "file": "completions_test.go", "symbol": "TestFlagFileExtFilterCompletionInGo", "line": 1038, "lang": "de", "candidates": [{"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Die Bash-Vervollständigung für Datei-Flags ignoriert leere Erweiterungslisten, unterstützt aber einzelne und mehrere Erweiterungen sowie direkte Annotationen korrekt. Bitte überprüfen, ob die Filterlogik für Dateierweiterungen wie erwartet funktioniert.", "query": "go flag completion filter", "file": "completions_test.go", "symbol": "TestFlagFileExtFilterCompletionInGo", "line": 1038, "lang": "de", "candidates": [{"text": "Next: read command.go lines=605-628\nread HelpTemplate for detail", "file": "command.go", "symbol": "HelpTemplate", "line": 605, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1038-1061\nread TestFlagFileExtFilterCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagFileExtFilterCompletionInGo", "line": 1038, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read zsh_completions.go lines=31-54\nread GenZshCompletion for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletion", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=37-60\nread cmdDoc for detail", "file": "doc/yaml_docs.go", "symbol": "cmdDoc", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=107-130\nread CompletionOptions for detail", "file": "completions.go", "symbol": "CompletionOptions", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=526-549\nread UsageString for detail", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=206-229\nread TestExecuteContextC for detail", "file": "command_test.go", "symbol": "TestExecuteContextC", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=149-172\nread genFlagResult for detail", "file": "doc/yaml_docs.go", "symbol": "genFlagResult", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=42-65\nread GenZshCompletionNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionNoDesc", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=121-144\nread TestStringInSlice for detail", "file": "cobra_test.go", "symbol": "TestStringInSlice", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=103-126\nread compCmdNoDescFlagDefault for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDefault", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=22-45\nread PositionalArgs for detail", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=202-225\nread genMan for detail", "file": "doc/man_docs.go", "symbol": "genMan", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=991-1014\nread CompErrorln for detail", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=998-1021\nread configEnvVarSuffixDescriptions for detail", "file": "completions.go", "symbol": "configEnvVarSuffixDescriptions", "line": 998, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=254-277\nread progname for detail", "file": "cobra_test.go", "symbol": "progname", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=274-297\nread TestCommandAlias for detail", "file": "command_test.go", "symbol": "TestCommandAlias", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=662-685\nread shortHasNoOptDefVal for detail", "file": "command.go", "symbol": "shortHasNoOptDefVal", "line": 662, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Je cherche la fonction qui permet de vérifier qu'on a un nombre précis d'arguments positionnels tout en s'assurant qu'ils sont tous autorisés. Je sais qu'elle est marquée comme obsolète et qu'il faut utiliser une combinaison de fonctions à la place.", "query": "exact positional arguments", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lang": "fr", "candidates": [{"text": "File: Makefile\nLine 24: go test -v $(GO_TEST_FLAGS) ./...", "file": "Makefile", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_notwin.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 23: $(info ******************** running tests ********************)", "file": "Makefile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 112: expectErr: `if any flags in the group [a e] are set they must all be set; missing [e]`,", "file": "flag_groups_test.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 136: flagPrefix=\"-P ${BASH_REMATCH}\"", "file": "zsh_completions.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "shell_completions.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 21: )", "file": "powershell_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 39: printCmd.PersistentFlags().StringP(\"strthree\", \"s\", \"three\", \"help message for flag strthree\")", "file": "doc/cmd_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 340: {", "file": "bash_completions.go", "symbol": "", "line": 340, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 49: flagGroupsExclusive []string", "file": "flag_groups_test.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 528: c := getCommand(ExactValidArgs(3), true)", "file": "args_test.go", "symbol": "", "line": 528, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\nLine 2016: \"--validarg\",", "file": "completions_test.go", "symbol": "", "line": 2016, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 6: //", "file": "active_help_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 115: buf := new(bytes.Buffer)", "file": "doc/man_docs_test.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 29: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 31: Use: \"root\",", "file": "active_help_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 93: assertNoErr(t, c.GenFishCompletion(buf, true))", "file": "fish_completions_test.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 161: if len(flag.Deprecated) > 0 || flag.Hidden {", "file": "doc/man_docs.go", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 44: }", "file": "doc/man_docs.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 660: commandName = strings.ReplaceAll(commandName, \" \", \"_\")", "file": "bash_completions.go", "symbol": "", "line": 660, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 142: func ExactValidArgs(n int) PositionalArgs {", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups_test.go\nLine 53: args []string", "file": "flag_groups_test.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 19: \"fmt\"", "file": "bash_completionsV2_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Je cherche la fonction qui permet de vérifier qu'on a un nombre précis d'arguments positionnels tout en s'assurant qu'ils sont tous autorisés. Je sais qu'elle est marquée comme obsolète et qu'il faut utiliser une combinaison de fonctions à la place.", "query": "exact positional arguments", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lang": "fr", "candidates": [{"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Je cherche la fonction qui permet de vérifier qu'on a un nombre précis d'arguments positionnels tout en s'assurant qu'ils sont tous autorisés. Je sais qu'elle est marquée comme obsolète et qu'il faut utiliser une combinaison de fonctions à la place.", "query": "exact positional arguments", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lang": "fr", "candidates": [{"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Je cherche la fonction qui permet de vérifier qu'on a un nombre précis d'arguments positionnels tout en s'assurant qu'ils sont tous autorisés. Je sais qu'elle est marquée comme obsolète et qu'il faut utiliser une combinaison de fonctions à la place.", "query": "exact positional arguments", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lang": "fr", "candidates": [{"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=275-298\nread SetContext for detail", "file": "command.go", "symbol": "SetContext", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions_test.go lines=23-46\nread TestPwshCompletionNoActiveHelp for detail", "file": "powershell_completions_test.go", "symbol": "TestPwshCompletionNoActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=371-394\nread TestRangeArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2902-2925\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2902, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=77-100\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completionsV2_test.go lines=23-46\nread TestBashCompletionV2WithActiveHelp for detail", "file": "bash_completionsV2_test.go", "symbol": "TestBashCompletionV2WithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=331-354\nread GenPowerShellCompletionFile for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFile", "line": 331, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=94-117\nread TestGenMdTree for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdTree", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=142-165\nread ExactValidArgs for detail", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=38-61\nread GenManTree for detail", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=22-45\nread PositionalArgs for detail", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=59-82\nread EnableCommandSorting for detail", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Onde está definida a lista de argumentos para o comando filho?", "query": "child command args", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lang": "pt", "candidates": [{"text": "File: doc/rest_docs_test.go\nLine 108: if err := GenReST(rootCmd, file); err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 240: filteringCmd='_files'", "file": "zsh_completions.go", "symbol": "", "line": 240, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 2: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 38: func MarkFlagRequired(flags *pflag.FlagSet, name string) error {", "file": "shell_completions.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 15: package doc", "file": "doc/util.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2202: rootCmd.Flags().String(\"filename\", \"\", \"Enter a filename\")", "file": "completions_test.go", "symbol": "", "line": 2202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 19: \"os\"", "file": "active_help_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 616: // VersionTemplate return version template for the command.", "file": "command.go", "symbol": "", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 85: check(t, output, \"-c root:colon\")", "file": "fish_completions_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 29: for _, v := range []string{\"a\", \"b\", \"c\", \"d\"} {", "file": "flag_groups_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 187: func TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 8: //", "file": "fish_completions.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 85: fmt.Fprintf(buf, \"::\\n\\n %s\\n\\n\", cmd.UseLine())", "file": "doc/rest_docs.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 265: _, err := executeCommand(c, \"a\")", "file": "args_test.go", "symbol": "", "line": 265, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 23: \"strings\"", "file": "bash_completions_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 151: case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:", "file": "cobra.go", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 229: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 31: if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {", "file": "doc/util.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 111: # so for pre-7.2 or when Legacy argument passing is enabled we need to use", "file": "powershell_completions.go", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 185: func TestRpad(t *testing.T) {", "file": "cobra_test.go", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 819: var childCmdArgs []string", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nLine 22: const (", "file": "active_help.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 125: }", "file": "cobra.go", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Onde está definida a lista de argumentos para o comando filho?", "query": "child command args", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lang": "pt", "candidates": [{"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Onde está definida a lista de argumentos para o comando filho?", "query": "child command args", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lang": "pt", "candidates": [{"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Onde está definida a lista de argumentos para o comando filho?", "query": "child command args", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lang": "pt", "candidates": [{"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=689-712\nread Type for detail", "file": "completions_test.go", "symbol": "Type", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=52-75\nread Error for detail", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=133-156\nread GenMarkdownTreeCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTreeCustom", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=383-406\nread TestRangeArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1318-1341\nread TestValidArgsFuncSingleCmd for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=33-56\nread TestAddTemplateFunctions for detail", "file": "cobra_test.go", "symbol": "TestAddTemplateFunctions", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=684-707\nread Set for detail", "file": "completions_test.go", "symbol": "Set", "line": 684, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2044-2067\nread TestFlagCompletionWorksRootCommandAddedAfterFlags for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWorksRootCommandAddedAfterFlags", "line": 2044, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=62-85\nread GenReSTCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTCustom", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=464-487\nread getUsageTemplateFunc for detail", "file": "command.go", "symbol": "getUsageTemplateFunc", "line": 464, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=169-192\nread TestMultiActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestMultiActiveHelp", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=819-842\nread childCmdArgs for detail", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=408-431\nread InOrStdin for detail", "file": "command.go", "symbol": "InOrStdin", "line": 408, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=43-66\nread expected for detail", "file": "cobra_test.go", "symbol": "expected", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=77-100\nread maximumNArgsWithMoreArgs for detail", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=74-97\nread TestProgWithColon for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithColon", "line": 74, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "trouve la fonction qui définit une contrainte sur le nombre d'arguments acceptés", "query": "argument count validator", "file": "args.go", "symbol": "RangeArgs", "line": 117, "lang": "fr", "candidates": [{"text": "File: doc/md_docs_test.go\nLine 8: //", "file": "doc/md_docs_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 85: t.Fatalf(\"Failed to create tmpdir: %s\", err.Error())", "file": "doc/rest_docs_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 37: fmt.Scanln()", "file": "command_win.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 5: $(warning \"could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh\")", "file": "Makefile", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 33: }", "file": "powershell_completions_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 117: func RangeArgs(min int, max int) PositionalArgs {", "file": "args.go", "symbol": "RangeArgs", "line": 117, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\nLine 171: childCmd1.PersistentFlags().StringP(\"persistent\", \"p\", \"\", \"persistent flag\")", "file": "completions_test.go", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 369: // RangeArgs", "file": "args_test.go", "symbol": "", "line": 369, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nLine 53: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 474: })", "file": "completions.go", "symbol": "", "line": 474, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2275: c.Flags().Bool(name, false, \"\")", "file": "command_test.go", "symbol": "", "line": 2275, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 59: checkStringOmits(t, output, \"rootflag\")", "file": "doc/rest_docs_test.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 2: //", "file": "command_win.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 15: // The generated scripts require PowerShell v5.0+ (which comes Windows 10, but", "file": "powershell_completions.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1062: func (c *Command) ExecuteContext(ctx context.Context) error {", "file": "command.go", "symbol": "", "line": 1062, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3554: desc: \"completions for program-defined --help/-h and --version/-v flags even when DisableFlagParsing=true\",", "file": "completions_test.go", "symbol": "", "line": 3554, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 44: }", "file": "doc/util.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 905: Short: fmt.Sprintf(shortDesc, \"powershell\"),", "file": "completions.go", "symbol": "", "line": 905, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 100: defer os.RemoveAll(tmpdir)", "file": "doc/md_docs_test.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "active_help.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 55: }{", "file": "flag_groups_test.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 664: return false", "file": "command.go", "symbol": "", "line": 664, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 116: defer os.Remove(file.Name())", "file": "doc/md_docs_test.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "trouve la fonction qui définit une contrainte sur le nombre d'arguments acceptés", "query": "argument count validator", "file": "args.go", "symbol": "RangeArgs", "line": 117, "lang": "fr", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "trouve la fonction qui définit une contrainte sur le nombre d'arguments acceptés", "query": "argument count validator", "file": "args.go", "symbol": "RangeArgs", "line": 117, "lang": "fr", "candidates": [{"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "trouve la fonction qui définit une contrainte sur le nombre d'arguments acceptés", "query": "argument count validator", "file": "args.go", "symbol": "RangeArgs", "line": 117, "lang": "fr", "candidates": [{"text": "Next: read powershell_completions.go lines=313-336\nread genPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletion", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=117-140\nread RangeArgs for detail", "file": "args.go", "symbol": "RangeArgs", "line": 117, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=491-514\nread TestFlagLong for detail", "file": "command_test.go", "symbol": "TestFlagLong", "line": 491, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=22-45\nread PositionalArgs for detail", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=235-258\nread TestExecute_NoContext for detail", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=177-200\nread TestExecuteContext for detail", "file": "command_test.go", "symbol": "TestExecuteContext", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=505-528\nread getHelpTemplateFunc for detail", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=95-118\nread checkStringContains for detail", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=633-656\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2163-2186\nread err for detail", "file": "completions_test.go", "symbol": "err", "line": 2163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=213-236\nread TestArbitraryArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValidOnly_WithInvalidArgs", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=99-122\nread rangeArgsWithInvalidCount for detail", "file": "args_test.go", "symbol": "rangeArgsWithInvalidCount", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=327-350\nread err for detail", "file": "completions.go", "symbol": "err", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=25-48\nread genFishComp for detail", "file": "fish_completions.go", "symbol": "genFishComp", "line": 25, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "获取指定程序名称的ActiveHelp环境变量名", "query": "active help env var", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lang": "zh", "candidates": [{"text": "File: shell_completions.go\nLine 26: }", "file": "shell_completions.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 38: checkStringContains(t, output, \"rootflag\")", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 58: func activeHelpEnvVar(name string) string {", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nLine 51: Run: emptyRun,", "file": "doc/cmd_test.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 115: return err", "file": "doc/man_docs.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 184: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 18: \"bytes\"", "file": "powershell_completions_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 97: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "fish_completions_test.go", "symbol": "", "line": 97, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nLine 47: # Extract all args except the last one", "file": "fish_completions.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 272: ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs, ShellCompDirectiveKeepOrder, activeHelpEnvVar(name)))", "file": "fish_completions.go", "symbol": "", "line": 272, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "bash_completionsV2_test.go", "symbol": "", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "powershell_completions_test.go", "symbol": "", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nLine 46: return nil", "file": "args.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 77: $ShellCompDirectiveNoFileComp=%[6]d", "file": "powershell_completions.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 401: ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs, activeHelpEnvVar(name)))", "file": "bash_completions.go", "symbol": "", "line": 401, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nLine 760: haveNoDescFlag := !c.CompletionOptions.DisableNoDescFlag && !c.CompletionOptions.DisableDescriptions", "file": "completions.go", "symbol": "", "line": 760, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 90: groupStatus := map[string]map[string]bool{}", "file": "flag_groups.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 23: getCmd := func() *Command {", "file": "flag_groups_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 5: // You may obtain a copy of the License at", "file": "command_notwin.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 339: }", "file": "powershell_completions.go", "symbol": "", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 175: __%[1]s_debug \"ShellCompDirectiveNoSpace is called\"", "file": "powershell_completions.go", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 287: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "bash_completions_test.go", "symbol": "", "line": 287, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\nLine 126: buf.WriteString(\"*Auto generated by spf13/cobra on \" + time.Now().Format(\"2-Jan-2006\") + \"*\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 17: import (", "file": "doc/man_examples_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "获取指定程序名称的ActiveHelp环境变量名", "query": "active help env var", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lang": "zh", "candidates": [{"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "获取指定程序名称的ActiveHelp环境变量名", "query": "active help env var", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lang": "zh", "candidates": [{"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "获取指定程序名称的ActiveHelp环境变量名", "query": "active help env var", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lang": "zh", "candidates": [{"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=302-325\nread SetErr for detail", "file": "command.go", "symbol": "SetErr", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=505-528\nread getHelpTemplateFunc for detail", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=83-106\nread TestBashCompletions for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletions", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=327-350\nread TestExactArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=26-49\nread TestGenRSTDoc for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=464-487\nread getUsageTemplateFunc for detail", "file": "command.go", "symbol": "getUsageTemplateFunc", "line": 464, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=26-49\nread activeHelpEnvVarSuffix for detail", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=662-685\nread shortHasNoOptDefVal for detail", "file": "command.go", "symbol": "shortHasNoOptDefVal", "line": 662, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=570-593\nread minCommandPathPadding for detail", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=643-666\nread TestStripFlags for detail", "file": "command_test.go", "symbol": "TestStripFlags", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=49-72\nread defaultTraverseRunHooks for detail", "file": "cobra.go", "symbol": "defaultTraverseRunHooks", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=181-204\nread TestNoDuplicateArgs_WithValid_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=58-81\nread activeHelpEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read active_help.go lines=38-61\nread AppendActiveHelp for detail", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=94-117\nread TestGenMdTree for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdTree", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=37-60\nread ExampleGenMan for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenMan", "line": 37, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "필수 플래그가 누락되었을 때 자동 완성 목록에 추가해 주는 로직 어디 있어?", "query": "required flag completion", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lang": "ko", "candidates": [{"text": "File: doc/man_docs_test.go\nLine 13: // limitations under the License.", "file": "doc/man_docs_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "zsh_completions_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 6: //", "file": "zsh_completions_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "bash_completionsV2_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 23: $(info ******************** running tests ********************)", "file": "Makefile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 39: printCmd.PersistentFlags().StringP(\"strthree\", \"s\", \"three\", \"help message for flag strthree\")", "file": "doc/cmd_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 632: func completeRequireFlags(finalCmd *Command, toComplete string) []Completion {", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command.go\nLine 1365: c.commands = append(c.commands, x)", "file": "command.go", "symbol": "", "line": 1365, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 270: $CompletionText", "file": "powershell_completions.go", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/man_docs_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 38: }", "file": "command_win.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 58: func TestGenMdNoHiddenParents(t *testing.T) {", "file": "doc/md_docs_test.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 90: args: []string{\"--a=foo\", \"--c=foo\", \"--d=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 5: // You may obtain a copy of the License at", "file": "command_notwin.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 187: },", "file": "cobra.go", "symbol": "", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 5: // You may obtain a copy of the License at", "file": "command_notwin.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1761: if c.iflags.Lookup(f.Name) == nil && local.Lookup(f.Name) == nil {", "file": "command.go", "symbol": "", "line": 1761, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 49: if activeHelpCfg != activeHelpGlobalDisable {", "file": "active_help.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 103: continue", "file": "doc/md_docs.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2688: key := cmd.Context().Value(key{})", "file": "command_test.go", "symbol": "", "line": 2688, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 16: // +build !windows", "file": "command_notwin.go", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 24: c := &Command{", "file": "flag_groups_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 298: maximumNArgsWithMoreArgs(err, t)", "file": "args_test.go", "symbol": "", "line": 298, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 139: groupStatus[group][pflag.Name] = pflag.Changed", "file": "flag_groups.go", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "필수 플래그가 누락되었을 때 자동 완성 목록에 추가해 주는 로직 어디 있어?", "query": "required flag completion", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lang": "ko", "candidates": [{"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "필수 플래그가 누락되었을 때 자동 완성 목록에 추가해 주는 로직 어디 있어?", "query": "required flag completion", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lang": "ko", "candidates": [{"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "필수 플래그가 누락되었을 때 자동 완성 목록에 추가해 주는 로직 어디 있어?", "query": "required flag completion", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lang": "ko", "candidates": [{"text": "Next: read doc/yaml_docs.go lines=149-172\nread genFlagResult for detail", "file": "doc/yaml_docs.go", "symbol": "genFlagResult", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=632-655\nread completeRequireFlags for detail", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=82-105\nread ArbitraryArgs for detail", "file": "args.go", "symbol": "ArbitraryArgs", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=432-455\nread getIn for detail", "file": "command.go", "symbol": "getIn", "line": 432, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=69-92\nread timesCmd for detail", "file": "doc/cmd_test.go", "symbol": "timesCmd", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=254-277\nread progname for detail", "file": "cobra_test.go", "symbol": "progname", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=209-232\nread sortedKeys for detail", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=275-298\nread SetContext for detail", "file": "command.go", "symbol": "SetContext", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1357-1380\nread TestValidArgsFuncSingleCmdInvalidArg for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=110-133\nread noDuplicateArgsWithDuplicate for detail", "file": "args_test.go", "symbol": "noDuplicateArgsWithDuplicate", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=844-867\nread TestRequiredFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestRequiredFlagNameCompletionInGo", "line": 844, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1624-1647\nread TestFlagCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGo", "line": 1624, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=266-289\nread TestConfigActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestConfigActiveHelp", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=26-49\nread TestGenMdDoc for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Je cherche les tests qui vérifient la gestion des arguments quand on impose un nombre précis de paramètres. Pourrais-tu me montrer comment on teste si une commande échoue ou réussit selon la validité des entrées fournies ?", "query": "test exact arguments", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lang": "fr", "candidates": [{"text": "File: doc/md_docs.go\nLine 140: }", "file": "doc/md_docs.go", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 170: result = append(result, opt)", "file": "doc/yaml_docs.go", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 283: local tab=$'\\t'", "file": "bash_completionsV2.go", "symbol": "", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 129: __%[1]s_debug \"lastParam: ${lastParam}, lastChar: ${lastChar}\"", "file": "zsh_completions.go", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "fish_completions_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 34: return true", "file": "doc/util.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 333: func TestExactArgs_WithValid_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command.go\nLine 425: }", "file": "command.go", "symbol": "", "line": 425, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1811: func (c *Command) HasLocalFlags() bool {", "file": "command.go", "symbol": "", "line": 1811, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 114: b.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 115: t.Errorf(\"Expected ld: %v\\nGot: %v\", tt.expected, got)", "file": "cobra_test.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 1: BIN=\"./bin\"", "file": "Makefile", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 86: Path string", "file": "doc/man_docs.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 278: __%[1]s_handle_filename_extension_flag()", "file": "bash_completions.go", "symbol": "", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 43: echoCmd.AddCommand(timesCmd, echoSubCmd, deprecatedCmd)", "file": "doc/cmd_test.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 18: \"bytes\"", "file": "doc/rest_docs_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 82: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 93: templateFuncs[k] = v", "file": "cobra.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 6: //", "file": "command_notwin.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 341: Aliases: []string{\"say\", \"tell\"},", "file": "command_test.go", "symbol": "", "line": 341, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 20: \"github.com/spf13/cobra\"", "file": "doc/util.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 87: t.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1597: return c.Run != nil || c.RunE != nil", "file": "command.go", "symbol": "", "line": 1597, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Je cherche les tests qui vérifient la gestion des arguments quand on impose un nombre précis de paramètres. Pourrais-tu me montrer comment on teste si une commande échoue ou réussit selon la validité des entrées fournies ?", "query": "test exact arguments", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lang": "fr", "candidates": [{"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestExactArgs_WithValid_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Je cherche les tests qui vérifient la gestion des arguments quand on impose un nombre précis de paramètres. Pourrais-tu me montrer comment on teste si une commande échoue ou réussit selon la validité des entrées fournies ?", "query": "test exact arguments", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lang": "fr", "candidates": [{"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Je cherche les tests qui vérifient la gestion des arguments quand on impose un nombre précis de paramètres. Pourrais-tu me montrer comment on teste si une commande échoue ou réussit selon la validité des entrées fournies ?", "query": "test exact arguments", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lang": "fr", "candidates": [{"text": "Next: read completions.go lines=587-610\nread helpOrVersionFlagPresent for detail", "file": "completions.go", "symbol": "helpOrVersionFlagPresent", "line": 587, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=333-356\nread TestExactArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=1717-1740\nread TestValidArgsFuncChildCmdsWithDesc for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmdsWithDesc", "line": 1717, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=149-172\nread TestManPrintFlagsHidesShortDeprecated for detail", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=466-489\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=43-66\nread TestGenRSTNoHiddenParents for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoHiddenParents", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=526-549\nread UsageString for detail", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=583-606\nread TestFlagNameCompletionInGoWithDesc for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGoWithDesc", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=37-60\nread cmdDoc for detail", "file": "doc/yaml_docs.go", "symbol": "cmdDoc", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "フラグセットから非推奨または非表示ではないフラグを取得し、短縮形と長い名前の両方がある場合は両方を表示し、文字列型の場合は値を引用符で囲むようにフォーマットしてマークダウン形式で出力する関数を書いてください。", "query": "man print flags", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lang": "ja", "candidates": [{"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 48: buf := new(bytes.Buffer)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 37: }", "file": "powershell_completions.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "bash_completionsV2_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 30: // check that active help is being disabled", "file": "powershell_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 117: // The *Run functions are executed in the following order:", "file": "command.go", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 36: assertNoErr(t, rootCmd.GenFishCompletion(buf, false))", "file": "fish_completions_test.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 155: manPrintFlags(buf, c.Flags())", "file": "doc/man_docs_test.go", "symbol": "", "line": 155, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nLine 41: // and writes it to the passed writer.", "file": "zsh_completions.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 15: package cobra", "file": "command_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 6: //", "file": "doc/rest_docs.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 159: func manPrintFlags(buf io.StringWriter, flags *pflag.FlagSet) {", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nLine 292: # the user need to press space anyway to get the completion.", "file": "powershell_completions.go", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 141: __%[1]s_debug \"This doesn't require order preservation\"", "file": "fish_completions.go", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 21: )", "file": "bash_completionsV2_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 21: \"testing\"", "file": "active_help_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 85: if cmd.HasParent() {", "file": "doc/md_docs.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 15: package cobra", "file": "active_help.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 285: outFile, err := os.Create(filename)", "file": "fish_completions.go", "symbol": "", "line": 285, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 185: if ((${#activeHelp[*]} != 0)); then", "file": "bash_completionsV2.go", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 275: # Return the success of having called _describe", "file": "zsh_completions.go", "symbol": "", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 20: import (", "file": "command_win.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 281: }", "file": "args_test.go", "symbol": "", "line": 281, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "フラグセットから非推奨または非表示ではないフラグを取得し、短縮形と長い名前の両方がある場合は両方を表示し、文字列型の場合は値を引用符で囲むようにフォーマットしてマークダウン形式で出力する関数を書いてください。", "query": "man print flags", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lang": "ja", "candidates": [{"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nsibling in doc", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "フラグセットから非推奨または非表示ではないフラグを取得し、短縮形と長い名前の両方がある場合は両方を表示し、文字列型の場合は値を引用符で囲むようにフォーマットしてマークダウン形式で出力する関数を書いてください。", "query": "man print flags", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lang": "ja", "candidates": [{"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> path/filepath", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> os", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> io", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> sort", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> strings", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs.go -> strconv", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "フラグセットから非推奨または非表示ではないフラグを取得し、短縮形と長い名前の両方がある場合は両方を表示し、文字列型の場合は値を引用符で囲むようにフォーマットしてマークダウン形式で出力する関数を書いてください。", "query": "man print flags", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lang": "ja", "candidates": [{"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1717-1740\nread TestValidArgsFuncChildCmdsWithDesc for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmdsWithDesc", "line": 1717, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=105-128\nread GenMan for detail", "file": "doc/man_docs.go", "symbol": "GenMan", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs_test.go lines=57-80\nread TestGenYamlTree for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlTree", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=86-109\nread onetwo for detail", "file": "command_test.go", "symbol": "onetwo", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=750-773\nread isFlagArg for detail", "file": "command.go", "symbol": "isFlagArg", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=94-117\nread GenManHeader for detail", "file": "doc/man_docs.go", "symbol": "GenManHeader", "line": 94, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=70-93\nread resetCommandLineFlagSet for detail", "file": "command_test.go", "symbol": "resetCommandLineFlagSet", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=696-719\nread nonCompletableFlag for detail", "file": "bash_completions.go", "symbol": "nonCompletableFlag", "line": 696, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2787-2810\nread TestCompleteWithDisableFlagParsing for detail", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=643-666\nread ErrPrefix for detail", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=150-173\nread result for detail", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=49-72\nread TestLevenshteinDistance for detail", "file": "cobra_test.go", "symbol": "TestLevenshteinDistance", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2323-2346\nread TestArgAliasesCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestArgAliasesCompletionInGo", "line": 2323, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=192-215\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=38-61\nread GenManTree for detail", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/yaml_docs_test.go lines=27-50\nread TestGenYamlDoc for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDoc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=84-107\nread GenManTreeOptions for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeOptions", "line": 84, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "無効なフラグ値(例: `-iabc`)を渡したときにエラーが発生することを確認するテストケースを作成してください。", "query": "flag invalid input test", "file": "command_test.go", "symbol": "TestFlagInvalidInput", "line": 604, "lang": "ja", "candidates": [{"text": "File: args.go\nLine 8: //", "file": "args.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 47: }", "file": "args.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 377: fi", "file": "bash_completions.go", "symbol": "", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2462: rootCmd := &Command{", "file": "completions_test.go", "symbol": "", "line": 2462, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 181: __%[1]s_debug \"ShellCompDirectiveFilterFileExt ShellCompDirectiveFilterDirs are not supported\"", "file": "powershell_completions.go", "symbol": "", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 15: package doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 198: # we sort the values in ascending order by name if keep order isn't passed", "file": "powershell_completions.go", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_notwin.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 59: // Test that activeHelp can be added to a child command", "file": "active_help_test.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 105: }", "file": "fish_completions_test.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 25: func ExampleGenManTree() {", "file": "doc/man_examples_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1099: if output != expected {", "file": "completions_test.go", "symbol": "", "line": 1099, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 114: _, err := w.Write(md2man.Render(b))", "file": "doc/man_docs.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 221: if err := exec.Command(\"which\", \"shellcheck\").Run(); err != nil {", "file": "bash_completions_test.go", "symbol": "", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 196: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 604: func TestFlagInvalidInput(t *testing.T) {", "file": "command_test.go", "symbol": "TestFlagInvalidInput", "line": 604, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nLine 38: func GenManTree(cmd *cobra.Command, header *GenManHeader, dir string) error {", "file": "doc/man_docs.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 156: args: []string{\"subcmd\", \"--e=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 77: __%[1]s_debug \"${FUNCNAME[0]}: cur is ${cur}, words[*] is ${words[*]}, #words[@] is ${#words[@]}\"", "file": "bash_completions.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 23: \"strings\"", "file": "bash_completions.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/md_docs_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 108: local shellCompDirectiveNoSpace=%[4]d", "file": "zsh_completions.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 39: printCmd.PersistentFlags().StringP(\"strthree\", \"s\", \"three\", \"help message for flag strthree\")", "file": "doc/cmd_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 208: if d&ShellCompDirectiveNoFileComp != 0 {", "file": "completions.go", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "無効なフラグ値(例: `-iabc`)を渡したときにエラーが発生することを確認するテストケースを作成してください。", "query": "flag invalid input test", "file": "command_test.go", "symbol": "TestFlagInvalidInput", "line": 604, "lang": "ja", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "無効なフラグ値(例: `-iabc`)を渡したときにエラーが発生することを確認するテストケースを作成してください。", "query": "flag invalid input test", "file": "command_test.go", "symbol": "TestFlagInvalidInput", "line": 604, "lang": "ja", "candidates": [{"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "無効なフラグ値(例: `-iabc`)を渡したときにエラーが発生することを確認するテストケースを作成してください。", "query": "flag invalid input test", "file": "command_test.go", "symbol": "TestFlagInvalidInput", "line": 604, "lang": "ja", "candidates": [{"text": "Next: read command.go lines=289-312\nread SetOutput for detail", "file": "command.go", "symbol": "SetOutput", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions.go lines=25-48\nread genFishComp for detail", "file": "fish_completions.go", "symbol": "genFishComp", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=357-380\nread TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=77-100\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=38-61\nread GenManTree for detail", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=263-286\nread TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=111-134\nread BenchmarkGenMarkdownToFile for detail", "file": "doc/md_docs_test.go", "symbol": "BenchmarkGenMarkdownToFile", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=22-45\nread test for detail", "file": "Makefile", "symbol": "test", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=269-292\nread Context for detail", "file": "command.go", "symbol": "Context", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=275-298\nread SetContext for detail", "file": "command.go", "symbol": "SetContext", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=187-210\nread manPrintOptions for detail", "file": "doc/man_docs.go", "symbol": "manPrintOptions", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=604-627\nread TestFlagInvalidInput for detail", "file": "command_test.go", "symbol": "TestFlagInvalidInput", "line": 604, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=245-268\nread TestBashCompletionDeprecatedFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionDeprecatedFlag", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=389-412\nread TestRangeArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "인자 개수 제한 검증 테스트 찾아줘", "query": "max args test", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lang": "ko", "candidates": [{"text": "File: flag_groups_test.go\nLine 171: c.MarkFlagsOneRequired(strings.Split(flagGroup, \" \")...)", "file": "flag_groups_test.go", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 85: Use: \"print [string to print]\",", "file": "doc/cmd_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 106: if (((directive & shellCompDirectiveError) != 0)); then", "file": "bash_completionsV2.go", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 489: }", "file": "bash_completions.go", "symbol": "", "line": 489, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 930: c.Println(\"\\\"help\\\" flag declared as non-bool. Please correct your code\")", "file": "command.go", "symbol": "", "line": 930, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3838: const (", "file": "completions_test.go", "symbol": "", "line": 3838, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 15: package cobra", "file": "powershell_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 18: \"bytes\"", "file": "doc/rest_docs.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 17: import (", "file": "flag_groups.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 62: }", "file": "args.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 68: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "bash_completionsV2_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 100: initializers = append(initializers, y...)", "file": "cobra.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 189: output, err := executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"thechild\", \"\")", "file": "active_help_test.go", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 163: end", "file": "fish_completions.go", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 111: func hasAllFlags(fs *flag.FlagSet, flagnames ...string) bool {", "file": "flag_groups.go", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 6: github.com/cpuguy83/go-md2man/v2 v2.0.6", "file": "go.mod", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 48: fmt.Print(out.String())", "file": "doc/man_examples_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 193: __%[1]s_debug \"ActiveHelp will need delimiter\"", "file": "zsh_completions.go", "symbol": "", "line": 193, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 45: type Group struct {", "file": "command.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 187: check(t, output, `noun_aliases+=(\"pods\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 283: func TestMaximumNArgs_WithValid_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "인자 개수 제한 검증 테스트 찾아줘", "query": "max args test", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lang": "ko", "candidates": [{"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestMaximumNArgs_WithValid_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "인자 개수 제한 검증 테스트 찾아줘", "query": "max args test", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lang": "ko", "candidates": [{"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "인자 개수 제한 검증 테스트 찾아줘", "query": "max args test", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lang": "ko", "candidates": [{"text": "Next: read command_test.go lines=562-585\nread TestChildFlag for detail", "file": "command_test.go", "symbol": "TestChildFlag", "line": 562, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=80-103\nread genZshCompletion for detail", "file": "zsh_completions.go", "symbol": "genZshCompletion", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=828-851\nread parentFlagValue for detail", "file": "command_test.go", "symbol": "parentFlagValue", "line": 828, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=447-470\nread writeCommands for detail", "file": "bash_completions.go", "symbol": "writeCommands", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=69-92\nread timesCmd for detail", "file": "doc/cmd_test.go", "symbol": "timesCmd", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=283-306\nread TestMaximumNArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=94-117\nread TestGenMdTree for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdTree", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1821-1844\nread TestFlagCompletionWithNotInterspersedArgs for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWithNotInterspersedArgs", "line": 1821, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=438-461\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=337-360\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=192-215\nread ld for detail", "file": "cobra.go", "symbol": "ld", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=605-628\nread HelpTemplate for detail", "file": "command.go", "symbol": "HelpTemplate", "line": 605, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=144-167\nread validateRequiredFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateRequiredFlagGroups", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=217-240\nread BenchmarkGenManToFile for detail", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Cómo validar que una cadena coincida con una expresión regular en las pruebas unitarias?", "query": "regex match test", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lang": "es", "candidates": [{"text": "File: bash_completions.go\nLine 255: if [[ ${#COMPREPLY[@]} -eq 0 ]]; then", "file": "bash_completions.go", "symbol": "", "line": 255, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "shell_completions.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 204: ${flags_completion[${index}]}", "file": "bash_completions.go", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 749: // Reset the flag for the next command", "file": "completions_test.go", "symbol": "", "line": 749, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 121: case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:", "file": "cobra.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 2: //", "file": "active_help.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 12: all: fmt test", "file": "Makefile", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 5: // You may obtain a copy of the License at", "file": "active_help.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 123: parent := cmd.Parent()", "file": "doc/yaml_docs.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 22: type PositionalArgs func(cmd *Command, args []string) error", "file": "args.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 19: \"fmt\"", "file": "doc/man_examples_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 27: assertNoErr(t, c.GenPowerShellCompletion(buf))", "file": "powershell_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1331: expected := strings.Join([]string{", "file": "completions_test.go", "symbol": "", "line": 1331, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 88: link := pname + markdownExtension", "file": "doc/md_docs.go", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 35: // MarkFlagRequired instructs the various shell completion implementations to", "file": "shell_completions.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1080: expected = strings.Join([]string{", "file": "completions_test.go", "symbol": "", "line": 1080, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_win.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 46: func checkRegex(t *testing.T, found, pattern string) {", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2_test.go\nLine 6: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 19: \"fmt\"", "file": "doc/md_docs.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 179: if ((($Directive -band $ShellCompDirectiveFilterFileExt) -ne 0 ) -or", "file": "powershell_completions.go", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 49: defaultTraverseRunHooks = false", "file": "cobra.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 12: all: fmt test", "file": "Makefile", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Cómo validar que una cadena coincida con una expresión regular en las pruebas unitarias?", "query": "regex match test", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lang": "es", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Cómo validar que una cadena coincida con una expresión regular en las pruebas unitarias?", "query": "regex match test", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lang": "es", "candidates": [{"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> testing", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> strings", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions_test.go -> regexp", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> os", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> os/exec", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Cómo validar que una cadena coincida con una expresión regular en las pruebas unitarias?", "query": "regex match test", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lang": "es", "candidates": [{"text": "Next: read completions.go lines=429-452\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 429, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=82-105\nread ArbitraryArgs for detail", "file": "args.go", "symbol": "ArbitraryArgs", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=78-101\nread bashCompletionFunc for detail", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=296-319\nread SetOut for detail", "file": "command.go", "symbol": "SetOut", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=56-79\nread runShellCheck for detail", "file": "bash_completions_test.go", "symbol": "runShellCheck", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=147-170\nread TestNoArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValidOnly_WithInvalidArgs", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=235-258\nread TestExecute_NoContext for detail", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=269-292\nread Context for detail", "file": "command.go", "symbol": "Context", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2787-2810\nread TestCompleteWithDisableFlagParsing for detail", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=438-461\nread TestRootTakesArgs for detail", "file": "args_test.go", "symbol": "TestRootTakesArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=217-240\nread BenchmarkGenManToFile for detail", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=38-61\nread GenManTree for detail", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=277-300\nread TestMaximumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2926-2949\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2926, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Je cherche la logique qui permet de récupérer la fonction de rendu de l'aide. Elle doit remonter la hiérarchie des commandes si la fonction n'est pas définie localement.", "query": "help template function", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lang": "fr", "candidates": [{"text": "File: doc/man_examples_test.go\nLine 25: func ExampleGenManTree() {", "file": "doc/man_examples_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 44: return fmt.Errorf(\"unknown command %q for %q\", args[0], cmd.CommandPath())", "file": "args.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_win.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 505: func (c *Command) getHelpTemplateFunc() func(w io.Writer, data interface{}) error {", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions_test.go\nLine 103: if err != nil {", "file": "fish_completions_test.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 65: checkStringOmits(t, output, translate(deprecatedCmd.Name()))", "file": "doc/man_docs_test.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 163: result = append(result, opt)", "file": "doc/yaml_docs.go", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 58: func activeHelpEnvVar(name string) string {", "file": "active_help.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 40: checkStringContains(t, output, echoSubCmd.Short)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 64: cmd.InitDefaultHelpFlag()", "file": "doc/rest_docs.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 29: \"github.com/spf13/cobra\"", "file": "doc/man_docs.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 19: \"fmt\"", "file": "doc/rest_docs.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 209: } else {", "file": "cobra.go", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 237: processFlagForGroupAnnotation(flags, pflag, mutuallyExclusiveAnnotation, mutuallyExclusiveGroupStatus)", "file": "flag_groups.go", "symbol": "", "line": 237, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 21: )", "file": "bash_completionsV2_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 51: func OnlyValidArgs(cmd *Command, args []string) error {", "file": "args.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 141: // Deprecated: use MatchAll(ExactArgs(n), OnlyValidArgs) instead", "file": "args.go", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 89: if len(args) < n {", "file": "args.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 206: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 15: package cobra", "file": "active_help.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 510: rootCmd := &Command{Use: \"root\", Args: pargs, Run: emptyRun}", "file": "args_test.go", "symbol": "", "line": 510, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 123: Run: emptyRun,", "file": "bash_completions_test.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 87: }", "file": "fish_completions_test.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 103: got := err.Error()", "file": "args_test.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Je cherche la logique qui permet de récupérer la fonction de rendu de l'aide. Elle doit remonter la hiérarchie des commandes si la fonction n'est pas définie localement.", "query": "help template function", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lang": "fr", "candidates": [{"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Je cherche la logique qui permet de récupérer la fonction de rendu de l'aide. Elle doit remonter la hiérarchie des commandes si la fonction n'est pas définie localement.", "query": "help template function", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lang": "fr", "candidates": [{"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Je cherche la logique qui permet de récupérer la fonction de rendu de l'aide. Elle doit remonter la hiérarchie des commandes si la fonction n'est pas définie localement.", "query": "help template function", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lang": "fr", "candidates": [{"text": "Next: read command_test.go lines=588-611\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 588, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=505-528\nread getHelpTemplateFunc for detail", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=438-461\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=120-143\nread TestFailGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestFailGenFishCompletionFile", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=470-493\nread GenBashCompletionFileV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionFileV2", "line": 470, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=43-66\nread expected for detail", "file": "cobra_test.go", "symbol": "expected", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=30-53\nread markdownExtension for detail", "file": "doc/md_docs.go", "symbol": "markdownExtension", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=91-114\nread AddTemplateFuncs for detail", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=371-394\nread TestRangeArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=339-362\nread TestExactArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1591-1614\nread TestCompleteNoDesCmdInZshScript for detail", "file": "completions_test.go", "symbol": "TestCompleteNoDesCmdInZshScript", "line": 1591, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=568-591\nread completionFn for detail", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=844-867\nread TestRequiredFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestRequiredFlagNameCompletionInGo", "line": 844, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=38-61\nread GenManTree for detail", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=789-812\nread TestChildFlagShadowsParentPersistentFlag for detail", "file": "command_test.go", "symbol": "TestChildFlagShadowsParentPersistentFlag", "line": 789, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=497-520\nread writeShortFlag for detail", "file": "bash_completions.go", "symbol": "writeShortFlag", "line": 497, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "where is the variable that holds the file extension string used for shell completion?", "query": "file extension completion", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lang": "en", "candidates": [{"text": "File: powershell_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "powershell_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 161: defer f.Close()", "file": "doc/rest_docs.go", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 60: }", "file": "flag_groups.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 31: Title: \"MINE\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 42: if len(s) > 60 && !strings.Contains(s, \"\\n\") {", "file": "doc/util.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 71: checkStringContains(t, output, echoCmd.Long)", "file": "doc/md_docs_test.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "bash_completionsV2_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 24: // The below values should not be changed: programs will be using them explicitly", "file": "active_help.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 43: echoCmd.AddCommand(timesCmd, echoSubCmd, deprecatedCmd)", "file": "doc/cmd_test.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 51: func (s byName) Swap(i, j int) { s[i], s[j] = s[j], s[i] }", "file": "doc/util.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 38: cmd := &cobra.Command{", "file": "doc/man_examples_test.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "powershell_completions.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 134: if [[ \"${lastParam}\" =~ '-.*=' ]]; then", "file": "zsh_completions.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/rest_docs_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 254: # and not completion of the program name itself.", "file": "fish_completions.go", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 104: rootCmd.Flags().String(\"filename-ext\", \"\", \"Enter a filename (extension limited)\")", "file": "bash_completions_test.go", "symbol": "", "line": 104, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nLine 66: if len(cmd.Long) > 0 {", "file": "doc/md_docs.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 71: // MarkFlagCustom adds the BashCompCustom annotation to the named flag, if it exists.", "file": "shell_completions.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 174: var res []byte", "file": "doc/rest_docs.go", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 484: var ext string", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nLine 47: var rootCmd = &cobra.Command{", "file": "doc/cmd_test.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 41: parentFlags := cmd.InheritedFlags()", "file": "doc/md_docs.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 21: )", "file": "powershell_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 40: }", "file": "active_help.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "where is the variable that holds the file extension string used for shell completion?", "query": "file extension completion", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lang": "en", "candidates": [{"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "where is the variable that holds the file extension string used for shell completion?", "query": "file extension completion", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lang": "en", "candidates": [{"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> os", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> sort", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> io", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> strings", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> github.com/spf13/pflag", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "where is the variable that holds the file extension string used for shell completion?", "query": "file extension completion", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lang": "en", "candidates": [{"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=81-104\nread TestGenMdNoTag for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoTag", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=345-368\nread TestExactArgs_WithInvalidCount for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=383-406\nread TestRangeArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread right for detail", "file": "cobra.go", "symbol": "right", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2323-2346\nread TestArgAliasesCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestArgAliasesCompletionInGo", "line": 2323, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=279-302\nread TestBashCompletionNoActiveHelp for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionNoActiveHelp", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=160-183\nread FixedCompletions for detail", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=351-374\nread TestExactArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=25-48\nread GenZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFile", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2787-2810\nread TestCompleteWithDisableFlagParsing for detail", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=30-53\nread BashCompFilenameExt for detail", "file": "bash_completions.go", "symbol": "BashCompFilenameExt", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Verifique se a execução de um comando raiz 'foo' com um subcomando também chamado 'foo' e argumentos adicionais funciona corretamente.\nO teste deve garantir que os argumentos sejam passados e processados conforme o esperado pelo subcomando filho.", "query": "cobra duplicate command name", "file": "command_test.go", "symbol": "TestChildSameName", "line": 437, "lang": "pt", "candidates": [{"text": "File: flag_groups.go\nLine 253: // If none of the flags of a one-required group are present, we make all the flags", "file": "flag_groups.go", "symbol": "", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1286: if strings.HasPrefix(subCmd.Name(), toComplete) {", "file": "command.go", "symbol": "", "line": 1286, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 189: printf \"%%s\\n\" \"${activeHelp[@]}\"", "file": "bash_completionsV2.go", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 99: sort.Sort(byName(children))", "file": "doc/md_docs.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 15: package doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 31: if MousetrapHelpText != \"\" && mousetrap.StartedByExplorer() {", "file": "command_win.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 198: return fmt.Errorf(\"hit EOF before finding %v\", expectedLine)", "file": "doc/man_docs_test.go", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 21: )", "file": "bash_completionsV2_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 393: }", "file": "args_test.go", "symbol": "", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 500: Version: \"1.2.3\",", "file": "completions_test.go", "symbol": "", "line": 500, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/util.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 99: if len(args) > n {", "file": "args.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 256: if strings.Contains(output, flagName) {", "file": "bash_completions_test.go", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 281: __%[1]s_debug \"deactivating file completion\"", "file": "zsh_completions.go", "symbol": "", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 161: return fmt.Errorf(\"if any flags in the group [%v] are set they must all be set; missing %v\", flagList, unset)", "file": "flag_groups.go", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 73: Long: `a slightly useless command for testing.`,", "file": "doc/cmd_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1315: }", "file": "completions_test.go", "symbol": "", "line": 1315, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 19: \"fmt\"", "file": "zsh_completions_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 124: }", "file": "fish_completions_test.go", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "command_win.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 241: t.Errorf(\"Expected completion to not include %q flag: Got %v\", flagName, output)", "file": "bash_completions_test.go", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 214: # If there are completion choices to be shown, print a delimiter.", "file": "bash_completionsV2.go", "symbol": "", "line": 214, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 101: __%[1]s_debug \"Completing equal sign flag\"", "file": "powershell_completions.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 437: func TestChildSameName(t *testing.T) {", "file": "command_test.go", "symbol": "TestChildSameName", "line": 437, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Verifique se a execução de um comando raiz 'foo' com um subcomando também chamado 'foo' e argumentos adicionais funciona corretamente.\nO teste deve garantir que os argumentos sejam passados e processados conforme o esperado pelo subcomando filho.", "query": "cobra duplicate command name", "file": "command_test.go", "symbol": "TestChildSameName", "line": 437, "lang": "pt", "candidates": [{"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Verifique se a execução de um comando raiz 'foo' com um subcomando também chamado 'foo' e argumentos adicionais funciona corretamente.\nO teste deve garantir que os argumentos sejam passados e processados conforme o esperado pelo subcomando filho.", "query": "cobra duplicate command name", "file": "command_test.go", "symbol": "TestChildSameName", "line": 437, "lang": "pt", "candidates": [{"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Verifique se a execução de um comando raiz 'foo' com um subcomando também chamado 'foo' e argumentos adicionais funciona corretamente.\nO teste deve garantir que os argumentos sejam passados e processados conforme o esperado pelo subcomando filho.", "query": "cobra duplicate command name", "file": "command_test.go", "symbol": "TestChildSameName", "line": 437, "lang": "pt", "candidates": [{"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=437-460\nread TestChildSameName for detail", "file": "command_test.go", "symbol": "TestChildSameName", "line": 437, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=100-123\nread compCmdName for detail", "file": "completions.go", "symbol": "compCmdName", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2451-2474\nread removeCompCmd for detail", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=676-699\nread customMultiString for detail", "file": "completions_test.go", "symbol": "customMultiString", "line": 676, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=536-559\nread prepareCustomAnnotationsForFlags for detail", "file": "bash_completions.go", "symbol": "prepareCustomAnnotationsForFlags", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=701-724\nread GenBashCompletionFile for detail", "file": "bash_completions.go", "symbol": "GenBashCompletionFile", "line": 701, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=401-424\nread TestRangeArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help_test.go lines=26-49\nread activeHelpMessage2 for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=31-54\nread MarkPersistentFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=266-289\nread TestConfigActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestConfigActiveHelp", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=24-47\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=243-266\nread WriteStringAndCheck for detail", "file": "cobra.go", "symbol": "WriteStringAndCheck", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=78-101\nread bashCompletionFunc for detail", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=662-685\nread shortHasNoOptDefVal for detail", "file": "command.go", "symbol": "shortHasNoOptDefVal", "line": 662, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "二次元マップからキーを抽出してソートして返す処理はどこにありますか?", "query": "map keys sort", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lang": "ja", "candidates": [{"text": "File: active_help.go\nLine 45: // It will always return \"0\" if the global environment variable COBRA_ACTIVE_HELP", "file": "active_help.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_notwin.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 65: args: []string{\"--a=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 225: # Fish won't add a space if the completion ends with any", "file": "fish_completions.go", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 496: \"happy path\": {", "file": "args_test.go", "symbol": "", "line": 496, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 57: validArgs = append(validArgs, strings.SplitN(v, \"\\t\", 2)[0])", "file": "args.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 17: import (", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 18: \"bytes\"", "file": "zsh_completions_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 21: \"github.com/spf13/cobra\"", "file": "doc/cmd_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 206: comps := []string{\"first\"}", "file": "active_help_test.go", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 150: __%[1]s_debug \"\"", "file": "fish_completions.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 140: //", "file": "args.go", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 116: if got != expected {", "file": "args_test.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 546: // see if there are any ArgAliases that should be completed.", "file": "completions.go", "symbol": "", "line": 546, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 145: subCmdFlagGroupsOneRequired: []string{\"e subonly\"},", "file": "flag_groups_test.go", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 196: if [ $COMP_TYPE -eq 63 ]; then", "file": "bash_completionsV2.go", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 105: cmd.VisitParents(func(c *cobra.Command) {", "file": "doc/rest_docs.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_notwin.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 485: return fmt.Errorf(\"expected to be exactly 2 bytes long\")", "file": "args_test.go", "symbol": "", "line": 485, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 186: helpCommandGroupID string", "file": "command.go", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 57: func GenMarkdownCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string) string) error {", "file": "doc/md_docs.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 111: flags := cmd.NonInheritedFlags()", "file": "doc/yaml_docs.go", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 209: func sortedKeys(m map[string]map[string]bool) []string {", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions.go\nLine 73: }", "file": "bash_completions.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "二次元マップからキーを抽出してソートして返す処理はどこにありますか?", "query": "map keys sort", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lang": "ja", "candidates": [{"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "二次元マップからキーを抽出してソートして返す処理はどこにありますか?", "query": "map keys sort", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lang": "ja", "candidates": [{"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> strings", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> github.com/spf13/pflag", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "二次元マップからキーを抽出してソートして返す処理はどこにありますか?", "query": "map keys sort", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lang": "ja", "candidates": [{"text": "Next: read command.go lines=333-356\nread SetHelpFunc for detail", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=579-602\nread comps for detail", "file": "completions.go", "symbol": "comps", "line": 579, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=127-150\nread MatchAll for detail", "file": "args.go", "symbol": "MatchAll", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=113-136\nread TestChildCommand for detail", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=91-114\nread AddTemplateFuncs for detail", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=701-724\nread GenBashCompletionFile for detail", "file": "bash_completions.go", "symbol": "GenBashCompletionFile", "line": 701, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=536-559\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=253-276\nread dirname for detail", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=169-192\nread TestNoDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=187-210\nread manPrintOptions for detail", "file": "doc/man_docs.go", "symbol": "manPrintOptions", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=275-298\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=67-90\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=209-232\nread sortedKeys for detail", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "busca las variables para los límites de rango", "query": "range limits", "file": "cobra.go", "symbol": "right", "line": 115, "lang": "es", "candidates": [{"text": "File: doc/man_docs_test.go\nLine 69: func TestGenManNoHiddenParents(t *testing.T) {", "file": "doc/man_docs_test.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 183: bol = c == '\\n'", "file": "doc/rest_docs.go", "symbol": "", "line": 183, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 94: lastChar=${lastParam:$((${#lastParam}-1)):1}", "file": "bash_completions.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 67: t.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 115: var left, right int64", "file": "cobra.go", "symbol": "right", "line": 115, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nLine 282: if ($ExecutionContext.SessionState.LanguageMode -eq \"FullLanguage\"){", "file": "powershell_completions.go", "symbol": "", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 52: s string", "file": "cobra_test.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1512: c.Println(\" -\"+f.Shorthand+\",\", \"--\"+f.Name, \"[\"+f.DefValue+\"]\", \"\", f.Value, \" [LP]\")", "file": "command.go", "symbol": "", "line": 1512, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 28: richgo test -v $(GO_TEST_FLAGS) ./...", "file": "Makefile", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 5: $(warning \"could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh\")", "file": "Makefile", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "fish_completions_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 60: // argument to the right of the separator. You cannot use both arguments in a single use of the command.", "file": "command.go", "symbol": "", "line": 60, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nLine 75: rootCmd := &Command{Use: \"root:colon\", Args: NoArgs, Run: emptyRun}", "file": "fish_completions_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 246: for _, fName := range strings.Split(flagList, \" \") {", "file": "flag_groups.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 50: //", "file": "shell_completions.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3608: args: []string{\"\"},", "file": "completions_test.go", "symbol": "", "line": 3608, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 30: c.Flags().String(v, \"\", \"\")", "file": "flag_groups_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 55: check(t, output, ShellCompRequestCmd)", "file": "fish_completions_test.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 59: func TestProgWithDash(t *testing.T) {", "file": "fish_completions_test.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 98: return func(cmd *Command, args []string) error {", "file": "args.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 130: continue", "file": "doc/yaml_docs.go", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 54: ignoreCase bool", "file": "cobra_test.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 319: flaghash[${flagname}]=${words[ $((c+1)) ]}", "file": "bash_completions.go", "symbol": "", "line": 319, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "busca las variables para los límites de rango", "query": "range limits", "file": "cobra.go", "symbol": "right", "line": 115, "lang": "es", "candidates": [{"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "busca las variables para los límites de rango", "query": "range limits", "file": "cobra.go", "symbol": "right", "line": 115, "lang": "es", "candidates": [{"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "busca las variables para los límites de rango", "query": "range limits", "file": "cobra.go", "symbol": "right", "line": 115, "lang": "es", "candidates": [{"text": "Next: read command.go lines=654-677\nread hasNoOptDefVal for detail", "file": "command.go", "symbol": "hasNoOptDefVal", "line": 654, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=101-124\nread TestGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=305-328\nread TestEnablePrefixMatching for detail", "file": "command_test.go", "symbol": "TestEnablePrefixMatching", "line": 305, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=583-606\nread TestChildFlagWithParentLocalFlag for detail", "file": "command_test.go", "symbol": "TestChildFlagWithParentLocalFlag", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread right for detail", "file": "cobra.go", "symbol": "right", "line": 115, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=633-656\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=28-51\nread genPowerShellComp for detail", "file": "powershell_completions.go", "symbol": "genPowerShellComp", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=201-224\nread TestArbitraryArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=86-109\nread BenchmarkGenYamlToFile for detail", "file": "doc/yaml_docs_test.go", "symbol": "BenchmarkGenYamlToFile", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=146-169\nread TestRootExecuteUnknownCommand for detail", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=185-208\nread TestRpad for detail", "file": "cobra_test.go", "symbol": "TestRpad", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=95-118\nread ShellCompDirectiveDefault for detail", "file": "completions.go", "symbol": "ShellCompDirectiveDefault", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=407-430\nread TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 407, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=123-146\nread SetDefaultShellCompDirective for detail", "file": "completions.go", "symbol": "SetDefaultShellCompDirective", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=87-110\nread genZshComp for detail", "file": "zsh_completions.go", "symbol": "genZshComp", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "查找根据命令名称和全局环境变量获取帮助配置的逻辑", "query": "active help env", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lang": "zh", "candidates": [{"text": "File: doc/yaml_docs_test.go\nLine 25: )", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 94: __%[1]s_debug \"The completion directive is: ${directive}\"", "file": "bash_completionsV2.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 13: // limitations under the License.", "file": "zsh_completions_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 98: {", "file": "zsh_completions.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 50: t.Fatal(err)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 87: file, err := os.CreateTemp(\"\", \"\")", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 3: go 1.15", "file": "go.mod", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 393: return nil, ShellCompDirectiveDefault", "file": "active_help_test.go", "symbol": "", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 15: //go:build !windows", "file": "command_notwin.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 47: func GetActiveHelpConfig(cmd *Command) string {", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help_test.go\nLine 284: receivedActiveHelpCfg := GetActiveHelpConfig(cmd)", "file": "active_help_test.go", "symbol": "", "line": 284, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nLine 1256: rootCmd := &Command{Use: \"root\", Version: \"1.0.0\", Run: emptyRun}", "file": "command_test.go", "symbol": "", "line": 1256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 80: fi", "file": "bash_completionsV2.go", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 403: # Add the proper number of spaces to align the descriptions", "file": "bash_completionsV2.go", "symbol": "", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 26: Run: func(cmd *Command, args []string) {", "file": "flag_groups_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 45: SeeAlso []string `yaml:\"see_also,omitempty\"`", "file": "doc/yaml_docs.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 37: fmt.Scanln()", "file": "command_win.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 257: noActiveHelp := GetActiveHelpConfig(finalCmd) == activeHelpGlobalDisable", "file": "completions.go", "symbol": "", "line": 257, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nLine 244: // See also: https://github.com/spf13/cobra/pull/1956", "file": "cobra_test.go", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 150: expected: false,", "file": "cobra_test.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 28: output := buf.String()", "file": "powershell_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 15: package doc_test", "file": "doc/man_examples_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 53: //", "file": "zsh_completions.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 60: tmpdir, err := os.MkdirTemp(\"\", \"test-gen-yaml-tree\")", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "查找根据命令名称和全局环境变量获取帮助配置的逻辑", "query": "active help env", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lang": "zh", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "查找根据命令名称和全局环境变量获取帮助配置的逻辑", "query": "active help env", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lang": "zh", "candidates": [{"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "查找根据命令名称和全局环境变量获取帮助配置的逻辑", "query": "active help env", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lang": "zh", "candidates": [{"text": "Next: read completions_test.go lines=2187-2210\nread TestFlagCompletionInGoWithDesc for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGoWithDesc", "line": 2187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=84-107\nread ShellCompDirectiveKeepOrder for detail", "file": "completions.go", "symbol": "ShellCompDirectiveKeepOrder", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=47-70\nread GetActiveHelpConfig for detail", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read fish_completions_test.go lines=120-143\nread TestFailGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestFailGenFishCompletionFile", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=284-307\nread GenFishCompletionFile for detail", "file": "fish_completions.go", "symbol": "GenFishCompletionFile", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=429-452\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 429, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2121-2144\nread TestFlagCompletionConcurrentRegistration for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionConcurrentRegistration", "line": 2121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=67-90\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=26-49\nread activeHelpEnvVarSuffix for detail", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=38-61\nread AppendActiveHelp for detail", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=30-53\nread markdownExtension for detail", "file": "doc/md_docs.go", "symbol": "markdownExtension", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=81-104\nread TestGenMdNoTag for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoTag", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2_test.go lines=23-46\nread TestBashCompletionV2WithActiveHelp for detail", "file": "bash_completionsV2_test.go", "symbol": "TestBashCompletionV2WithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=56-79\nread runShellCheck for detail", "file": "bash_completions_test.go", "symbol": "runShellCheck", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2787-2810\nread TestCompleteWithDisableFlagParsing for detail", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=444-467\nread UsageFunc for detail", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=96-119\nread MarkFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2141-2164\nread wg for detail", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "必須フラググループの整合性を検証するロジックを実装してください。指定されたフラググループの少なくとも1つのフラグが設定されている場合、グループ内のすべてのフラグが設定されている必要があります。設定されていないフラグが一部だけ存在する場合、エラーを返すようにしてください。", "query": "validate flag groups", "file": "flag_groups.go", "symbol": "validateRequiredFlagGroups", "line": 144, "lang": "ja", "candidates": [{"text": "File: doc/cmd_test.go\nLine 82: }", "file": "doc/cmd_test.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1791: c.flags.SetOutput(c.flagErrorBuf)", "file": "command.go", "symbol": "", "line": 1791, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 221: func TestMinimumNArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 84: // The command name should not have replaced the ':'", "file": "fish_completions_test.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 33: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 129: set -l directive (string sub --start 2 $__%[1]s_perform_completion_once_result[-1])", "file": "fish_completions.go", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 254: # Add the proper number of spaces to align the descriptions", "file": "powershell_completions.go", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 50: // basis by using ValidArgsFunction and ShellCompDirectiveNoFileComp.", "file": "zsh_completions.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 75: args: []string{\"--a=foo\", \"--b=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 66: check(t, output, \"__root_dash_perform_completion\")", "file": "fish_completions_test.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 29: // no subcommand, always take args", "file": "args.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 59: cmd.InitDefaultHelpFlag()", "file": "doc/md_docs.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 19: \"os\"", "file": "active_help.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 141: if err := assertLineFound(scanner, \".SH SEE ALSO\"); err != nil {", "file": "doc/man_docs_test.go", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 18: \"bytes\"", "file": "zsh_completions_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/man_examples_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 144: func validateRequiredFlagGroups(data map[string]map[string]bool) error {", "file": "flag_groups.go", "symbol": "validateRequiredFlagGroups", "line": 144, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nLine 96: checkStringContains(t, output, \"boolone\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 845: to enable it. You can execute the following once:", "file": "completions.go", "symbol": "", "line": 845, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 30: func printOptionsReST(buf *bytes.Buffer, cmd *cobra.Command, name string) error {", "file": "doc/rest_docs.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 27: assertNoErr(t, c.GenPowerShellCompletion(buf))", "file": "powershell_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 220: # to re-print the command-line since the shell will", "file": "bash_completionsV2.go", "symbol": "", "line": 220, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "必須フラググループの整合性を検証するロジックを実装してください。指定されたフラググループの少なくとも1つのフラグが設定されている場合、グループ内のすべてのフラグが設定されている必要があります。設定されていないフラグが一部だけ存在する場合、エラーを返すようにしてください。", "query": "validate flag groups", "file": "flag_groups.go", "symbol": "validateRequiredFlagGroups", "line": 144, "lang": "ja", "candidates": [{"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "必須フラググループの整合性を検証するロジックを実装してください。指定されたフラググループの少なくとも1つのフラグが設定されている場合、グループ内のすべてのフラグが設定されている必要があります。設定されていないフラグが一部だけ存在する場合、エラーを返すようにしてください。", "query": "validate flag groups", "file": "flag_groups.go", "symbol": "validateRequiredFlagGroups", "line": 144, "lang": "ja", "candidates": [{"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> strings", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): flag_groups.go -> github.com/spf13/pflag", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "必須フラググループの整合性を検証するロジックを実装してください。指定されたフラググループの少なくとも1つのフラグが設定されている場合、グループ内のすべてのフラグが設定されている必要があります。設定されていないフラグが一部だけ存在する場合、エラーを返すようにしてください。", "query": "validate flag groups", "file": "flag_groups.go", "symbol": "validateRequiredFlagGroups", "line": 144, "lang": "ja", "candidates": [{"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=144-167\nread validateRequiredFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateRequiredFlagGroups", "line": 144, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/man_docs_test.go lines=127-150\nread TestGenManSeeAlso for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=818-841\nread TestPersistentFlagsOnChild for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnChild", "line": 818, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=325-348\nread finalCmd for detail", "file": "completions.go", "symbol": "finalCmd", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1318-1341\nread TestValidArgsFuncSingleCmd for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions_test.go lines=23-46\nread TestZshCompletionWithActiveHelp for detail", "file": "zsh_completions_test.go", "symbol": "TestZshCompletionWithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=599-622\nread getFlagNameCompletions for detail", "file": "completions.go", "symbol": "getFlagNameCompletions", "line": 599, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=274-297\nread TestCommandAlias for detail", "file": "command_test.go", "symbol": "TestCommandAlias", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=562-585\nread TestChildFlag for detail", "file": "command_test.go", "symbol": "TestChildFlag", "line": 562, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=123-146\nread TestNoArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=372-395\nread TestPlugin for detail", "file": "command_test.go", "symbol": "TestPlugin", "line": 372, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=58-81\nread TestGenMdNoHiddenParents for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Estoy revisando la lógica de los comandos y necesito encontrar dónde se define este valor de cadena específico para las pruebas. ¿Podrías decirme en qué parte del código se declara esta constante de texto?", "query": "\"one two\"", "file": "command_test.go", "symbol": "onetwo", "line": 86, "lang": "es", "candidates": [{"text": "File: doc/util.go\nLine 43: s += \"\\n\"", "file": "doc/util.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 161: if len(flag.Deprecated) > 0 || flag.Hidden {", "file": "doc/man_docs.go", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3354: Run: emptyRun,", "file": "completions_test.go", "symbol": "", "line": 3354, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 240: filteringCmd='_files'", "file": "zsh_completions.go", "symbol": "", "line": 240, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 171: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 81: c := &cobra.Command{Use: \"do [OPTIONS] arg1 arg2\"}", "file": "doc/rest_docs_test.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/man_examples_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 255: [[ -z $comp ]] && continue", "file": "bash_completionsV2.go", "symbol": "", "line": 255, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 156: continue", "file": "flag_groups.go", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 179: for _, flagGroup := range tc.subCmdFlagGroupsOneRequired {", "file": "flag_groups_test.go", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 8: //", "file": "active_help.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 300: esac", "file": "bash_completionsV2.go", "symbol": "", "line": 300, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 109: if len(args) != n {", "file": "args.go", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 86: const onetwo = \"one two\"", "file": "command_test.go", "symbol": "onetwo", "line": 86, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups_test.go\nLine 26: Run: func(cmd *Command, args []string) {", "file": "flag_groups_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 15: package cobra", "file": "zsh_completions.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 2: SRC=$(shell find . -name \"*.go\")", "file": "Makefile", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 86: Short: \"Print anything to the screen\",", "file": "doc/cmd_test.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 512: for name, tc := range testCases {", "file": "args_test.go", "symbol": "", "line": 512, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 311: })", "file": "active_help_test.go", "symbol": "", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 720: // Not doing flag completion", "file": "completions.go", "symbol": "", "line": 720, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 96: expectErr: `if any flags in the group [a b] are set they must all be set; missing [b]`,", "file": "flag_groups_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 31: $(info ******************** downloading dependencies ********************)", "file": "Makefile", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 82: // limit completions for the named flag to directory names.", "file": "shell_completions.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Estoy revisando la lógica de los comandos y necesito encontrar dónde se define este valor de cadena específico para las pruebas. ¿Podrías decirme en qué parte del código se declara esta constante de texto?", "query": "\"one two\"", "file": "command_test.go", "symbol": "onetwo", "line": 86, "lang": "es", "candidates": [{"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Estoy revisando la lógica de los comandos y necesito encontrar dónde se define este valor de cadena específico para las pruebas. ¿Podrías decirme en qué parte del código se declara esta constante de texto?", "query": "\"one two\"", "file": "command_test.go", "symbol": "onetwo", "line": 86, "lang": "es", "candidates": [{"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Estoy revisando la lógica de los comandos y necesito encontrar dónde se define este valor de cadena específico para las pruebas. ¿Podrías decirme en qué parte del código se declara esta constante de texto?", "query": "\"one two\"", "file": "command_test.go", "symbol": "onetwo", "line": 86, "lang": "es", "candidates": [{"text": "Next: read command.go lines=422-445\nread getErr for detail", "file": "command.go", "symbol": "getErr", "line": 422, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=86-109\nread onetwo for detail", "file": "command_test.go", "symbol": "onetwo", "line": 86, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=674-697\nread stripFlags for detail", "file": "command.go", "symbol": "stripFlags", "line": 674, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=580-603\nread minNamePadding for detail", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=654-677\nread hasNoOptDefVal for detail", "file": "command.go", "symbol": "hasNoOptDefVal", "line": 654, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=121-144\nread TestStringInSlice for detail", "file": "cobra_test.go", "symbol": "TestStringInSlice", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=84-107\nread printCmd for detail", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=253-276\nread dirname for detail", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=25-48\nread GenZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFile", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=81-104\nread TestGenMdNoTag for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoTag", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=24-47\nread genBashCompletion for detail", "file": "bash_completionsV2.go", "symbol": "genBashCompletion", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=111-134\nread BenchmarkGenMarkdownToFile for detail", "file": "doc/md_docs_test.go", "symbol": "BenchmarkGenMarkdownToFile", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=382-405\nread SetGlobalNormalizationFunc for detail", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1318-1341\nread TestValidArgsFuncSingleCmd for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=38-61\nread AppendActiveHelp for detail", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=195-218\nread TestArbitraryArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Je travaille sur la gestion des options globales de la CLI. Peux-tu me montrer comment on peut restreindre les suggestions de fichiers pour un drapeau persistant en fonction de certaines extensions ?", "query": "persistent flag extensions", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lang": "fr", "candidates": [{"text": "File: active_help.go\nLine 18: \"fmt\"", "file": "active_help.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 65: buf.WriteString(cmd.Short + \"\\n\\n\")", "file": "doc/md_docs.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 97: b.Fatal(err)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 28: output := buf.String()", "file": "powershell_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 170: result = append(result, opt)", "file": "doc/yaml_docs.go", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 123: name string", "file": "cobra_test.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 4099: ValidArgsFunction: func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) {", "file": "completions_test.go", "symbol": "", "line": 4099, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 27: activeHelpGlobalEnvVar = configEnvVarGlobalPrefix + \"_\" + activeHelpEnvVarSuffix", "file": "active_help.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 240: __%[1]s_debug \"Requesting file completion\"", "file": "fish_completions.go", "symbol": "", "line": 240, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 74: checkStringOmits(t, output, \"rootflag\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 234: if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {", "file": "doc/man_docs.go", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "zsh_completions_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 61: func (c *Command) MarkPersistentFlagFilename(name string, extensions ...string) error {", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nLine 100: assertNoErr(t, rootCmd.MarkPersistentFlagFilename(\"persistent-filename\"))", "file": "bash_completions_test.go", "symbol": "", "line": 100, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nLine 20: import (", "file": "command_win.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 162: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 89: Run: emptyRun,", "file": "bash_completions_test.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 5: // You may obtain a copy of the License at", "file": "command_win.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 33: }", "file": "zsh_completions_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 70: // For flags, using Command.MarkFlagFilename() and Command.MarkPersistentFlagFilename()", "file": "completions.go", "symbol": "", "line": 70, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nLine 26: func TestGenRSTDoc(t *testing.T) {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 233: __%[1]s_debug \"Activating keep order.\"", "file": "zsh_completions.go", "symbol": "", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 32: check(t, output, fmt.Sprintf(\"${env:%s}=0\", activeHelpVar))", "file": "powershell_completions_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 51: // subcmds, `sub` and `sub-third`, and `sub` has a subcommand called `third`", "file": "doc/yaml_docs.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Je travaille sur la gestion des options globales de la CLI. Peux-tu me montrer comment on peut restreindre les suggestions de fichiers pour un drapeau persistant en fonction de certaines extensions ?", "query": "persistent flag extensions", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lang": "fr", "candidates": [{"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Je travaille sur la gestion des options globales de la CLI. Peux-tu me montrer comment on peut restreindre les suggestions de fichiers pour un drapeau persistant en fonction de certaines extensions ?", "query": "persistent flag extensions", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lang": "fr", "candidates": [{"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Je travaille sur la gestion des options globales de la CLI. Peux-tu me montrer comment on peut restreindre les suggestions de fichiers pour un drapeau persistant en fonction de certaines extensions ?", "query": "persistent flag extensions", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lang": "fr", "candidates": [{"text": "Next: read command.go lines=338-361\nread SetHelpCommand for detail", "file": "command.go", "symbol": "SetHelpCommand", "line": 338, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=24-47\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=466-489\nread TestChildTakesArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=31-54\nread MarkPersistentFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=376-399\nread SetErrPrefix for detail", "file": "command.go", "symbol": "SetErrPrefix", "line": 376, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=281-304\nread SetArgs for detail", "file": "command.go", "symbol": "SetArgs", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=69-92\nread timesCmd for detail", "file": "doc/cmd_test.go", "symbol": "timesCmd", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=748-771\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 748, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1384-1407\nread TestValidArgsFuncChildCmds for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmds", "line": 1384, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read active_help_test.go lines=122-145\nread comps for detail", "file": "active_help_test.go", "symbol": "comps", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=652-675\nread gen for detail", "file": "bash_completions.go", "symbol": "gen", "line": 652, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=985-1008\nread CompError for detail", "file": "completions.go", "symbol": "CompError", "line": 985, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=253-276\nread dirname for detail", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1006-1029\nread configEnvVar for detail", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=62-85\nread ShellCompDirectiveNoSpace for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoSpace", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=101-124\nread compCmdNoDescFlagName for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagName", "line": 101, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Vérifie que l'erreur contient le message indiquant qu'au moins 2 arguments sont requis.", "query": "minimum args error message", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lang": "fr", "candidates": [{"text": "File: doc/md_docs.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/md_docs.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 69: // should be used as file extension filters.", "file": "completions.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 395: }", "file": "command.go", "symbol": "", "line": 395, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 33: }", "file": "powershell_completions_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 39: subC.Flags().String(\"subonly\", \"\", \"\")", "file": "flag_groups_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 41: // Only errs if the flag isn't found.", "file": "flag_groups.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 221: }", "file": "cobra.go", "symbol": "", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 174: set = append(set, flagname)", "file": "flag_groups.go", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 66: func minimumNArgsWithLessArgs(err error, t *testing.T) {", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_notwin.go\nLine 2: //", "file": "command_notwin.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 56: expected = expected + \"(\" + header.Section + \")\"", "file": "doc/man_docs_test.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 508: finalCmd.NonInheritedFlags().VisitAll(func(flag *pflag.Flag) {", "file": "completions.go", "symbol": "", "line": 508, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 17: import (", "file": "doc/rest_docs_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 96: expectErr: `if any flags in the group [a b] are set they must all be set; missing [b]`,", "file": "flag_groups_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_notwin.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 50: // the `ValidArgs` field of `Command`", "file": "args.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 126: desc: \"Persistent flags utilize required and exclusive groups and can pass\",", "file": "flag_groups_test.go", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 111: func BenchmarkGenMarkdownToFile(b *testing.B) {", "file": "doc/md_docs_test.go", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 281: _filedir \"@(${ext})\"", "file": "bash_completions.go", "symbol": "", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 32: check(t, output, fmt.Sprintf(\"${env:%s}=0\", activeHelpVar))", "file": "powershell_completions_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/md_docs_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 28: var preExecHookFn = preExecHook", "file": "command_win.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 30: // check that active help is not being disabled", "file": "bash_completionsV2_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Vérifie que l'erreur contient le message indiquant qu'au moins 2 arguments sont requis.", "query": "minimum args error message", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lang": "fr", "candidates": [{"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines minimumNArgsWithLessArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Vérifie que l'erreur contient le message indiquant qu'au moins 2 arguments sont requis.", "query": "minimum args error message", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lang": "fr", "candidates": [{"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Vérifie que l'erreur contient le message indiquant qu'au moins 2 arguments sont requis.", "query": "minimum args error message", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lang": "fr", "candidates": [{"text": "Next: read completions.go lines=170-193\nread RegisterFlagCompletionFunc for detail", "file": "completions.go", "symbol": "RegisterFlagCompletionFunc", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=758-781\nread innerfind for detail", "file": "command.go", "symbol": "innerfind", "line": 758, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=662-685\nread shortHasNoOptDefVal for detail", "file": "command.go", "symbol": "shortHasNoOptDefVal", "line": 662, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=174-197\nread res for detail", "file": "doc/rest_docs.go", "symbol": "res", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1821-1844\nread TestFlagCompletionWithNotInterspersedArgs for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWithNotInterspersedArgs", "line": 1821, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=683-706\nread GenBashCompletion for detail", "file": "bash_completions.go", "symbol": "GenBashCompletion", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=192-215\nread ld for detail", "file": "cobra.go", "symbol": "ld", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=84-107\nread TestActiveHelpWithComps for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpWithComps", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=77-100\nread maximumNArgsWithMoreArgs for detail", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=633-656\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=616-639\nread TestFlagBeforeCommand for detail", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=225-248\nread stringInSlice for detail", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "The build process is currently gathering all source files of this specific language found in the directory tree using a shell command, but this approach might be picking up files from unintended subdirectories or vendor folders.", "query": "find go files", "file": "Makefile", "symbol": "SRC", "line": 2, "lang": "en", "candidates": [{"text": "File: zsh_completions_test.go\nLine 15: package cobra", "file": "zsh_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 2: SRC=$(shell find . -name \"*.go\")", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "zsh_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_win.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 94: __%[1]s_debug \"Starting __%[1]s_perform_completion_once\"", "file": "fish_completions.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 336: expectSuccess(output, err, t)", "file": "args_test.go", "symbol": "", "line": 336, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 52: t.Errorf(\"Expecting to match: \\n %q\\nGot:\\n %q\\n\", pattern, found)", "file": "bash_completions_test.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 105: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3363: }", "file": "completions_test.go", "symbol": "", "line": 3363, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/md_docs.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 30: func printOptionsReST(buf *bytes.Buffer, cmd *cobra.Command, name string) error {", "file": "doc/rest_docs.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 231: return false", "file": "cobra.go", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 6: //", "file": "doc/man_examples_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 76: checkStringContains(t, output, echoSubCmd.Short)", "file": "doc/md_docs_test.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 2049: usage := c.Long", "file": "command.go", "symbol": "", "line": 2049, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 109: if len(args) != n {", "file": "args.go", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 68: separator = opts.CommandSeparator", "file": "doc/man_docs.go", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 64: for line in $results[-1..1]", "file": "fish_completions.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 281: Run: emptyRun,", "file": "command_test.go", "symbol": "", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 138: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 243: end", "file": "fish_completions.go", "symbol": "", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 8: //", "file": "active_help.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2259: if output != expected {", "file": "completions_test.go", "symbol": "", "line": 2259, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "The build process is currently gathering all source files of this specific language found in the directory tree using a shell command, but this approach might be picking up files from unintended subdirectories or vendor folders.", "query": "find go files", "file": "Makefile", "symbol": "SRC", "line": 2, "lang": "en", "candidates": [{"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\ndefines SRC", "file": "Makefile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "The build process is currently gathering all source files of this specific language found in the directory tree using a shell command, but this approach might be picking up files from unintended subdirectories or vendor folders.", "query": "find go files", "file": "Makefile", "symbol": "SRC", "line": 2, "lang": "en", "candidates": [{"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=90-113\nread shellCompDirectiveMaxValue for detail", "file": "completions.go", "symbol": "shellCompDirectiveMaxValue", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=412-435\nread getOut for detail", "file": "command.go", "symbol": "getOut", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=604-627\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=65-88\nread MarkFlagsMutuallyExclusive for detail", "file": "flag_groups.go", "symbol": "MarkFlagsMutuallyExclusive", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=740-763\nread TestPersistentFlagsOnSameCommand for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnSameCommand", "line": 740, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=492-515\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=187-210\nread TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=142-165\nread CompletionWithDesc for detail", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=741-764\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 741, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=235-258\nread TestExecute_NoContext for detail", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=484-507\nread HelpFunc for detail", "file": "command.go", "symbol": "HelpFunc", "line": 484, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Comment puis-je tester que Cobra gère correctement le cas où une commande racine et une commande fille au même niveau (petit-enfant) portent le même nom ?", "query": "cobra same name command test", "file": "command_test.go", "symbol": "TestGrandChildSameName", "line": 465, "lang": "fr", "candidates": [{"text": "File: powershell_completions_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "powershell_completions_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 237: fmt.Fprintln(os.Stderr, \"Error:\", msg)", "file": "cobra.go", "symbol": "", "line": 237, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 44: func TestGenMdDocWithNoLongOrSynopsis(t *testing.T) {", "file": "doc/md_docs_test.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "bash_completionsV2_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 827: `, c.Root().Name()),", "file": "completions.go", "symbol": "", "line": 827, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 93: fi", "file": "bash_completionsV2.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 465: func TestGrandChildSameName(t *testing.T) {", "file": "command_test.go", "symbol": "TestGrandChildSameName", "line": 465, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions.go\nLine 207: set -l prefix (commandline -t | string escape --style=regex)", "file": "fish_completions.go", "symbol": "", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 99: checkStringContains(t, output, translate(echoSubCmd.Name()))", "file": "doc/man_docs_test.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 23: \"sort\"", "file": "doc/rest_docs.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 283: assertNoErr(t, c.GenBashCompletion(buf))", "file": "bash_completions_test.go", "symbol": "", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 8: //", "file": "powershell_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/yaml_docs.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 169: }", "file": "powershell_completions.go", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/man_examples_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 192: func ld(s, t string, ignoreCase bool) int {", "file": "cobra.go", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 83: if hasSeeAlso(cmd) {", "file": "doc/md_docs.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 83: t.Fatal(err)", "file": "doc/man_docs_test.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 78: if [[ ${cur} == -*=* ]]; then", "file": "bash_completionsV2.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 85: for comp in $comps", "file": "fish_completions.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 131: # For zsh, when completing a flag with an = (e.g., %[1]s -n=)", "file": "zsh_completions.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 520: func (c *Command) Help() error {", "file": "command.go", "symbol": "", "line": 520, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 67: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 118: }", "file": "fish_completions_test.go", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Comment puis-je tester que Cobra gère correctement le cas où une commande racine et une commande fille au même niveau (petit-enfant) portent le même nom ?", "query": "cobra same name command test", "file": "command_test.go", "symbol": "TestGrandChildSameName", "line": 465, "lang": "fr", "candidates": [{"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Comment puis-je tester que Cobra gère correctement le cas où une commande racine et une commande fille au même niveau (petit-enfant) portent le même nom ?", "query": "cobra same name command test", "file": "command_test.go", "symbol": "TestGrandChildSameName", "line": 465, "lang": "fr", "candidates": [{"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Comment puis-je tester que Cobra gère correctement le cas où une commande racine et une commande fille au même niveau (petit-enfant) portent le même nom ?", "query": "cobra same name command test", "file": "command_test.go", "symbol": "TestGrandChildSameName", "line": 465, "lang": "fr", "candidates": [{"text": "Next: read command.go lines=788-811\nread sb for detail", "file": "command.go", "symbol": "sb", "line": 788, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=217-240\nread BenchmarkGenManToFile for detail", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=398-421\nread OutOrStderr for detail", "file": "command.go", "symbol": "OutOrStderr", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=29-52\nread TestActiveHelpAlone for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=674-697\nread stripFlags for detail", "file": "command.go", "symbol": "stripFlags", "line": 674, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=363-386\nread TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2899-2922\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2899, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=84-107\nread printCmd for detail", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=48-71\nread defaultCaseInsensitive for detail", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=997-1020\nread configEnvVarGlobalPrefix for detail", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=36-59\nread GenZshCompletionFileNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFileNoDesc", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=781-804\nread findSuggestions for detail", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=465-488\nread TestGrandChildSameName for detail", "file": "command_test.go", "symbol": "TestGrandChildSameName", "line": 465, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read fish_completions.go lines=284-307\nread GenFishCompletionFile for detail", "file": "fish_completions.go", "symbol": "GenFishCompletionFile", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=129-152\nread TestNoArgs_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithArgs", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "suche nach der liste für die anweisungen", "query": "directives slice", "file": "completions.go", "symbol": "directives", "line": 201, "lang": "de", "candidates": [{"text": "File: flag_groups.go\nLine 129: if !hasAllFlags(flags, flagnames...) {", "file": "flag_groups.go", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 24: // The below values should not be changed: programs will be using them explicitly", "file": "active_help.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 35: // This function can be called multiple times before and/or after completions are added to", "file": "active_help.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 152: flags.VisitAll(func(flag *pflag.Flag) {", "file": "doc/yaml_docs.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 159: flag.Shorthand,", "file": "doc/yaml_docs.go", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_notwin.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 66: }", "file": "bash_completions_test.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 13: // limitations under the License.", "file": "doc/md_docs_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 66: separator := \"_\"", "file": "doc/man_docs.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 121: __%[1]s_debug \"========= checking if order preservation is required ==========\"", "file": "fish_completions.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "powershell_completions_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 91: return MarkFlagDirname(c.PersistentFlags(), name)", "file": "shell_completions.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 335: // GenPowerShellCompletion generates powershell completion file without descriptions", "file": "powershell_completions.go", "symbol": "", "line": 335, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 17: import (", "file": "powershell_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_notwin.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 110: return err", "file": "doc/man_docs.go", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1127: if cmd != nil {", "file": "command.go", "symbol": "", "line": 1127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 175: __%[1]s_debug \"ShellCompDirectiveNoSpace is called\"", "file": "powershell_completions.go", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1673: return false", "file": "command.go", "symbol": "", "line": 1673, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 201: var directives []string", "file": "completions.go", "symbol": "directives", "line": 201, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nLine 19: \"fmt\"", "file": "doc/md_docs.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 205: for j := 1; j <= len(t); j++ {", "file": "cobra.go", "symbol": "", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 74: // This will only work for bash completion.", "file": "shell_completions.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 246: }", "file": "cobra.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "suche nach der liste für die anweisungen", "query": "directives slice", "file": "completions.go", "symbol": "directives", "line": 201, "lang": "de", "candidates": [{"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "suche nach der liste für die anweisungen", "query": "directives slice", "file": "completions.go", "symbol": "directives", "line": 201, "lang": "de", "candidates": [{"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "suche nach der liste für die anweisungen", "query": "directives slice", "file": "completions.go", "symbol": "directives", "line": 201, "lang": "de", "candidates": [{"text": "Next: read command_test.go lines=748-771\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 748, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=284-307\nread GenFishCompletionFile for detail", "file": "fish_completions.go", "symbol": "GenFishCompletionFile", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=115-138\nread right for detail", "file": "cobra.go", "symbol": "right", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=781-804\nread findSuggestions for detail", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=491-514\nread TestFlagLong for detail", "file": "command_test.go", "symbol": "TestFlagLong", "line": 491, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2280-2303\nread TestValidArgsNotValidArgsFunc for detail", "file": "completions_test.go", "symbol": "TestValidArgsNotValidArgsFunc", "line": 2280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=28-51\nread preExecHookFn for detail", "file": "command_win.go", "symbol": "preExecHookFn", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=331-354\nread GenPowerShellCompletionFile for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFile", "line": 331, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=277-300\nread TestMaximumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=25-48\nread activeHelpMessage for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1160-1183\nread TestFlagDirFilterCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagDirFilterCompletionInGo", "line": 1160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=232-255\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_notwin.go lines=20-43\nread preExecHookFn for detail", "file": "command_notwin.go", "symbol": "preExecHookFn", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=327-350\nread TestExactArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=201-224\nread directives for detail", "file": "completions.go", "symbol": "directives", "line": 201, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "Ich arbeite gerade an der Implementierung der Hilfe-Anzeige für die CLI. Kannst du mir zeigen, wie das System entscheidet, welches Layout für die Befehlsanleitung verwendet wird, wenn kein spezifisches Format definiert ist?", "query": "usage template", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lang": "de", "candidates": [{"text": "File: active_help_test.go\nLine 106: t.Errorf(\"Unexpected error: %v\", err)", "file": "active_help_test.go", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "zsh_completions_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2213: if wantOut := []byte(\"PrintPrint line\\nPrint\"); !bytes.Equal(gotOutBytes, wantOut) {", "file": "command_test.go", "symbol": "", "line": 2213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 74: output := buf.String()", "file": "doc/rest_docs_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 297: fi", "file": "zsh_completions.go", "symbol": "", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 35: rm -rf $(BIN)", "file": "Makefile", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 40: }", "file": "command_win.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 15: package cobra", "file": "bash_completionsV2_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 198: fi", "file": "zsh_completions.go", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 254: progname = \"test_deadcode_elimination\"", "file": "cobra_test.go", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 94: if got != expected {", "file": "args_test.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 216: # Add a delimiter after the activeHelp statements, but only if:", "file": "zsh_completions.go", "symbol": "", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 55: # results and the directive. It fills the 'out' and 'directive' vars.", "file": "bash_completionsV2.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 136: if test $keeporder -ne 0", "file": "fish_completions.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "bash_completions_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 78: return nil", "file": "args.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 32: checkOmit(t, output, fmt.Sprintf(\"%s=0\", activeHelpVar))", "file": "bash_completionsV2_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 165: // appendIfNotPresent will append stringToAppend to the end of s, but only if it's not yet present in s.", "file": "cobra.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 45: }", "file": "doc/cmd_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 271: // check that local nonpersistent flag are not set since we have TraverseChildren set to true", "file": "bash_completions_test.go", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 31: if MousetrapHelpText != \"\" && mousetrap.StartedByExplorer() {", "file": "command_win.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 592: func (c *Command) UsageTemplate() string {", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nLine 139: scanner := bufio.NewScanner(buf)", "file": "doc/man_docs_test.go", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Ich arbeite gerade an der Implementierung der Hilfe-Anzeige für die CLI. Kannst du mir zeigen, wie das System entscheidet, welches Layout für die Befehlsanleitung verwendet wird, wenn kein spezifisches Format definiert ist?", "query": "usage template", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lang": "de", "candidates": [{"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Ich arbeite gerade an der Implementierung der Hilfe-Anzeige für die CLI. Kannst du mir zeigen, wie das System entscheidet, welches Layout für die Befehlsanleitung verwendet wird, wenn kein spezifisches Format definiert ist?", "query": "usage template", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lang": "de", "candidates": [{"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Ich arbeite gerade an der Implementierung der Hilfe-Anzeige für die CLI. Kannst du mir zeigen, wie das System entscheidet, welches Layout für die Befehlsanleitung verwendet wird, wenn kein spezifisches Format definiert ist?", "query": "usage template", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lang": "de", "candidates": [{"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=497-520\nread writeShortFlag for detail", "file": "bash_completions.go", "symbol": "writeShortFlag", "line": 497, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=536-559\nread prepareCustomAnnotationsForFlags for detail", "file": "bash_completions.go", "symbol": "prepareCustomAnnotationsForFlags", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=313-336\nread genPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletion", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=644-667\nread writeArgAliases for detail", "file": "bash_completions.go", "symbol": "writeArgAliases", "line": 644, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=94-117\nread TestGenMdTree for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdTree", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=62-85\nread ShellCompDirectiveNoSpace for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoSpace", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=351-374\nread TestExactArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=616-639\nread TestFlagBeforeCommand for detail", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=592-615\nread UsageTemplate for detail", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args.go lines=117-140\nread RangeArgs for detail", "file": "args.go", "symbol": "RangeArgs", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=69-92\nread timesCmd for detail", "file": "doc/cmd_test.go", "symbol": "timesCmd", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=58-81\nread TestGenMdNoHiddenParents for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_win.go lines=28-51\nread preExecHookFn for detail", "file": "command_win.go", "symbol": "preExecHookFn", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=466-489\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=562-585\nread TestChildFlag for detail", "file": "command_test.go", "symbol": "TestChildFlag", "line": 562, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=308-331\nread aCmdArgs for detail", "file": "command_test.go", "symbol": "aCmdArgs", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=985-1008\nread CompError for detail", "file": "completions.go", "symbol": "CompError", "line": 985, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=536-559\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 536, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "O teste que verifica o comportamento de quando passamos argumentos inválidos para o comando de intervalo está falhando ou não está cobrindo o cenário de erro esperado ao receber strings em vez de números.", "query": "range args test", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lang": "pt", "candidates": [{"text": "File: command_test.go\nLine 1922: rootCmd.AddCommand(&Command{Use: name})", "file": "command_test.go", "symbol": "", "line": 1922, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 67: }", "file": "doc/cmd_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1995: for _, subcmd := range cmds {", "file": "command.go", "symbol": "", "line": 1995, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 234: // CheckErr prints the msg with the prefix 'Error:' and exits with error code 1. If the msg is nil, it does nothing.", "file": "cobra.go", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 329: }", "file": "active_help_test.go", "symbol": "", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 15: package cobra", "file": "shell_completions.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 70: args: []string{\"--c=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 15: //go:build windows", "file": "command_win.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 581: }", "file": "completions_test.go", "symbol": "", "line": 581, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "doc/md_docs.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 490: WriteStringAndCheck(buf, fmt.Sprintf(\" flags_completion+=(%q)\\n\", ext))", "file": "bash_completions.go", "symbol": "", "line": 490, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 66: buf := new(bytes.Buffer)", "file": "doc/rest_docs.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 33: c.PersistentFlags().String(v, \"\", \"\")", "file": "flag_groups_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 383: func TestRangeArgs_WithValid_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "bash_completionsV2_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 52: func defaultLinkHandler(name, ref string) string {", "file": "doc/rest_docs.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 31: if MousetrapHelpText != \"\" && mousetrap.StartedByExplorer() {", "file": "command_win.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 73: desc: \"Exclusive flag group not satisfied\",", "file": "flag_groups_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 5: // You may obtain a copy of the License at", "file": "zsh_completions_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 130: continue", "file": "doc/yaml_docs.go", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 64: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 165: opt := cmdOption{", "file": "doc/yaml_docs.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 96: checkStringContains(t, output, \"boolone\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 225: fi", "file": "zsh_completions.go", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "O teste que verifica o comportamento de quando passamos argumentos inválidos para o comando de intervalo está falhando ou não está cobrindo o cenário de erro esperado ao receber strings em vez de números.", "query": "range args test", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lang": "pt", "candidates": [{"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestRangeArgs_WithValid_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "O teste que verifica o comportamento de quando passamos argumentos inválidos para o comando de intervalo está falhando ou não está cobrindo o cenário de erro esperado ao receber strings em vez de números.", "query": "range args test", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lang": "pt", "candidates": [{"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "O teste que verifica o comportamento de quando passamos argumentos inválidos para o comando de intervalo está falhando ou não está cobrindo o cenário de erro esperado ao receber strings em vez de números.", "query": "range args test", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lang": "pt", "candidates": [{"text": "Next: read completions.go lines=748-771\nread InitDefaultCompletionCmd for detail", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=629-652\nread writeCmdAliases for detail", "file": "bash_completions.go", "symbol": "writeCmdAliases", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=192-215\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=383-406\nread TestRangeArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=37-60\nread cmdDoc for detail", "file": "doc/yaml_docs.go", "symbol": "cmdDoc", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=342-365\nread GenPowerShellCompletionFileWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFileWithDesc", "line": 342, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=225-248\nread stringInSlice for detail", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=674-697\nread stripFlags for detail", "file": "command.go", "symbol": "stripFlags", "line": 674, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=693-716\nread GetSlice for detail", "file": "completions_test.go", "symbol": "GetSlice", "line": 693, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=115-138\nread right for detail", "file": "cobra.go", "symbol": "right", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=89-112\nread TestFishCompletionNoActiveHelp for detail", "file": "fish_completions_test.go", "symbol": "TestFishCompletionNoActiveHelp", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=678-701\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=500-523\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 500, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=680-703\nread String for detail", "file": "completions_test.go", "symbol": "String", "line": 680, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "帮我找一下处理命令行参数中横杠选项并将其过滤掉的测试用例在哪里?", "query": "strip flags test", "file": "command_test.go", "symbol": "TestStripFlags", "line": 643, "lang": "zh", "candidates": [{"text": "File: command_notwin.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_notwin.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 142: args: []string{\"subcmd\", \"--e=foo\", \"--subonly=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 155: }", "file": "active_help_test.go", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 23: )", "file": "doc/man_examples_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 121: result := []string{}", "file": "doc/yaml_docs.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 65: buf.WriteString(cmd.Short + \"\\n\\n\")", "file": "doc/md_docs.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 19: \"bytes\"", "file": "doc/man_docs_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 251: _arguments '*:filename:'\"$filteringCmd\"", "file": "zsh_completions.go", "symbol": "", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 33: // to the user.", "file": "active_help.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 55: // activeHelpEnvVar returns the name of the program-specific ActiveHelp environment", "file": "active_help.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 34: // The array parameter should be the array that will contain the completions.", "file": "active_help.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 37: checkStringContains(t, output, \"rootflag\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 42: Section: \"2\",", "file": "doc/man_docs_test.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 47: f.Hidden = true", "file": "doc/rest_docs_test.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 6: //", "file": "command_win.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 64: cmd.InitDefaultHelpFlag()", "file": "doc/rest_docs.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/util.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 61: func (c *Command) MarkPersistentFlagFilename(name string, extensions ...string) error {", "file": "shell_completions.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 643: func TestStripFlags(t *testing.T) {", "file": "command_test.go", "symbol": "TestStripFlags", "line": 643, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nLine 132: [int]$Directive = $Out[-1].TrimStart(':')", "file": "powershell_completions.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 155: SuggestFor: []string{\"counts\"},", "file": "bash_completions_test.go", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 2: //", "file": "zsh_completions_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 87: // Make sure parent has - in CommandPath() in SEE ALSO:", "file": "doc/man_docs_test.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 27: rootCmd := &Command{Use: \"root\", Args: NoArgs, Run: emptyRun}", "file": "fish_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "帮我找一下处理命令行参数中横杠选项并将其过滤掉的测试用例在哪里?", "query": "strip flags test", "file": "command_test.go", "symbol": "TestStripFlags", "line": 643, "lang": "zh", "candidates": [{"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "帮我找一下处理命令行参数中横杠选项并将其过滤掉的测试用例在哪里?", "query": "strip flags test", "file": "command_test.go", "symbol": "TestStripFlags", "line": 643, "lang": "zh", "candidates": [{"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "帮我找一下处理命令行参数中横杠选项并将其过滤掉的测试用例在哪里?", "query": "strip flags test", "file": "command_test.go", "symbol": "TestStripFlags", "line": 643, "lang": "zh", "candidates": [{"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2121-2144\nread TestFlagCompletionConcurrentRegistration for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionConcurrentRegistration", "line": 2121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=26-49\nread TestGenRSTDoc for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=676-699\nread customMultiString for detail", "file": "completions_test.go", "symbol": "customMultiString", "line": 676, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2079-2102\nread TestFlagCompletionForPersistentFlagsCalledFromSubCmd for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionForPersistentFlagsCalledFromSubCmd", "line": 2079, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=276-299\nread GenFishCompletion for detail", "file": "fish_completions.go", "symbol": "GenFishCompletion", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=44-67\nread TestGenYamlNoTag for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlNoTag", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=186-209\nread assertLineFound for detail", "file": "doc/man_docs_test.go", "symbol": "assertLineFound", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=232-255\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=187-210\nread TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=333-356\nread TestExactArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=643-666\nread TestStripFlags for detail", "file": "command_test.go", "symbol": "TestStripFlags", "line": 643, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=24-47\nread genBashCompletion for detail", "file": "bash_completionsV2.go", "symbol": "genBashCompletion", "line": 24, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "I'm trying to clean up the command tree before running some automated tests. Where is the logic that strips out the autocomplete subcommands from the main command structure?", "query": "remove command test", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lang": "en", "candidates": [{"text": "File: completions_test.go\nLine 2451: func removeCompCmd(rootCmd *Command) {", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args_test.go\nLine 334: c := getCommand(ExactArgs(3), true)", "file": "args_test.go", "symbol": "", "line": 334, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "powershell_completions_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 246: $CompletionText = $($comp.Name | __%[1]s_escapeStringWithSpecialChars) + $Space", "file": "powershell_completions.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 143: }", "file": "fish_completions_test.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 66: // limit completions for the named flag to the specified file extensions.", "file": "shell_completions.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 107: local shellCompDirectiveError=%[3]d", "file": "zsh_completions.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 182: // check for custom completion function body", "file": "bash_completions_test.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 84: // The command name should not have replaced the ':'", "file": "fish_completions_test.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 190: // check for filename extension flags", "file": "bash_completions_test.go", "symbol": "", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 18: \"bytes\"", "file": "doc/rest_docs.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 136: }", "file": "cobra.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 53: // to automatically enable in CLI tools.", "file": "cobra.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 18: package cobra", "file": "command_notwin.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1386: func (c *Command) ContainsGroup(groupID string) bool {", "file": "command.go", "symbol": "", "line": 1386, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 281: }", "file": "fish_completions.go", "symbol": "", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 82: func ArbitraryArgs(cmd *Command, args []string) error {", "file": "args.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 84: var printCmd = &cobra.Command{", "file": "doc/cmd_test.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 142: }", "file": "fish_completions_test.go", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_notwin.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 124: }", "file": "doc/man_docs.go", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 103: return err", "file": "flag_groups.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 50: output := buf.String()", "file": "doc/md_docs_test.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "I'm trying to clean up the command tree before running some automated tests. Where is the logic that strips out the autocomplete subcommands from the main command structure?", "query": "remove command test", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lang": "en", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "I'm trying to clean up the command tree before running some automated tests. Where is the logic that strips out the autocomplete subcommands from the main command structure?", "query": "remove command test", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lang": "en", "candidates": [{"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "I'm trying to clean up the command tree before running some automated tests. Where is the logic that strips out the autocomplete subcommands from the main command structure?", "query": "remove command test", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lang": "en", "candidates": [{"text": "Next: read shell_completions.go lines=67-90\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=192-215\nread ld for detail", "file": "cobra.go", "symbol": "ld", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=52-75\nread GenMarkdown for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdown", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=604-627\nread TestFlagInvalidInput for detail", "file": "command_test.go", "symbol": "TestFlagInvalidInput", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=394-417\nread TestPluginWithSubCommands for detail", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=311-334\nread SliceValue for detail", "file": "completions.go", "symbol": "SliceValue", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=142-165\nread ExactValidArgs for detail", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2451-2474\nread removeCompCmd for detail", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=60-83\nread GenYamlTreeCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTreeCustom", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=88-111\nread TestSingleCommand for detail", "file": "command_test.go", "symbol": "TestSingleCommand", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=53-76\nread GenYamlTree for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTree", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=325-348\nread finalCmd for detail", "file": "completions.go", "symbol": "finalCmd", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=465-488\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=321-344\nread TestExactArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=84-107\nread TestActiveHelpWithComps for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpWithComps", "line": 84, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "コマンドラインの補完機能を自動的に追加する際、すでに同名のコマンドが存在する場合や、機能が無効化されている場合には、重複して登録されないように制御する必要があります。この初期化ロジックの挙動を確認してください。", "query": "autocompletion command init", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lang": "ja", "candidates": [{"text": "File: flag_groups.go\nLine 43: }", "file": "flag_groups.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 89: if err := GenReSTTree(c, tmpdir); err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 4043: {", "file": "completions_test.go", "symbol": "", "line": 4043, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 31: return nil", "file": "args.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 84: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 8: //", "file": "powershell_completions.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "bash_completionsV2_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 204: // Test that multiple activeHelp messages can be used along with completions", "file": "active_help_test.go", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3928: // A test to make sure the InitDefaultCompletionCmd function works as expected", "file": "completions_test.go", "symbol": "", "line": 3928, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nLine 87: }", "file": "cobra.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 38: WriteStringAndCheck(buf, fmt.Sprintf(`", "file": "bash_completions.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "active_help_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 66: # We need to trigger completion from the $CursorPosition location, so we need", "file": "powershell_completions.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 475: }", "file": "args_test.go", "symbol": "", "line": 475, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 45: Use: \"child\",", "file": "fish_completions_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1950: }", "file": "command_test.go", "symbol": "", "line": 1950, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 30: // check that active help is not being disabled", "file": "zsh_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 748: func (c *Command) InitDefaultCompletionCmd(args ...string) {", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\nLine 129: return err", "file": "doc/rest_docs.go", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 120: header.Title = strings.ToUpper(strings.ReplaceAll(name, \" \", \"\\\\-\"))", "file": "doc/man_docs.go", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 222: local index", "file": "bash_completions.go", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1113: c.InitDefaultCompletionCmd(args...)", "file": "command.go", "symbol": "", "line": 1113, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_win.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 160: args: []string{\"--e=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "コマンドラインの補完機能を自動的に追加する際、すでに同名のコマンドが存在する場合や、機能が無効化されている場合には、重複して登録されないように制御する必要があります。この初期化ロジックの挙動を確認してください。", "query": "autocompletion command init", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lang": "ja", "candidates": [{"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "cobra", "task": "コマンドラインの補完機能を自動的に追加する際、すでに同名のコマンドが存在する場合や、機能が無効化されている場合には、重複して登録されないように制御する必要があります。この初期化ロジックの挙動を確認してください。", "query": "autocompletion command init", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lang": "ja", "candidates": [{"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "コマンドラインの補完機能を自動的に追加する際、すでに同名のコマンドが存在する場合や、機能が無効化されている場合には、重複して登録されないように制御する必要があります。この初期化ロジックの挙動を確認してください。", "query": "autocompletion command init", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lang": "ja", "candidates": [{"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=339-362\nread TestExactArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=127-150\nread MatchAll for detail", "file": "args.go", "symbol": "MatchAll", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=164-187\nread TestGenManTree for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManTree", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=26-49\nread activeHelpMessage2 for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=748-771\nread InitDefaultCompletionCmd for detail", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=30-53\nread BashCompFilenameExt for detail", "file": "bash_completions.go", "symbol": "BashCompFilenameExt", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=25-48\nread GenZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFile", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=58-81\nread activeHelpEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2899-2922\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2899, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=138-161\nread GenReSTTree for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTree", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=36-59\nread GenZshCompletionFileNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFileNoDesc", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=229-252\nread TestBashCompletionHiddenFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionHiddenFlag", "line": 229, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "CLI 명령어에 대한 맞춤 reStructuredText 형식의 문서를 생성하는 함수를 찾아주세요. 이 함수는 코브라 명령어 객체를 받아서 설명, 개요, 사용법, 예제 등을 포함한_RST_ 형식의 텍스트를 작성해야 합니다.", "query": "reStructuredText custom generator", "file": "doc/rest_docs.go", "symbol": "GenReSTCustom", "line": 62, "lang": "ko", "candidates": [{"text": "File: powershell_completions_test.go\nLine 13: // limitations under the License.", "file": "powershell_completions_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 38: set -l file \"$BASH_COMP_DEBUG_FILE\"", "file": "fish_completions.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 119: }", "file": "cobra_test.go", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 270: Use: \"example_program\",", "file": "cobra_test.go", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 3: go 1.15", "file": "go.mod", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 53: args []string", "file": "flag_groups_test.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 71: SuggestFor: []string{\"counts\"},", "file": "doc/cmd_test.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 62: func GenReSTCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string, string) string) error {", "file": "doc/rest_docs.go", "symbol": "GenReSTCustom", "line": 62, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nLine 156: Args: OnlyValidArgs,", "file": "bash_completions_test.go", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 255: )", "file": "cobra_test.go", "symbol": "", "line": 255, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 101: func TestGenFishCompletionFile(t *testing.T) {", "file": "fish_completions_test.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 254: # Add the proper number of spaces to align the descriptions", "file": "powershell_completions.go", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 40: // that do not contain \\n.", "file": "doc/util.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 133: flagGroupsExclusive: []string{\"f g\"},", "file": "flag_groups_test.go", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2126: rootCmd.Flags().String(flagName, \"\", fmt.Sprintf(\"test %s flag on root\", flagName))", "file": "completions_test.go", "symbol": "", "line": 2126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 37: func ExampleGenMan() {", "file": "doc/man_examples_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 149: unset := []string{}", "file": "flag_groups.go", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 94: output := buf.String()", "file": "fish_completions_test.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 911: }", "file": "completions_test.go", "symbol": "", "line": 911, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 8: .PHONY: fmt lint test install_deps clean", "file": "Makefile", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 18: lint:", "file": "Makefile", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 65: // file completion even when no completion is provided.", "file": "completions.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 2: //", "file": "doc/util.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "CLI 명령어에 대한 맞춤 reStructuredText 형식의 문서를 생성하는 함수를 찾아주세요. 이 함수는 코브라 명령어 객체를 받아서 설명, 개요, 사용법, 예제 등을 포함한_RST_ 형식의 텍스트를 작성해야 합니다.", "query": "reStructuredText custom generator", "file": "doc/rest_docs.go", "symbol": "GenReSTCustom", "line": 62, "lang": "ko", "candidates": [{"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nsibling in doc", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "CLI 명령어에 대한 맞춤 reStructuredText 형식의 문서를 생성하는 함수를 찾아주세요. 이 함수는 코브라 명령어 객체를 받아서 설명, 개요, 사용법, 예제 등을 포함한_RST_ 형식의 텍스트를 작성해야 합니다.", "query": "reStructuredText custom generator", "file": "doc/rest_docs.go", "symbol": "GenReSTCustom", "line": 62, "lang": "ko", "candidates": [{"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> io", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> strings", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> path/filepath", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> time", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> os", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> sort", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "CLI 명령어에 대한 맞춤 reStructuredText 형식의 문서를 생성하는 함수를 찾아주세요. 이 함수는 코브라 명령어 객체를 받아서 설명, 개요, 사용법, 예제 등을 포함한_RST_ 형식의 텍스트를 작성해야 합니다.", "query": "reStructuredText custom generator", "file": "doc/rest_docs.go", "symbol": "GenReSTCustom", "line": 62, "lang": "ko", "candidates": [{"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=62-85\nread GenReSTCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTCustom", "line": 62, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completionsV2.go lines=482-505\nread GenBashCompletionV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionV2", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=447-470\nread writeCommands for detail", "file": "bash_completions.go", "symbol": "writeCommands", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=523-546\nread writeLocalNonPersistentFlag for detail", "file": "bash_completions.go", "symbol": "writeLocalNonPersistentFlag", "line": 523, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=27-50\nread TestGenYamlDoc for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDoc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=44-67\nread TestGenYamlNoTag for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlNoTag", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=345-368\nread TestExactArgs_WithInvalidCount for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=81-104\nread ValidateFlagGroups for detail", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=568-591\nread completionFn for detail", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=279-302\nread TestBashCompletionNoActiveHelp for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionNoActiveHelp", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2850-2873\nread TestCompleteWithRootAndLegacyArgs for detail", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=470-493\nread GenBashCompletionFileV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionFileV2", "line": 470, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=110-133\nread noDuplicateArgsWithDuplicate for detail", "file": "args_test.go", "symbol": "noDuplicateArgsWithDuplicate", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=30-53\nread printOptionsReST for detail", "file": "doc/rest_docs.go", "symbol": "printOptionsReST", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=138-161\nread GenReSTTree for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTree", "line": 138, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=114-137\nread Gt for detail", "file": "cobra.go", "symbol": "Gt", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=407-430\nread TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 407, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=57-80\nread GenReST for detail", "file": "doc/rest_docs.go", "symbol": "GenReST", "line": 57, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Estou tentando entender como o sistema identifica se o usuário está digitando o nome de uma opção ou o valor dela durante o autocompletar. Pode me mostrar a lógica que separa flags curtas de longas quando há um sinal de igual?", "query": "flag completion parsing", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lang": "pt", "candidates": [{"text": "File: command_notwin.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "command_notwin.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 107: defer os.Remove(tmpFile.Name())", "file": "fish_completions_test.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 46: buf.WriteString(\"```\\n\\n\")", "file": "doc/md_docs.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 46: buf.WriteString(\"\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/cmd_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 16: // +build windows", "file": "command_win.go", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 246: }", "file": "doc/man_docs.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 33: }", "file": "powershell_completions_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 36: flags.PrintDefaults()", "file": "doc/rest_docs.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2935: if err != nil {", "file": "command_test.go", "symbol": "", "line": 2935, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 96: checkStringContains(t, output, \"boolone\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 47: if err := GenMarkdown(dummyCmd, buf); err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 67: rootCmd.DisableAutoGenTag = true", "file": "doc/rest_docs_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 211: // check local nonpersistent flag", "file": "bash_completions_test.go", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 4: ifeq (, $(shell which golangci-lint))", "file": "Makefile", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 119: if header.Title == \"\" {", "file": "doc/man_docs.go", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 44: Section: \"3\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 253: // If none of the flags of a one-required group are present, we make all the flags", "file": "flag_groups.go", "symbol": "", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 657: func checkIfFlagCompletion(finalCmd *Command, args []string, lastArg string) (*pflag.Flag, []string, string, error) {", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_examples_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/man_examples_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 33: }", "file": "doc/util.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 21: )", "file": "bash_completionsV2_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 122: left = av.Int()", "file": "cobra.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 113: yamlDoc.Options = genFlagResult(flags)", "file": "doc/yaml_docs.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Estou tentando entender como o sistema identifica se o usuário está digitando o nome de uma opção ou o valor dela durante o autocompletar. Pode me mostrar a lógica que separa flags curtas de longas quando há um sinal de igual?", "query": "flag completion parsing", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lang": "pt", "candidates": [{"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Estou tentando entender como o sistema identifica se o usuário está digitando o nome de uma opção ou o valor dela durante o autocompletar. Pode me mostrar a lógica que separa flags curtas de longas quando há um sinal de igual?", "query": "flag completion parsing", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lang": "pt", "candidates": [{"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Estou tentando entender como o sistema identifica se o usuário está digitando o nome de uma opção ou o valor dela durante o autocompletar. Pode me mostrar a lógica que separa flags curtas de longas quando há um sinal de igual?", "query": "flag completion parsing", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lang": "pt", "candidates": [{"text": "Next: read command_test.go lines=88-111\nread TestSingleCommand for detail", "file": "command_test.go", "symbol": "TestSingleCommand", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=88-111\nread exactArgsWithInvalidCount for detail", "file": "args_test.go", "symbol": "exactArgsWithInvalidCount", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=229-252\nread TestBashCompletionHiddenFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionHiddenFlag", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2929-2952\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2929, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2162-2185\nread output for detail", "file": "completions_test.go", "symbol": "output", "line": 2162, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=398-421\nread OutOrStderr for detail", "file": "command.go", "symbol": "OutOrStderr", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=52-75\nread GenMarkdown for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdown", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=31-54\nread MarkPersistentFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=217-240\nread BenchmarkGenManToFile for detail", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=95-118\nread checkStringContains for detail", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=91-114\nread AddTemplateFuncs for detail", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=225-248\nread enforceFlagGroupsForCompletion for detail", "file": "flag_groups.go", "symbol": "enforceFlagGroupsForCompletion", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=657-680\nread checkIfFlagCompletion for detail", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "コマンドの使い方の表示において、親コマンドの最大長に基づいてパディングの値を返している箇所がありますが、親が存在しない場合や親の長さが最小値を下回る場合の条件分岐に誤りがないか確認してください。", "query": "usage padding", "file": "command.go", "symbol": "UsagePadding", "line": 563, "lang": "ja", "candidates": [{"text": "File: completions.go\nLine 474: })", "file": "completions.go", "symbol": "", "line": 474, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 202: # The description is preceded by a TAB character.", "file": "zsh_completions.go", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 102: fi", "file": "bash_completions.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 37: // ActiveHelp line will be shown below the previous ones when completion is triggered.", "file": "active_help.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 2: //", "file": "zsh_completions_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 459: got := err.Error()", "file": "args_test.go", "symbol": "", "line": 459, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 91: expected = expected + \"(\" + header.Section + \")\"", "file": "doc/man_docs_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 431: local noun_aliases=()", "file": "bash_completions.go", "symbol": "", "line": 431, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 283: [System.Management.Automation.CompletionResult]::new($CompletionText, \"$($comp.Name)\", 'ParameterValue', \"$($comp.Description)\")", "file": "powershell_completions.go", "symbol": "", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 8: //", "file": "doc/rest_docs_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 2: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "active_help.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 66: check(t, output, \"__root_dash_perform_completion\")", "file": "fish_completions_test.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 734: // Reset everything to do noun completion.", "file": "completions.go", "symbol": "", "line": 734, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 104: }", "file": "doc/cmd_test.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 39: checkStringContains(t, output, rootCmd.Short)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 52: if len(cmd.ValidArgs) > 0 {", "file": "args.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 122: b.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 48: type byName []*cobra.Command", "file": "doc/util.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 6: //", "file": "command_notwin.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "doc/man_examples_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 8: //", "file": "doc/util.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 563: func (c *Command) UsagePadding() int {", "file": "command.go", "symbol": "UsagePadding", "line": 563, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "コマンドの使い方の表示において、親コマンドの最大長に基づいてパディングの値を返している箇所がありますが、親が存在しない場合や親の長さが最小値を下回る場合の条件分岐に誤りがないか確認してください。", "query": "usage padding", "file": "command.go", "symbol": "UsagePadding", "line": 563, "lang": "ja", "candidates": [{"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "コマンドの使い方の表示において、親コマンドの最大長に基づいてパディングの値を返している箇所がありますが、親が存在しない場合や親の長さが最小値を下回る場合の条件分岐に誤りがないか確認してください。", "query": "usage padding", "file": "command.go", "symbol": "UsagePadding", "line": 563, "lang": "ja", "candidates": [{"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "コマンドの使い方の表示において、親コマンドの最大長に基づいてパディングの値を返している箇所がありますが、親が存在しない場合や親の長さが最小値を下回る場合の条件分岐に誤りがないか確認してください。", "query": "usage padding", "file": "command.go", "symbol": "UsagePadding", "line": 563, "lang": "ja", "candidates": [{"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=173-196\nread indentString for detail", "file": "doc/rest_docs.go", "symbol": "indentString", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=225-248\nread stringInSlice for detail", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=482-505\nread GenBashCompletionV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionV2", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs_test.go lines=26-49\nread TestGenRSTDoc for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=991-1014\nread CompErrorln for detail", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=508-531\nread writeFlag for detail", "file": "bash_completions.go", "symbol": "writeFlag", "line": 508, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=563-586\nread UsagePadding for detail", "file": "command.go", "symbol": "UsagePadding", "line": 563, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=500-523\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 500, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2545-2568\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2545, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=147-170\nread TestNoArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValidOnly_WithInvalidArgs", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=401-424\nread TestRangeArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=217-240\nread BenchmarkGenManToFile for detail", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=266-289\nread TestConfigActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestConfigActiveHelp", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=121-144\nread processFlagForGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=75-98\nread TestGenYamlDocRunnable for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDocRunnable", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=32-55\nread printOptions for detail", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "이름을 기준으로 정렬하는 비교 함수가 어떻게 구현되어 있나요?", "query": "name sort less", "file": "doc/util.go", "symbol": "Less", "line": 52, "lang": "ko", "candidates": [{"text": "File: Makefile\nLine 12: all: fmt test", "file": "Makefile", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 30: if err := GenYaml(echoCmd, buf); err != nil {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 92: if c.DisableAutoGenTag {", "file": "doc/md_docs.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 580: cmd.InheritedFlags().VisitAll(func(flag *pflag.Flag) {", "file": "bash_completions.go", "symbol": "", "line": 580, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 78: $ShellCompDirectiveFilterFileExt=%[7]d", "file": "powershell_completions.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 17: import (", "file": "fish_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 407: WriteStringAndCheck(buf, fmt.Sprintf(`{", "file": "bash_completions.go", "symbol": "", "line": 407, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1329: func (c commandSorterByName) Less(i, j int) bool { return c[i].Name() < c[j].Name() }", "file": "command.go", "symbol": "", "line": 1329, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nLine 44: func TestGenMdDocWithNoLongOrSynopsis(t *testing.T) {", "file": "doc/md_docs_test.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 100: return fmt.Errorf(\"accepts at most %d arg(s), received %d\", n, len(args))", "file": "args.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 825: }", "file": "command_test.go", "symbol": "", "line": 825, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 85: t.Fatalf(\"Failed to create tmpdir: %s\", err.Error())", "file": "doc/rest_docs_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 84: var printCmd = &cobra.Command{", "file": "doc/cmd_test.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 42: header := &doc.GenManHeader{", "file": "doc/man_examples_test.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 116: }", "file": "doc/man_docs.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 17: import (", "file": "bash_completionsV2_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3697: exists: true,", "file": "completions_test.go", "symbol": "", "line": 3697, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 223: }", "file": "bash_completions_test.go", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 56: }", "file": "shell_completions.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 143: return MatchAll(ExactArgs(n), OnlyValidArgs)", "file": "args.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 267: if ($ExecutionContext.SessionState.LanguageMode -eq \"FullLanguage\"){", "file": "powershell_completions.go", "symbol": "", "line": 267, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 64: // if the command is invoked with more than one flag from the given set of flags.", "file": "flag_groups.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 52: func (s byName) Less(i, j int) bool { return s[i].Name() < s[j].Name() }", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra.go\nLine 85: func AddTemplateFunc(name string, tmplFunc interface{}) {", "file": "cobra.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "이름을 기준으로 정렬하는 비교 함수가 어떻게 구현되어 있나요?", "query": "name sort less", "file": "doc/util.go", "symbol": "Less", "line": 52, "lang": "ko", "candidates": [{"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nelsewhere in the tree", "file": "Makefile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nelsewhere in the tree", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "이름을 기준으로 정렬하는 비교 함수가 어떻게 구현되어 있나요?", "query": "name sort less", "file": "doc/util.go", "symbol": "Less", "line": 52, "lang": "ko", "candidates": [{"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "이름을 기준으로 정렬하는 비교 함수가 어떻게 구현되어 있나요?", "query": "name sort less", "file": "doc/util.go", "symbol": "Less", "line": 52, "lang": "ko", "candidates": [{"text": "Next: read doc/util.go lines=48-71\nread byName for detail", "file": "doc/util.go", "symbol": "byName", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=42-65\nread GenZshCompletionNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionNoDesc", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=283-306\nread TestMaximumNArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=26-49\nread activeHelpMessage2 for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=740-763\nread TestPersistentFlagsOnSameCommand for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnSameCommand", "line": 740, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=59-82\nread TestProgWithDash for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithDash", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=66-89\nread TestGenRSTNoTag for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoTag", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=229-252\nread TestBashCompletionHiddenFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionHiddenFlag", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=100-123\nread compCmdName for detail", "file": "completions.go", "symbol": "compCmdName", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=164-187\nread TestGenManTree for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManTree", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=781-804\nread findSuggestions for detail", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=277-300\nread TestMaximumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=319-342\nread TestDisableActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestDisableActiveHelp", "line": 319, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/util.go lines=50-73\nread Len for detail", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=684-707\nread Set for detail", "file": "completions_test.go", "symbol": "Set", "line": 684, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=245-268\nread TestBashCompletionDeprecatedFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionDeprecatedFlag", "line": 245, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "ハイフンを含む文字列を処理した際、ハイフンがエスケープされていないバグが見つかりました。現在、入力されたハイフン(-)がそのまま出力されていますが、正しくはバックスラッシュでエスケープされた形式(\\-)に変換されるべきです。", "query": "hyphen escape", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lang": "ja", "candidates": [{"text": "File: doc/rest_docs.go\nLine 186: }", "file": "doc/rest_docs.go", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 31: Title: \"MINE\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 64: defer os.RemoveAll(tmpdir)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/rest_docs_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "cobra.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 21: // MarkFlagRequired instructs the various shell completion implementations to", "file": "shell_completions.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 13: // limitations under the License.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/rest_docs.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 125: func GenMarkdownTree(cmd *cobra.Command, dir string) error {", "file": "doc/md_docs.go", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 160: _filedir -d", "file": "bash_completions.go", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 35: func translate(in string) string {", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nLine 46: // is set to \"0\".", "file": "active_help.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 75: rootCmd := &Command{Use: \"root:colon\", Args: NoArgs, Run: emptyRun}", "file": "fish_completions_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 110: local shellCompDirectiveFilterFileExt=%[6]d", "file": "zsh_completions.go", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 216: __%[1]s_debug \"numComps: $numComps\"", "file": "fish_completions.go", "symbol": "", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 245: fi", "file": "zsh_completions.go", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 386: os.Setenv(activeHelpEnvVar(rootCmd.Name()), activeHelpCfg)", "file": "active_help_test.go", "symbol": "", "line": 386, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 196: if [ $COMP_TYPE -eq 63 ]; then", "file": "bash_completionsV2.go", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "powershell_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2487: \"traverse/full-alias\": {[]string{\"that\"}, \"child2\", \"that\", false},", "file": "command_test.go", "symbol": "", "line": 2487, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 172: for flagname, isSet := range flagnameAndStatus {", "file": "flag_groups.go", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 19: \"fmt\"", "file": "powershell_completions_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 78: if err := GenYaml(rootCmd, buf); err != nil {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 18: \"bytes\"", "file": "zsh_completions.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "ハイフンを含む文字列を処理した際、ハイフンがエスケープされていないバグが見つかりました。現在、入力されたハイフン(-)がそのまま出力されていますが、正しくはバックスラッシュでエスケープされた形式(\\-)に変換されるべきです。", "query": "hyphen escape", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lang": "ja", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\ndefines translate", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nelsewhere in the tree", "file": "Makefile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "ハイフンを含む文字列を処理した際、ハイフンがエスケープされていないバグが見つかりました。現在、入力されたハイフン(-)がそのまま出力されていますが、正しくはバックスラッシュでエスケープされた形式(\\-)に変換されるべきです。", "query": "hyphen escape", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lang": "ja", "candidates": [{"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> os", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> strings", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> github.com/spf13/cobra", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> testing", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> path/filepath", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> fmt", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "ハイフンを含む文字列を処理した際、ハイフンがエスケープされていないバグが見つかりました。現在、入力されたハイフン(-)がそのまま出力されていますが、正しくはバックスラッシュでエスケープされた形式(\\-)に変換されるべきです。", "query": "hyphen escape", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lang": "ja", "candidates": [{"text": "Next: read completions_test.go lines=2916-2939\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2916, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=127-150\nread TestGenManSeeAlso for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=383-406\nread TestRangeArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=52-75\nread Error for detail", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=991-1014\nread CompErrorln for detail", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=142-165\nread CompletionWithDesc for detail", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=633-656\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=192-215\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=181-204\nread TestNoDuplicateArgs_WithValid_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2899-2922\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2899, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=997-1020\nread configEnvVarGlobalPrefix for detail", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=174-197\nread rpad for detail", "file": "cobra.go", "symbol": "rpad", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=80-103\nread TestGenRSTTree for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTTree", "line": 80, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "run tests with richgo", "query": "richgo test", "file": "Makefile", "symbol": "richtest", "line": 26, "lang": "en", "candidates": [{"text": "File: completions_test.go\nLine 3669: testcases := []struct {", "file": "completions_test.go", "symbol": "", "line": 3669, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 70: # We add an extra empty parameter so we can indicate this to the go method.", "file": "bash_completionsV2.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 234: c.Flags().VisitAll(func(pflag *flag.Flag) {", "file": "flag_groups.go", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1293: Run: func(c *Command, args []string) {", "file": "command.go", "symbol": "", "line": 1293, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 82: __%[1]s_debug \"DirectiveLine: $directiveLine\"", "file": "fish_completions.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 24: \"strings\"", "file": "doc/rest_docs.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 77: func MarkFlagCustom(flags *pflag.FlagSet, name string, f string) error {", "file": "shell_completions.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "zsh_completions_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 217: d[i][j] = min + 1", "file": "cobra.go", "symbol": "", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 2: //", "file": "powershell_completions_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 13: // limitations under the License.", "file": "command_win.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 26: richtest: install_deps", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 196: expected: \"Hello \",", "file": "cobra_test.go", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 342: validOnlyWithInvalidArgs(err, t)", "file": "args_test.go", "symbol": "", "line": 342, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 33: }", "file": "bash_completionsV2_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 6: //", "file": "powershell_completions_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 42: func TestCompleteCmdInFishScript(t *testing.T) {", "file": "fish_completions_test.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 2: //", "file": "command_win.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 53: __%[1]s_debug \"last arg: $lastArg\"", "file": "fish_completions.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/util.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 27: \"go.yaml.in/yaml/v3\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 2: //", "file": "args.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 128: fi", "file": "bash_completions.go", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "run tests with richgo", "query": "richgo test", "file": "Makefile", "symbol": "richtest", "line": 26, "lang": "en", "candidates": [{"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\ndefines richtest", "file": "Makefile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "run tests with richgo", "query": "richgo test", "file": "Makefile", "symbol": "richtest", "line": 26, "lang": "en", "candidates": [{"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions_test.go lines=23-46\nread TestZshCompletionWithActiveHelp for detail", "file": "zsh_completions_test.go", "symbol": "TestZshCompletionWithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=338-361\nread SetHelpCommand for detail", "file": "command.go", "symbol": "SetHelpCommand", "line": 338, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=101-124\nread compCmdNoDescFlagName for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagName", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=243-266\nread WriteStringAndCheck for detail", "file": "cobra.go", "symbol": "WriteStringAndCheck", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=325-348\nread finalCmd for detail", "file": "completions.go", "symbol": "finalCmd", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=135-158\nread TestNoArgs_WithValid_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=465-488\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=618-641\nread VersionTemplate for detail", "file": "command.go", "symbol": "VersionTemplate", "line": 618, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=186-209\nread assertLineFound for detail", "file": "doc/man_docs_test.go", "symbol": "assertLineFound", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=376-399\nread TestValidArgsAndCmdCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsAndCmdCompletionInGo", "line": 376, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=187-210\nread TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=97-120\nread MaximumNArgs for detail", "file": "args.go", "symbol": "MaximumNArgs", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=632-655\nread completeRequireFlags for detail", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=217-240\nread BenchmarkGenManToFile for detail", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=789-812\nread TestChildFlagShadowsParentPersistentFlag for detail", "file": "command_test.go", "symbol": "TestChildFlagShadowsParentPersistentFlag", "line": 789, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=82-105\nread ArbitraryArgs for detail", "file": "args.go", "symbol": "ArbitraryArgs", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=261-284\nread TestBashCompletionTraverseChildren for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionTraverseChildren", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "我想看看在测试重复参数报错时,是怎么校验错误信息的格式的。帮我找一下那个专门用来验证参数冲突错误字符串的辅助函数。", "query": "duplicate argument error", "file": "args_test.go", "symbol": "noDuplicateArgsWithDuplicate", "line": 110, "lang": "zh", "candidates": [{"text": "File: bash_completionsV2.go\nLine 171: fi", "file": "bash_completionsV2.go", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 40: // that do not contain \\n.", "file": "doc/util.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 519: }", "file": "bash_completions.go", "symbol": "", "line": 519, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 685: lastArg = lastArg[index+1:]", "file": "completions.go", "symbol": "", "line": 685, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 75: rootCmd := &Command{Use: \"root:colon\", Args: NoArgs, Run: emptyRun}", "file": "fish_completions_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 94: b.ResetTimer()", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 263: $Description = \" ($($comp.Description))\"", "file": "powershell_completions.go", "symbol": "", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 110: func noDuplicateArgsWithDuplicate(err error, t *testing.T, arg string) {", "file": "args_test.go", "symbol": "noDuplicateArgsWithDuplicate", "line": 110, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra.go\nLine 141: // FIXME Eq is unused by cobra and should be removed in a version 2. It exists only for compatibility with users of cobra.", "file": "cobra.go", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 188: check(t, output, `noun_aliases+=(\"rc\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 282: if ($ExecutionContext.SessionState.LanguageMode -eq \"FullLanguage\"){", "file": "powershell_completions.go", "symbol": "", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 40: // that do not contain \\n.", "file": "doc/util.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 123: }", "file": "args.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 330: // GenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 318: # completions, we don't want to escape them because they will be printed in a list", "file": "bash_completionsV2.go", "symbol": "", "line": 318, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 110: \"first\",", "file": "active_help_test.go", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 105: cmd.VisitParents(func(c *cobra.Command) {", "file": "doc/rest_docs.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 234: //", "file": "cobra_test.go", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 29: }", "file": "doc/util.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 279: // Don't mark the flag that is already set as hidden because it may be an", "file": "flag_groups.go", "symbol": "", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 76: # bash focuses on the part after the =, so we need to remove", "file": "bash_completionsV2.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_notwin.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "我想看看在测试重复参数报错时,是怎么校验错误信息的格式的。帮我找一下那个专门用来验证参数冲突错误字符串的辅助函数。", "query": "duplicate argument error", "file": "args_test.go", "symbol": "noDuplicateArgsWithDuplicate", "line": 110, "lang": "zh", "candidates": [{"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\ndefines noDuplicateArgsWithDuplicate", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "我想看看在测试重复参数报错时,是怎么校验错误信息的格式的。帮我找一下那个专门用来验证参数冲突错误字符串的辅助函数。", "query": "duplicate argument error", "file": "args_test.go", "symbol": "noDuplicateArgsWithDuplicate", "line": 110, "lang": "zh", "candidates": [{"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "我想看看在测试重复参数报错时,是怎么校验错误信息的格式的。帮我找一下那个专门用来验证参数冲突错误字符串的辅助函数。", "query": "duplicate argument error", "file": "args_test.go", "symbol": "noDuplicateArgsWithDuplicate", "line": 110, "lang": "zh", "candidates": [{"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=998-1021\nread configEnvVarSuffixDescriptions for detail", "file": "completions.go", "symbol": "configEnvVarSuffixDescriptions", "line": 998, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=159-182\nread TestSubcommandExecuteC for detail", "file": "command_test.go", "symbol": "TestSubcommandExecuteC", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=497-520\nread writeShortFlag for detail", "file": "bash_completions.go", "symbol": "writeShortFlag", "line": 497, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=394-417\nread TestPluginWithSubCommands for detail", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=643-666\nread TestStripFlags for detail", "file": "command_test.go", "symbol": "TestStripFlags", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=42-65\nread GenZshCompletionNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionNoDesc", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions_test.go lines=23-46\nread TestZshCompletionWithActiveHelp for detail", "file": "zsh_completions_test.go", "symbol": "TestZshCompletionWithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=84-107\nread printCmd for detail", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=674-697\nread stripFlags for detail", "file": "command.go", "symbol": "stripFlags", "line": 674, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=30-53\nread install_deps for detail", "file": "Makefile", "symbol": "install_deps", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=110-133\nread noDuplicateArgsWithDuplicate for detail", "file": "args_test.go", "symbol": "noDuplicateArgsWithDuplicate", "line": 110, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=2545-2568\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2545, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=90-113\nread dummyCmd for detail", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=437-460\nread TestChildSameName for detail", "file": "command_test.go", "symbol": "TestChildSameName", "line": 437, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Se ha detectado que no hay una forma clara de inyectar una función personalizada para manejar la ayuda cuando se ejecuta un comando. Necesito localizar dónde se puede configurar la lógica que define cómo se muestra la información de ayuda para los comandos ejecutados por la aplicación.", "query": "set help function", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lang": "es", "candidates": [{"text": "File: powershell_completions_test.go\nLine 33: }", "file": "powershell_completions_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 60: checkStringContains(t, output, rootCmd.Short)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3590: return []string{\"service\", \"1-123\", \"11-123\"}, ShellCompDirectiveNoFileComp", "file": "completions_test.go", "symbol": "", "line": 3590, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 305: }", "file": "args_test.go", "symbol": "", "line": 305, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 122: // If you have `cmd` with two subcmds, `sub` and `sub-third`,", "file": "doc/md_docs.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 29: Use: \"child\",", "file": "fish_completions_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 226: for i := 0; i < b.N; i++ {", "file": "doc/man_docs_test.go", "symbol": "", "line": 226, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 37: func ExampleGenMan() {", "file": "doc/man_examples_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 333: func (c *Command) SetHelpFunc(f func(*Command, []string)) {", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions.go\nLine 28: nameForVar = strings.ReplaceAll(nameForVar, \"-\", \"_\")", "file": "fish_completions.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 2: //", "file": "command_win.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/man_examples_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 123: # (We cannot use $CURSOR as its value does not work when a command is an alias.)", "file": "zsh_completions.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "shell_completions.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 175: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 352: c := getCommand(ExactArgs(2), true)", "file": "args_test.go", "symbol": "", "line": 352, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 48: flagGroupsOneRequired []string", "file": "flag_groups_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 114: desc: \"Persistent flags utilize one-required and exclusive groups and can fail one-required groups\",", "file": "flag_groups_test.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 42: Section: \"2\",", "file": "doc/man_docs_test.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 30: for _, c := range cmd.Commands() {", "file": "doc/util.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 13: // limitations under the License.", "file": "doc/man_examples_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 103: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 358: c := getCommand(ExactArgs(2), true)", "file": "args_test.go", "symbol": "", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2933: child.SetHelpFunc(func(cmd *Command, args []string) {", "file": "command_test.go", "symbol": "", "line": 2933, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Se ha detectado que no hay una forma clara de inyectar una función personalizada para manejar la ayuda cuando se ejecuta un comando. Necesito localizar dónde se puede configurar la lógica que define cómo se muestra la información de ayuda para los comandos ejecutados por la aplicación.", "query": "set help function", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lang": "es", "candidates": [{"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Se ha detectado que no hay una forma clara de inyectar una función personalizada para manejar la ayuda cuando se ejecuta un comando. Necesito localizar dónde se puede configurar la lógica que define cómo se muestra la información de ayuda para los comandos ejecutados por la aplicación.", "query": "set help function", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lang": "es", "candidates": [{"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Se ha detectado que no hay una forma clara de inyectar una función personalizada para manejar la ayuda cuando se ejecuta un comando. Necesito localizar dónde se puede configurar la lógica que define cómo se muestra la información de ayuda para los comandos ejecutados por la aplicación.", "query": "set help function", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lang": "es", "candidates": [{"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=233-256\nread TestMinimumNArgs_WithValid__WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=643-666\nread TestStripFlags for detail", "file": "command_test.go", "symbol": "TestStripFlags", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=187-210\nread TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=678-701\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=465-488\nread TestGrandChildSameName for detail", "file": "command_test.go", "symbol": "TestGrandChildSameName", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=38-61\nread AppendActiveHelp for detail", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2545-2568\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2545, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=192-215\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=372-395\nread TestPlugin for detail", "file": "command_test.go", "symbol": "TestPlugin", "line": 372, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1357-1380\nread TestValidArgsFuncSingleCmdInvalidArg for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=18-41\nread lint for detail", "file": "Makefile", "symbol": "lint", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=333-356\nread SetHelpFunc for detail", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=59-82\nread EnableCommandSorting for detail", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "As iniciais estão sendo inicializadas como um slice vazio sem capacidade pré-alocada, o que pode levar a múltiplas alocações de memória desnecessárias durante o loop. Preciso garantir que a fatia tenha a capacidade correta desde o início para otimizar a performance.", "query": "initializers slice capacity", "file": "cobra.go", "symbol": "initializers", "line": 42, "lang": "pt", "candidates": [{"text": "File: bash_completions_test.go\nLine 114: rootCmd.Flags().StringP(\"two\", \"t\", \"\", \"this is two word flags\")", "file": "bash_completions_test.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 33: }", "file": "bash_completionsV2_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 49: func TestLevenshteinDistance(t *testing.T) {", "file": "cobra_test.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 48: return nil", "file": "doc/md_docs.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 145: if len(description) == 0 {", "file": "doc/man_docs.go", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 32: }", "file": "args.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 55: // activeHelpEnvVar returns the name of the program-specific ActiveHelp environment", "file": "active_help.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_win.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 269: Run: emptyRun,", "file": "active_help_test.go", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 383: os.Setenv(activeHelpGlobalEnvVar, \"on\")", "file": "active_help_test.go", "symbol": "", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 39: }", "file": "doc/md_docs.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 6: //", "file": "zsh_completions_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 391: }", "file": "completions.go", "symbol": "", "line": 391, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 42: var initializers []func()", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\nLine 86: }", "file": "doc/rest_docs.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 28: child := &Command{", "file": "fish_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 99: if len(args) > n {", "file": "args.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 28: output := buf.String()", "file": "powershell_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_notwin.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 137: }", "file": "bash_completions_test.go", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 55: return MarkFlagCustom(c.Flags(), name, f)", "file": "shell_completions.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1015: if output != expected {", "file": "completions_test.go", "symbol": "", "line": 1015, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1048: for _, x := range initializers {", "file": "command.go", "symbol": "", "line": 1048, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "As iniciais estão sendo inicializadas como um slice vazio sem capacidade pré-alocada, o que pode levar a múltiplas alocações de memória desnecessárias durante o loop. Preciso garantir que a fatia tenha a capacidade correta desde o início para otimizar a performance.", "query": "initializers slice capacity", "file": "cobra.go", "symbol": "initializers", "line": 42, "lang": "pt", "candidates": [{"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "As iniciais estão sendo inicializadas como um slice vazio sem capacidade pré-alocada, o que pode levar a múltiplas alocações de memória desnecessárias durante o loop. Preciso garantir que a fatia tenha a capacidade correta desde o início para otimizar a performance.", "query": "initializers slice capacity", "file": "cobra.go", "symbol": "initializers", "line": 42, "lang": "pt", "candidates": [{"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "As iniciais estão sendo inicializadas como um slice vazio sem capacidade pré-alocada, o que pode levar a múltiplas alocações de memória desnecessárias durante o loop. Preciso garantir que a fatia tenha a capacidade correta desde o início para otimizar a performance.", "query": "initializers slice capacity", "file": "cobra.go", "symbol": "initializers", "line": 42, "lang": "pt", "candidates": [{"text": "Next: read completions.go lines=90-113\nread shellCompDirectiveMaxValue for detail", "file": "completions.go", "symbol": "shellCompDirectiveMaxValue", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=444-467\nread UsageFunc for detail", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=55-78\nread MarkZshCompPositionalArgumentFile for detail", "file": "zsh_completions.go", "symbol": "MarkZshCompPositionalArgumentFile", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1575-1598\nread TestCompleteCmdInBashScript for detail", "file": "completions_test.go", "symbol": "TestCompleteCmdInBashScript", "line": 1575, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=337-360\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=389-412\nread TestRangeArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=217-240\nread BenchmarkGenManToFile for detail", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=169-192\nread TestMultiActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestMultiActiveHelp", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=537-560\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=632-655\nread completeRequireFlags for detail", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=271-294\nread TestMaximumNArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=529-552\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 529, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=87-110\nread MinimumNArgs for detail", "file": "args.go", "symbol": "MinimumNArgs", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=520-543\nread Help for detail", "file": "command.go", "symbol": "Help", "line": 520, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=48-71\nread defaultCaseInsensitive for detail", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=422-445\nread getErr for detail", "file": "command.go", "symbol": "getErr", "line": 422, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=664-687\nread flagName for detail", "file": "completions.go", "symbol": "flagName", "line": 664, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=311-334\nread SliceValue for detail", "file": "completions.go", "symbol": "SliceValue", "line": 311, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Estoy revisando cómo se comportan las sugerencias de autocompletado cuando el comando principal no tiene restricciones de argumentos definidos. ¿Podrías mostrarme las pruebas que verifican el comportamiento con el sistema de argumentos heredado?", "query": "legacyArgs completion test", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lang": "es", "candidates": [{"text": "File: active_help.go\nLine 15: package cobra", "file": "active_help.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 15: package cobra", "file": "fish_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 35: }", "file": "doc/util.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 189: output, err := executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"thechild\", \"\")", "file": "active_help_test.go", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 164: rootCmd.AddCommand(echoCmd, printCmd, deprecatedCmd, colonCmd)", "file": "bash_completions_test.go", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 76: buf.WriteString(\".. _\" + ref + \":\\n\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 28: output := buf.String()", "file": "powershell_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 37: // ActiveHelp line will be shown below the previous ones when completion is triggered.", "file": "active_help.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_win.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 42: if len(s) > 60 && !strings.Contains(s, \"\\n\") {", "file": "doc/util.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 105: }", "file": "doc/cmd_test.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 2: //", "file": "command_notwin.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 88: BashCompletionFunction: bashCompletionFunc,", "file": "bash_completions_test.go", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 111: flags := cmd.NonInheritedFlags()", "file": "doc/yaml_docs.go", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 48: buf := new(bytes.Buffer)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2850: func TestCompleteWithRootAndLegacyArgs(t *testing.T) {", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra.go\nLine 8: //", "file": "cobra.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 700: } else {", "file": "command.go", "symbol": "", "line": 700, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2443: defer func(ov bool) { EnablePrefixMatching = ov }(EnablePrefixMatching)", "file": "command_test.go", "symbol": "", "line": 2443, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 422: rootCmd := &Command{Use: \"root\", Run: emptyRun}", "file": "args_test.go", "symbol": "", "line": 422, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 62: expected: 0,", "file": "cobra_test.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 60: func GenYamlTreeCustom(cmd *cobra.Command, dir string, filePrepender, linkHandler func(string) string) error {", "file": "doc/yaml_docs.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 59: }", "file": "doc/rest_docs.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_win.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Estoy revisando cómo se comportan las sugerencias de autocompletado cuando el comando principal no tiene restricciones de argumentos definidos. ¿Podrías mostrarme las pruebas que verifican el comportamiento con el sistema de argumentos heredado?", "query": "legacyArgs completion test", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lang": "es", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Estoy revisando cómo se comportan las sugerencias de autocompletado cuando el comando principal no tiene restricciones de argumentos definidos. ¿Podrías mostrarme las pruebas que verifican el comportamiento con el sistema de argumentos heredado?", "query": "legacyArgs completion test", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lang": "es", "candidates": [{"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Estoy revisando cómo se comportan las sugerencias de autocompletado cuando el comando principal no tiene restricciones de argumentos definidos. ¿Podrías mostrarme las pruebas que verifican el comportamiento con el sistema de argumentos heredado?", "query": "legacyArgs completion test", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lang": "es", "candidates": [{"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=500-523\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 500, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=998-1021\nread configEnvVarSuffixDescriptions for detail", "file": "completions.go", "symbol": "configEnvVarSuffixDescriptions", "line": 998, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=45-68\nread Group for detail", "file": "command.go", "symbol": "Group", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=48-71\nread defaultCaseInsensitive for detail", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=818-841\nread TestPersistentFlagsOnChild for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnChild", "line": 818, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=740-763\nread TestPersistentFlagsOnSameCommand for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnSameCommand", "line": 740, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=90-113\nread MarkPersistentFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagDirname", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=231-254\nread initCompleteCmd for detail", "file": "completions.go", "symbol": "initCompleteCmd", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=376-399\nread SetErrPrefix for detail", "file": "command.go", "symbol": "SetErrPrefix", "line": 376, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=65-88\nread MarkFlagsMutuallyExclusive for detail", "file": "flag_groups.go", "symbol": "MarkFlagsMutuallyExclusive", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=245-268\nread TestDeadcodeElimination for detail", "file": "cobra_test.go", "symbol": "TestDeadcodeElimination", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2850-2873\nread TestCompleteWithRootAndLegacyArgs for detail", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=94-117\nread TestGenMdTree for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdTree", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "必須フラグの名前補完が行われることを確認するテストを書いて。", "query": "required flag completion test", "file": "completions_test.go", "symbol": "TestRequiredFlagNameCompletionInGo", "line": 844, "lang": "ja", "candidates": [{"text": "File: active_help.go\nLine 13: // limitations under the License.", "file": "active_help.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 557: flags_completion=()", "file": "bash_completions.go", "symbol": "", "line": 557, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 297: c.outWriter = newOut", "file": "command.go", "symbol": "", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 12: // See the License for the specific language governing permissions and", "file": "active_help.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 418: }", "file": "command.go", "symbol": "", "line": 418, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 22: \"strings\"", "file": "cobra_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 167: func validateOneRequiredFlagGroups(data map[string]map[string]bool) error {", "file": "flag_groups.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 35: rm -rf $(BIN)", "file": "Makefile", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 82: if err := GenMan(echoCmd, header, buf); err != nil {", "file": "doc/man_docs_test.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 222: compadd -x \"--\"", "file": "zsh_completions.go", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 174: fi", "file": "bash_completionsV2.go", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 18: \"bytes\"", "file": "zsh_completions_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1510: {", "file": "command_test.go", "symbol": "", "line": 1510, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "powershell_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 111: func hasAllFlags(fs *flag.FlagSet, flagnames ...string) bool {", "file": "flag_groups.go", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 844: func TestRequiredFlagNameCompletionInGo(t *testing.T) {", "file": "completions_test.go", "symbol": "TestRequiredFlagNameCompletionInGo", "line": 844, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups_test.go\nLine 118: expectErr: `at least one of the flags in the group [a b] is required`,", "file": "flag_groups_test.go", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 173: case $cur in", "file": "bash_completions.go", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 18: \"fmt\"", "file": "active_help.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 35: rm -rf $(BIN)", "file": "Makefile", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 54: func (c *Command) MarkFlagCustom(name string, f string) error {", "file": "shell_completions.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 21: )", "file": "doc/util.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 189: $_.Name -like \"$WordToComplete*\"", "file": "powershell_completions.go", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 189: keys := sortedKeys(data)", "file": "flag_groups.go", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "必須フラグの名前補完が行われることを確認するテストを書いて。", "query": "required flag completion test", "file": "completions_test.go", "symbol": "TestRequiredFlagNameCompletionInGo", "line": 844, "lang": "ja", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "必須フラグの名前補完が行われることを確認するテストを書いて。", "query": "required flag completion test", "file": "completions_test.go", "symbol": "TestRequiredFlagNameCompletionInGo", "line": 844, "lang": "ja", "candidates": [{"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "必須フラグの名前補完が行われることを確認するテストを書いて。", "query": "required flag completion test", "file": "completions_test.go", "symbol": "TestRequiredFlagNameCompletionInGo", "line": 844, "lang": "ja", "candidates": [{"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=49-72\nread TestLevenshteinDistance for detail", "file": "cobra_test.go", "symbol": "TestLevenshteinDistance", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=844-867\nread TestRequiredFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestRequiredFlagNameCompletionInGo", "line": 844, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args.go lines=117-140\nread RangeArgs for detail", "file": "args.go", "symbol": "RangeArgs", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=160-183\nread FixedCompletions for detail", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=74-97\nread checkStringContains for detail", "file": "command_test.go", "symbol": "checkStringContains", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=757-780\nread Find for detail", "file": "command.go", "symbol": "Find", "line": 757, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=573-596\nread CommandPathPadding for detail", "file": "command.go", "symbol": "CommandPathPadding", "line": 573, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=103-126\nread compCmdNoDescFlagDefault for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDefault", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=465-488\nread TestGrandChildSameName for detail", "file": "command_test.go", "symbol": "TestGrandChildSameName", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=587-610\nread helpOrVersionFlagPresent for detail", "file": "completions.go", "symbol": "helpOrVersionFlagPresent", "line": 587, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=114-137\nread child1CmdArgs for detail", "file": "command_test.go", "symbol": "child1CmdArgs", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=583-606\nread TestChildFlagWithParentLocalFlag for detail", "file": "command_test.go", "symbol": "TestChildFlagWithParentLocalFlag", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=99-122\nread rangeArgsWithInvalidCount for detail", "file": "args_test.go", "symbol": "rangeArgsWithInvalidCount", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=508-531\nread writeFlag for detail", "file": "bash_completions.go", "symbol": "writeFlag", "line": 508, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=70-93\nread resetCommandLineFlagSet for detail", "file": "command_test.go", "symbol": "resetCommandLineFlagSet", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=269-292\nread Context for detail", "file": "command.go", "symbol": "Context", "line": 269, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Ich schreibe gerade die Testabdeckung für die CLI-Logik. Kannst du mir zeigen, wie die Logik getestet wird, die sicherstellt, dass der Befehl für die Autovervollständigung nur unter bestimmten Bedingungen existiert?", "query": "completion command test", "file": "completions_test.go", "symbol": "TestDefaultCompletionCmd", "line": 2461, "lang": "de", "candidates": [{"text": "File: powershell_completions_test.go\nLine 33: }", "file": "powershell_completions_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 37: fmt.Scanln()", "file": "command_win.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 130: PersistentPreRunE func(cmd *Command, args []string) error", "file": "command.go", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 85: rootCmd := &Command{", "file": "active_help_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2461: func TestDefaultCompletionCmd(t *testing.T) {", "file": "completions_test.go", "symbol": "TestDefaultCompletionCmd", "line": 2461, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nLine 1594: }", "file": "command_test.go", "symbol": "", "line": 1594, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/md_docs.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 27: assertNoErr(t, c.GenZshCompletion(buf))", "file": "zsh_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 74: panic(err)", "file": "flag_groups.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 15: package cobra", "file": "powershell_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 31: if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {", "file": "doc/util.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 8: //", "file": "command_win.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 209: buf := new(bytes.Buffer)", "file": "doc/man_docs.go", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 99: checkStringContains(t, output, translate(echoSubCmd.Name()))", "file": "doc/man_docs_test.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 46: return nil", "file": "args.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 193: __%[1]s_debug \"Join the equal sign flag back to the completion value\"", "file": "powershell_completions.go", "symbol": "", "line": 193, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 413: else", "file": "bash_completions.go", "symbol": "", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 122: b.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 8: .PHONY: fmt lint test install_deps clean", "file": "Makefile", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 25: func ExampleGenManTree() {", "file": "doc/man_examples_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1451: \"timely\": \"times\",", "file": "command_test.go", "symbol": "", "line": 1451, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 77: fmt.Fprintf(buf, \"```\\n%s\\n```\\n\\n\", cmd.Example)", "file": "doc/md_docs.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 164: validOnlyWithInvalidArgs(err, t)", "file": "args_test.go", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 61: checkStringContains(t, output, \"boolone\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Ich schreibe gerade die Testabdeckung für die CLI-Logik. Kannst du mir zeigen, wie die Logik getestet wird, die sicherstellt, dass der Befehl für die Autovervollständigung nur unter bestimmten Bedingungen existiert?", "query": "completion command test", "file": "completions_test.go", "symbol": "TestDefaultCompletionCmd", "line": 2461, "lang": "de", "candidates": [{"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Ich schreibe gerade die Testabdeckung für die CLI-Logik. Kannst du mir zeigen, wie die Logik getestet wird, die sicherstellt, dass der Befehl für die Autovervollständigung nur unter bestimmten Bedingungen existiert?", "query": "completion command test", "file": "completions_test.go", "symbol": "TestDefaultCompletionCmd", "line": 2461, "lang": "de", "candidates": [{"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Ich schreibe gerade die Testabdeckung für die CLI-Logik. Kannst du mir zeigen, wie die Logik getestet wird, die sicherstellt, dass der Befehl für die Autovervollständigung nur unter bestimmten Bedingungen existiert?", "query": "completion command test", "file": "completions_test.go", "symbol": "TestDefaultCompletionCmd", "line": 2461, "lang": "de", "candidates": [{"text": "Next: read args_test.go lines=213-236\nread TestArbitraryArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValidOnly_WithInvalidArgs", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=657-680\nread checkIfFlagCompletion for detail", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2461-2484\nread TestDefaultCompletionCmd for detail", "file": "completions_test.go", "symbol": "TestDefaultCompletionCmd", "line": 2461, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=536-559\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=459-482\nread writeFlagHandler for detail", "file": "bash_completions.go", "symbol": "writeFlagHandler", "line": 459, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=121-144\nread TestStringInSlice for detail", "file": "cobra_test.go", "symbol": "TestStringInSlice", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=102-125\nread compCmdNoDescFlagDesc for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDesc", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=44-67\nread TestGenMdDocWithNoLongOrSynopsis for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDocWithNoLongOrSynopsis", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=181-204\nread TestNoDuplicateArgs_WithValid_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=316-339\nread getCompletions for detail", "file": "completions.go", "symbol": "getCompletions", "line": 316, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=245-268\nread TestMinimumNArgs_WithLessArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=88-111\nread exactArgsWithInvalidCount for detail", "file": "args_test.go", "symbol": "exactArgsWithInvalidCount", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_notwin.go lines=20-43\nread preExecHookFn for detail", "file": "command_notwin.go", "symbol": "preExecHookFn", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2_test.go lines=23-46\nread TestBashCompletionV2WithActiveHelp for detail", "file": "bash_completionsV2_test.go", "symbol": "TestBashCompletionV2WithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=308-331\nread aCmdArgs for detail", "file": "command_test.go", "symbol": "aCmdArgs", "line": 308, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "trouve la fonction qui lance une commande en capturant la sortie dans un buffer avec un contexte", "query": "execute command context output", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lang": "fr", "candidates": [{"text": "File: zsh_completions.go\nLine 229: noSpace=\"-S ''\"", "file": "zsh_completions.go", "symbol": "", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 30: for _, c := range cmd.Commands() {", "file": "doc/util.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 188: set -l filefilter (math (math --scale 0 $directive / $shellCompDirectiveFilterFileExt) %% 2)", "file": "fish_completions.go", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/md_docs.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 52: }", "file": "doc/cmd_test.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 47: f.Hidden = true", "file": "doc/rest_docs_test.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_win.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 52: output := buf.String()", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 209: checkOmit(t, output, `two_word_flags+=(\"-T\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 55: emptyStr := func(s string) string { return \"\" }", "file": "doc/yaml_docs.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 41: c.SetUsageTemplate(`{{if t}}{{h}}{{end}}{{if f}}{{h}}{{end}} {{w}}`)", "file": "cobra_test.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 224: fi", "file": "zsh_completions.go", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1304: _, output, err := executeCommandWithContextC(ctx, rootCmd, ShellCompNoDescRequestCmd, \"childCmd\", \"\")", "file": "completions_test.go", "symbol": "", "line": 1304, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\nLine 185: return string(res)", "file": "doc/rest_docs.go", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "bash_completionsV2_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 343: return c.genPowerShellCompletionFile(filename, true)", "file": "powershell_completions.go", "symbol": "", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 146: description = cmd.Short", "file": "doc/man_docs.go", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 203: sort.Strings(set)", "file": "flag_groups.go", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 135: // Note: Go type alias is used to provide a more descriptive name in the documentation, but any string can be used.", "file": "completions.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 276: return 0", "file": "zsh_completions.go", "symbol": "", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 70: if _, err := os.Stat(filepath.Join(tmpdir, \"do.yaml\")); err != nil {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 59: func executeCommandWithContextC(ctx context.Context, root *Command, args ...string) (c *Command, output string, err error) {", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups_test.go\nLine 123: args: []string{\"--a=foo\", \"--e=foo\", \"--f=foo\", \"--g=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "trouve la fonction qui lance une commande en capturant la sortie dans un buffer avec un contexte", "query": "execute command context output", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lang": "fr", "candidates": [{"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "trouve la fonction qui lance une commande en capturant la sortie dans un buffer avec un contexte", "query": "execute command context output", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lang": "fr", "candidates": [{"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "trouve la fonction qui lance une commande en capturant la sortie dans un buffer avec un contexte", "query": "execute command context output", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lang": "fr", "candidates": [{"text": "Next: read cobra.go lines=49-72\nread defaultTraverseRunHooks for detail", "file": "cobra.go", "symbol": "defaultTraverseRunHooks", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=123-146\nread SetDefaultShellCompDirective for detail", "file": "completions.go", "symbol": "SetDefaultShellCompDirective", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=70-93\nread resetCommandLineFlagSet for detail", "file": "command_test.go", "symbol": "resetCommandLineFlagSet", "line": 70, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=151-174\nread NoFileCompletions for detail", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=179-202\nread tmpl for detail", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=81-104\nread ValidateFlagGroups for detail", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=90-113\nread MarkPersistentFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagDirname", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=715-738\nread argsMinusFirstX for detail", "file": "command.go", "symbol": "argsMinusFirstX", "line": 715, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=426-449\nread TestValidArgsFuncAndCmdCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAndCmdCompletionInGo", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=570-593\nread minCommandPathPadding for detail", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=444-467\nread UsageFunc for detail", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=599-622\nread getFlagNameCompletions for detail", "file": "completions.go", "symbol": "getFlagNameCompletions", "line": 599, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=103-126\nread compCmdNoDescFlagDefault for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDefault", "line": 103, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "How are the command line flag defaults formatted into the markdown buffer?", "query": "markdown flag defaults", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lang": "en", "candidates": [{"text": "File: bash_completions_test.go\nLine 223: }", "file": "bash_completions_test.go", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 95: processFlagForGroupAnnotation(flags, pflag, oneRequiredAnnotation, oneRequiredGroupStatus)", "file": "flag_groups.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 270: $CompletionText", "file": "powershell_completions.go", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 95: # zsh completion for %-36[1]s -*- shell-script -*-", "file": "zsh_completions.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2816: \"--nonPersistent\",", "file": "completions_test.go", "symbol": "", "line": 2816, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "active_help.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 120: left = int64(av.Len())", "file": "cobra.go", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 471: // some of its plugins.", "file": "completions.go", "symbol": "", "line": 471, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1055: if err != nil {", "file": "command_test.go", "symbol": "", "line": 1055, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2395: if len(args) != 1 && args[0] != \"--str\" {", "file": "command_test.go", "symbol": "", "line": 2395, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 96: }", "file": "doc/rest_docs.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 441: if flag == nil && len(toComplete) > 0 && toComplete[0] == '-' && !strings.Contains(toComplete, \"=\") && flagCompletion {", "file": "completions.go", "symbol": "", "line": 441, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2415: }", "file": "completions_test.go", "symbol": "", "line": 2415, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 175: got := stringInSlice(tt.a, tt.list)", "file": "cobra_test.go", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_win.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 186: // check for noun aliases", "file": "bash_completions_test.go", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 89: if err == nil {", "file": "args_test.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 75: // We generate on a subcommand so we have both subcommands and parents", "file": "doc/man_docs_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 8: .PHONY: fmt lint test install_deps clean", "file": "Makefile", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 15: //go:build windows", "file": "command_win.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 71: t.Errorf(\"Unexpected error: %v\", err)", "file": "active_help_test.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 256: if strings.Contains(output, flagName) {", "file": "bash_completions_test.go", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 61: for _, c := range cmd.Commands() {", "file": "doc/yaml_docs.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 32: func printOptions(buf *bytes.Buffer, cmd *cobra.Command, name string) error {", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "How are the command line flag defaults formatted into the markdown buffer?", "query": "markdown flag defaults", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lang": "en", "candidates": [{"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nelsewhere in the tree", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nsibling in doc", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "How are the command line flag defaults formatted into the markdown buffer?", "query": "markdown flag defaults", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lang": "en", "candidates": [{"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> sort", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> io", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> time", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> os", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> strings", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> path/filepath", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "How are the command line flag defaults formatted into the markdown buffer?", "query": "markdown flag defaults", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lang": "en", "candidates": [{"text": "Next: read cobra.go lines=235-258\nread CheckErr for detail", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=37-60\nread ExampleGenMan for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenMan", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=401-424\nread TestRangeArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=32-55\nread printOptions for detail", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=505-528\nread getHelpTemplateFunc for detail", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=57-80\nread GenMarkdownCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownCustom", "line": 57, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=133-156\nread GenMarkdownTreeCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTreeCustom", "line": 133, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=30-53\nread markdownExtension for detail", "file": "doc/md_docs.go", "symbol": "markdownExtension", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help_test.go lines=25-48\nread activeHelpMessage for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2123-2146\nread maxFlags for detail", "file": "completions_test.go", "symbol": "maxFlags", "line": 2123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=523-546\nread writeLocalNonPersistentFlag for detail", "file": "bash_completions.go", "symbol": "writeLocalNonPersistentFlag", "line": 523, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=102-125\nread compCmdNoDescFlagDesc for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDesc", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=231-254\nread TestActiveHelpForFlag for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpForFlag", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=28-51\nread genPowerShellComp for detail", "file": "powershell_completions.go", "symbol": "genPowerShellComp", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=52-75\nread GenMarkdown for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdown", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2850-2873\nread TestCompleteWithRootAndLegacyArgs for detail", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=207-230\nread TestArbitraryArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=583-606\nread TestChildFlagWithParentLocalFlag for detail", "file": "command_test.go", "symbol": "TestChildFlagWithParentLocalFlag", "line": 583, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Je suis en train de vérifier la gestion des paramètres de ligne de commande dans les tests. Peux-tu me montrer où est stockée la valeur entière pour le drapeau de configuration ?", "query": "command test int", "file": "command_test.go", "symbol": "intFlagValue", "line": 567, "lang": "fr", "candidates": [{"text": "File: command_notwin.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_notwin.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 13: // limitations under the License.", "file": "doc/util.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/man_examples_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 141: Args: NoArgs,", "file": "bash_completions_test.go", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 23: $(info ******************** running tests ********************)", "file": "Makefile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 62: }", "file": "args.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 28: var preExecHookFn = preExecHook", "file": "command_win.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 144: __%[1]s_debug \"Adding extra empty parameter\"", "file": "zsh_completions.go", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 132: }", "file": "args.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 254: progname = \"test_deadcode_elimination\"", "file": "cobra_test.go", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 21: \"github.com/spf13/cobra\"", "file": "doc/cmd_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 567: var intFlagValue int", "file": "command_test.go", "symbol": "intFlagValue", "line": 567, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nLine 103: t.Fatalf(\"GenMarkdownTree failed: %v\", err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2288: }", "file": "completions_test.go", "symbol": "", "line": 2288, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 67: buf.WriteString(\"### Synopsis\\n\\n\")", "file": "doc/md_docs.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 142: func ExactValidArgs(n int) PositionalArgs {", "file": "args.go", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 87: pname := parent.CommandPath()", "file": "doc/md_docs.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 78: buf.WriteString(strings.Repeat(\"-\", len(name)) + \"\\n\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 295: // If newOut is nil, os.Stdout is used.", "file": "command.go", "symbol": "", "line": 295, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 45: }", "file": "args.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 581: completions = append(completions, comps...)", "file": "completions.go", "symbol": "", "line": 581, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 6: //", "file": "doc/md_docs_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2695: rootCmd := &Command{", "file": "completions_test.go", "symbol": "", "line": 2695, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 287: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "bash_completions_test.go", "symbol": "", "line": 287, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Je suis en train de vérifier la gestion des paramètres de ligne de commande dans les tests. Peux-tu me montrer où est stockée la valeur entière pour le drapeau de configuration ?", "query": "command test int", "file": "command_test.go", "symbol": "intFlagValue", "line": 567, "lang": "fr", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Je suis en train de vérifier la gestion des paramètres de ligne de commande dans les tests. Peux-tu me montrer où est stockée la valeur entière pour le drapeau de configuration ?", "query": "command test int", "file": "command_test.go", "symbol": "intFlagValue", "line": 567, "lang": "fr", "candidates": [{"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Je suis en train de vérifier la gestion des paramètres de ligne de commande dans les tests. Peux-tu me montrer où est stockée la valeur entière pour le drapeau de configuration ?", "query": "command test int", "file": "command_test.go", "symbol": "intFlagValue", "line": 567, "lang": "fr", "candidates": [{"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=311-334\nread SliceValue for detail", "file": "completions.go", "symbol": "SliceValue", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=567-590\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 567, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=187-210\nread TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=301-324\nread TestMaximumNArgs_WithMoreArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid", "line": 301, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=26-49\nread activeHelpMessage2 for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=470-493\nread GenBashCompletionFileV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionFileV2", "line": 470, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=99-122\nread rangeArgsWithInvalidCount for detail", "file": "args_test.go", "symbol": "rangeArgsWithInvalidCount", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=302-325\nread SetErr for detail", "file": "command.go", "symbol": "SetErr", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=245-268\nread TestDeadcodeElimination for detail", "file": "cobra_test.go", "symbol": "TestDeadcodeElimination", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=235-258\nread CheckErr for detail", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=114-137\nread Gt for detail", "file": "cobra.go", "symbol": "Gt", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=447-470\nread writeCommands for detail", "file": "bash_completions.go", "symbol": "writeCommands", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "인자 개수 제한 설정이 되어 있을 때, 유효한 인자와 유효하지 않은 인자가 섞여서 들어오면 에러 처리가 어떻게 되는지 확인해 주세요.", "query": "maximum n args", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lang": "ko", "candidates": [{"text": "File: zsh_completions.go\nLine 270: else", "file": "zsh_completions.go", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 93: }", "file": "args.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 313: func TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nLine 17: import (", "file": "active_help.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 29: if err := GenMarkdown(echoCmd, buf); err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 25: \"time\"", "file": "doc/md_docs.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 231: // TestDeadcodeElimination checks that a simple program using cobra in its", "file": "cobra_test.go", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 18: \"fmt\"", "file": "active_help.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 123: unexpected = translate(\"Auto generated by spf13/cobra\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 79: }", "file": "args.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 152: return err", "file": "doc/md_docs.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 8: //", "file": "bash_completionsV2.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 45: return s", "file": "doc/util.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2031: }", "file": "completions_test.go", "symbol": "", "line": 2031, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 995: break", "file": "command.go", "symbol": "", "line": 995, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 70: func (c *Command) genZshCompletionFile(filename string, includeDesc bool) error {", "file": "zsh_completions.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "bash_completionsV2_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1635: }", "file": "completions_test.go", "symbol": "", "line": 1635, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 47: flagGroupsRequired []string", "file": "flag_groups_test.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "bash_completions.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 63: section = header.Section", "file": "doc/man_docs.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 32: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "인자 개수 제한 설정이 되어 있을 때, 유효한 인자와 유효하지 않은 인자가 섞여서 들어오면 에러 처리가 어떻게 되는지 확인해 주세요.", "query": "maximum n args", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lang": "ko", "candidates": [{"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "cobra", "task": "인자 개수 제한 설정이 되어 있을 때, 유효한 인자와 유효하지 않은 인자가 섞여서 들어오면 에러 처리가 어떻게 되는지 확인해 주세요.", "query": "maximum n args", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lang": "ko", "candidates": [{"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "인자 개수 제한 설정이 되어 있을 때, 유효한 인자와 유효하지 않은 인자가 섞여서 들어오면 에러 처리가 어떻게 되는지 확인해 주세요.", "query": "maximum n args", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lang": "ko", "candidates": [{"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=740-763\nread TestPersistentFlagsOnSameCommand for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnSameCommand", "line": 740, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=146-169\nread TestRootExecuteUnknownCommand for detail", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=568-591\nread completionFn for detail", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=225-248\nread enforceFlagGroupsForCompletion for detail", "file": "flag_groups.go", "symbol": "enforceFlagGroupsForCompletion", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=231-254\nread initCompleteCmd for detail", "file": "completions.go", "symbol": "initCompleteCmd", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=89-112\nread TestFishCompletionNoActiveHelp for detail", "file": "fish_completions_test.go", "symbol": "TestFishCompletionNoActiveHelp", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2121-2144\nread TestFlagCompletionConcurrentRegistration for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionConcurrentRegistration", "line": 2121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=56-79\nread runShellCheck for detail", "file": "bash_completions_test.go", "symbol": "runShellCheck", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=319-342\nread TestDisableActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestDisableActiveHelp", "line": 319, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=50-73\nread Len for detail", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=955-978\nread CompDebug for detail", "file": "completions.go", "symbol": "CompDebug", "line": 955, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=313-336\nread TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "コマンドの前にフラグを指定した場合の動作を確認するテストを見つけたいんです。", "query": "flag before command", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lang": "ja", "candidates": [{"text": "File: bash_completions.go\nLine 204: ${flags_completion[${index}]}", "file": "bash_completions.go", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 186: tests := []struct {", "file": "cobra_test.go", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 99: if len(args) > n {", "file": "args.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 67: if opts.CommandSeparator != \"\" {", "file": "doc/man_docs.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 6: //", "file": "doc/cmd_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 21: \"testing\"", "file": "doc/md_docs_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 168: Usage: forceMultiLine(flag.Usage),", "file": "doc/yaml_docs.go", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1027: }", "file": "command.go", "symbol": "", "line": 1027, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 70: check(t, output, \"-c root-dash\")", "file": "fish_completions_test.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 103: ignoreCase: true,", "file": "cobra_test.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 107: # If the last parameter is complete (there is a space following it)", "file": "powershell_completions.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "command_win.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 165: set -l directive (string sub --start 2 $__%[1]s_perform_completion_once_result[-1])", "file": "fish_completions.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 587: return c.parent.commandsMaxNameLen", "file": "command.go", "symbol": "", "line": 587, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 226: if output != expected {", "file": "active_help_test.go", "symbol": "", "line": 226, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 18: \"bytes\"", "file": "zsh_completions_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 182: res = append(res, c)", "file": "doc/rest_docs.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 255: for flagList, flagnameAndStatus := range oneRequiredGroupStatus {", "file": "flag_groups.go", "symbol": "", "line": 255, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 85: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 70: // For flags, using Command.MarkFlagFilename() and Command.MarkPersistentFlagFilename()", "file": "completions.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 364: // could fail due to an invalid value (incomplete) for the flag.", "file": "completions.go", "symbol": "", "line": 364, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 523: func writeLocalNonPersistentFlag(buf io.StringWriter, flag *pflag.Flag) {", "file": "bash_completions.go", "symbol": "", "line": 523, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 616: func TestFlagBeforeCommand(t *testing.T) {", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "コマンドの前にフラグを指定した場合の動作を確認するテストを見つけたいんです。", "query": "flag before command", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lang": "ja", "candidates": [{"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "コマンドの前にフラグを指定した場合の動作を確認するテストを見つけたいんです。", "query": "flag before command", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lang": "ja", "candidates": [{"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "コマンドの前にフラグを指定した場合の動作を確認するテストを見つけたいんです。", "query": "flag before command", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lang": "ja", "candidates": [{"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=497-520\nread writeShortFlag for detail", "file": "bash_completions.go", "symbol": "writeShortFlag", "line": 497, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=135-158\nread TestNoArgs_WithValid_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=201-224\nread TestArbitraryArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=186-209\nread assertLineFound for detail", "file": "doc/man_docs_test.go", "symbol": "assertLineFound", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=31-54\nread GenZshCompletion for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletion", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=389-412\nread TestRangeArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=26-49\nread activeHelpEnvVarSuffix for detail", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=99-122\nread OnInitialize for detail", "file": "cobra.go", "symbol": "OnInitialize", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=80-103\nread genZshCompletion for detail", "file": "zsh_completions.go", "symbol": "genZshCompletion", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=121-144\nread TestStringInSlice for detail", "file": "cobra_test.go", "symbol": "TestStringInSlice", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=680-703\nread String for detail", "file": "completions_test.go", "symbol": "String", "line": 680, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=616-639\nread TestFlagBeforeCommand for detail", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=114-137\nread Gt for detail", "file": "cobra.go", "symbol": "Gt", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=465-488\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 465, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "There is an issue where adding a new value to a space-separated list fails if the value is already a substring of another element in that list, even if it isn't a standalone entry.", "query": "append if not present", "file": "cobra.go", "symbol": "appendIfNotPresent", "line": 166, "lang": "en", "candidates": [{"text": "File: bash_completionsV2_test.go\nLine 8: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 2053: usage = trimRightSpace(usage)", "file": "command.go", "symbol": "", "line": 2053, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "zsh_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 91: checkStringOmits(t, output, \"Auto generated\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 91: expected = expected + \"(\" + header.Section + \")\"", "file": "doc/man_docs_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 175: }", "file": "flag_groups.go", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 170: }", "file": "cobra_test.go", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "bash_completionsV2_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 268: var rootCmd = &cobra.Command{", "file": "cobra_test.go", "symbol": "", "line": 268, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 166: func appendIfNotPresent(s, stringToAppend string) string {", "file": "cobra.go", "symbol": "appendIfNotPresent", "line": 166, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args_test.go\nLine 471: _, err := executeCommand(rootCmd, \"child\", \"legal\", \"args\")", "file": "args_test.go", "symbol": "", "line": 471, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 220: if [ ${#completions} -ne 0 ] || [ $((directive & shellCompDirectiveNoFileComp)) -eq 0 ]; then", "file": "zsh_completions.go", "symbol": "", "line": 220, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 33: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_notwin.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 43: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 100: __%[1]s_debug \"${FUNCNAME[0]}: Adding extra empty parameter\"", "file": "bash_completions.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 17: import (", "file": "shell_completions.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 26: }", "file": "shell_completions.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 284: func (c *Command) GenFishCompletionFile(filename string, includeDesc bool) error {", "file": "fish_completions.go", "symbol": "", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 2: SRC=$(shell find . -name \"*.go\")", "file": "Makefile", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_notwin.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 2: //", "file": "command_notwin.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 109: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "command_notwin.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "There is an issue where adding a new value to a space-separated list fails if the value is already a substring of another element in that list, even if it isn't a standalone entry.", "query": "append if not present", "file": "cobra.go", "symbol": "appendIfNotPresent", "line": 166, "lang": "en", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "There is an issue where adding a new value to a space-separated list fails if the value is already a substring of another element in that list, even if it isn't a standalone entry.", "query": "append if not present", "file": "cobra.go", "symbol": "appendIfNotPresent", "line": 166, "lang": "en", "candidates": [{"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "There is an issue where adding a new value to a space-separated list fails if the value is already a substring of another element in that list, even if it isn't a standalone entry.", "query": "append if not present", "file": "cobra.go", "symbol": "appendIfNotPresent", "line": 166, "lang": "en", "candidates": [{"text": "Next: read completions_test.go lines=2323-2346\nread TestArgAliasesCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestArgAliasesCompletionInGo", "line": 2323, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=429-452\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 429, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2141-2164\nread wg for detail", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=30-53\nread printOptionsReST for detail", "file": "doc/rest_docs.go", "symbol": "printOptionsReST", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=773-796\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 773, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=58-81\nread activeHelpEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1591-1614\nread TestCompleteNoDesCmdInZshScript for detail", "file": "completions_test.go", "symbol": "TestCompleteNoDesCmdInZshScript", "line": 1591, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=342-365\nread GenPowerShellCompletionFileWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFileWithDesc", "line": 342, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=84-107\nread printCmd for detail", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=644-667\nread writeArgAliases for detail", "file": "bash_completions.go", "symbol": "writeArgAliases", "line": 644, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=296-319\nread SetOut for detail", "file": "command.go", "symbol": "SetOut", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=166-189\nread appendIfNotPresent for detail", "file": "cobra.go", "symbol": "appendIfNotPresent", "line": 166, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read active_help_test.go lines=84-107\nread TestActiveHelpWithComps for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpWithComps", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=588-611\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 588, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=652-675\nread gen for detail", "file": "bash_completions.go", "symbol": "gen", "line": 652, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "我想看看处理重复参数时的测试逻辑。帮我找一下那个当命令中包含有效参数但同时存在重复参数时,验证报错是否正确的单元测试。", "query": "test duplicate args", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lang": "zh", "candidates": [{"text": "File: bash_completionsV2_test.go\nLine 13: // limitations under the License.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 296: t.Fatalf(\"could not run go tool nm: %v\", err)", "file": "cobra_test.go", "symbol": "", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 135: }", "file": "args.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 45: return MarkFlagFilename(c.Flags(), name, extensions...)", "file": "shell_completions.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 54: func (c *Command) MarkFlagCustom(name string, f string) error {", "file": "shell_completions.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 55: return MarkFlagCustom(c.Flags(), name, f)", "file": "shell_completions.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 23: \"github.com/spf13/cobra\"", "file": "doc/md_docs_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 307: activeHelpMarker))", "file": "zsh_completions.go", "symbol": "", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 34: time.Sleep(MousetrapDisplayDuration)", "file": "command_win.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2102: }()", "file": "command_test.go", "symbol": "", "line": 2102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 193: return 1", "file": "fish_completions.go", "symbol": "", "line": 193, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 21: \"github.com/spf13/cobra\"", "file": "doc/cmd_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "zsh_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 103: $Flag,$WordToComplete = $WordToComplete.Split(\"=\",2)", "file": "powershell_completions.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 30: install_deps:", "file": "Makefile", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 187: func TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions_test.go\nLine 19: \"errors\"", "file": "fish_completions_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 169: __%[1]s_debug \"Directive is: $directive\"", "file": "fish_completions.go", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 266: func TestConfigActiveHelp(t *testing.T) {", "file": "active_help_test.go", "symbol": "", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 26: func hasSeeAlso(cmd *cobra.Command) bool {", "file": "doc/util.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 79: name: \"Different strings (case-insensitive)\",", "file": "cobra_test.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 16: // +build !windows", "file": "command_notwin.go", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 15: package doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "我想看看处理重复参数时的测试逻辑。帮我找一下那个当命令中包含有效参数但同时存在重复参数时,验证报错是否正确的单元测试。", "query": "test duplicate args", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lang": "zh", "candidates": [{"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "我想看看处理重复参数时的测试逻辑。帮我找一下那个当命令中包含有效参数但同时存在重复参数时,验证报错是否正确的单元测试。", "query": "test duplicate args", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lang": "zh", "candidates": [{"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "我想看看处理重复参数时的测试逻辑。帮我找一下那个当命令中包含有效参数但同时存在重复参数时,验证报错是否正确的单元测试。", "query": "test duplicate args", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lang": "zh", "candidates": [{"text": "Next: read powershell_completions.go lines=320-343\nread genPowerShellCompletionFile for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletionFile", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=470-493\nread GenBashCompletionFileV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionFileV2", "line": 470, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=22-45\nread test for detail", "file": "Makefile", "symbol": "test", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read powershell_completions.go lines=348-371\nread GenPowerShellCompletionWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionWithDesc", "line": 348, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=74-97\nread TestProgWithColon for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithColon", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1591-1614\nread TestCompleteNoDesCmdInZshScript for detail", "file": "completions_test.go", "symbol": "TestCompleteNoDesCmdInZshScript", "line": 1591, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=235-258\nread CheckErr for detail", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=25-48\nread activeHelpMessage for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=187-210\nread TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2694-2717\nread TestMultipleShorthandFlagCompletion for detail", "file": "completions_test.go", "symbol": "TestMultipleShorthandFlagCompletion", "line": 2694, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=166-189\nread appendIfNotPresent for detail", "file": "cobra.go", "symbol": "appendIfNotPresent", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=393-416\nread OutOrStdout for detail", "file": "command.go", "symbol": "OutOrStdout", "line": 393, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Je cherche les tests qui vérifient la validation du nombre minimal d'arguments requis pour une commande. Peux-tu me montrer comment est gérée l'erreur quand on en fournit trop peu ?", "query": "minimum arguments error", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs", "line": 245, "lang": "fr", "candidates": [{"text": "File: doc/man_docs_test.go\nLine 194: if err := scanner.Err(); err != nil {", "file": "doc/man_docs_test.go", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 15: //go:build !windows", "file": "command_notwin.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 77: var deprecatedCmd = &cobra.Command{", "file": "doc/cmd_test.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 6: //", "file": "flag_groups.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "bash_completionsV2_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 46: buf.WriteString(\"\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 17: import (", "file": "doc/md_docs_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "powershell_completions_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 79: t.Fatal(err)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "powershell_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 17: import (", "file": "doc/man_docs.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 245: func TestMinimumNArgs_WithLessArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs", "line": 245, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: shell_completions.go\nLine 97: return flags.SetAnnotation(name, BashCompSubdirsInDir, []string{})", "file": "shell_completions.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 218: # - file completion will be performed (so there will be choices after the activeHelp)", "file": "zsh_completions.go", "symbol": "", "line": 218, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 32: checkOmit(t, output, fmt.Sprintf(\"%s=0\", activeHelpVar))", "file": "zsh_completions_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 20: \"testing\"", "file": "bash_completionsV2_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 13: // limitations under the License.", "file": "active_help.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 73: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 15: package cobra", "file": "bash_completionsV2_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 4118: t.Fatalf(\"os.Args length changed: expected 3, got %d\", len(os.Args))", "file": "completions_test.go", "symbol": "", "line": 4118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 24: go test -v $(GO_TEST_FLAGS) ./...", "file": "Makefile", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 142: return 1", "file": "fish_completions.go", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 31: Run: emptyRun,", "file": "fish_completions_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 194: end", "file": "fish_completions.go", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Je cherche les tests qui vérifient la validation du nombre minimal d'arguments requis pour une commande. Peux-tu me montrer comment est gérée l'erreur quand on en fournit trop peu ?", "query": "minimum arguments error", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs", "line": 245, "lang": "fr", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\ndefines TestMinimumNArgs_WithLessArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Je cherche les tests qui vérifient la validation du nombre minimal d'arguments requis pour une commande. Peux-tu me montrer comment est gérée l'erreur quand on en fournit trop peu ?", "query": "minimum arguments error", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs", "line": 245, "lang": "fr", "candidates": [{"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Je cherche les tests qui vérifient la validation du nombre minimal d'arguments requis pour une commande. Peux-tu me montrer comment est gérée l'erreur quand on en fournit trop peu ?", "query": "minimum arguments error", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs", "line": 245, "lang": "fr", "candidates": [{"text": "Next: read cobra.go lines=159-182\nread trimRightSpace for detail", "file": "cobra.go", "symbol": "trimRightSpace", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=83-106\nread TestBashCompletions for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletions", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=44-67\nread TestGenYamlNoTag for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlNoTag", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=245-268\nread TestMinimumNArgs_WithLessArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs", "line": 245, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=631-654\nread getVersionTemplateFunc for detail", "file": "command.go", "symbol": "getVersionTemplateFunc", "line": 631, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=150-173\nread result for detail", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=123-146\nread SetDefaultShellCompDirective for detail", "file": "completions.go", "symbol": "SetDefaultShellCompDirective", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=376-399\nread TestValidArgsAndCmdCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsAndCmdCompletionInGo", "line": 376, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2607-2630\nread TestCompleteCompletion for detail", "file": "completions_test.go", "symbol": "TestCompleteCompletion", "line": 2607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=43-66\nread TestGenRSTNoHiddenParents for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoHiddenParents", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=78-101\nread bashCompletionFunc for detail", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=30-53\nread BashCompFilenameExt for detail", "file": "bash_completions.go", "symbol": "BashCompFilenameExt", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2461-2484\nread TestDefaultCompletionCmd for detail", "file": "completions_test.go", "symbol": "TestDefaultCompletionCmd", "line": 2461, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2163-2186\nread err for detail", "file": "completions_test.go", "symbol": "err", "line": 2163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=403-426\nread ErrOrStderr for detail", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Verifique se a validação dos argumentos mínimos funciona corretamente quando o número de argumentos fornecidos é suficiente ou excede o mínimo exigido. O teste deve confirmar que a execução do comando com argumentos válidos não gera erro.", "query": "minimum args valid test", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lang": "pt", "candidates": [{"text": "File: cobra.go\nLine 53: // to automatically enable in CLI tools.", "file": "cobra.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 68: // NoDuplicateArgs returns an error if there are any duplicate positional args.", "file": "args.go", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 109: if len(args) != n {", "file": "args.go", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 42: parentFlags.SetOutput(buf)", "file": "doc/md_docs.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 91: return MarkFlagDirname(c.PersistentFlags(), name)", "file": "shell_completions.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 946: }", "file": "completions.go", "symbol": "", "line": 946, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 3: go 1.15", "file": "go.mod", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 43: // _ACTIVE_HELP where is the name of the root command in upper", "file": "active_help.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "powershell_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 227: func TestMinimumNArgs_WithValid(t *testing.T) {", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 64: defer os.RemoveAll(tmpdir)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/md_docs_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 23: func TestBashCompletionV2WithActiveHelp(t *testing.T) {", "file": "bash_completionsV2_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 457: complete -o default -F __start_%[1]s %[1]s", "file": "bash_completionsV2.go", "symbol": "", "line": 457, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 13: // limitations under the License.", "file": "command_win.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 18: \"bytes\"", "file": "bash_completionsV2_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 26: func TestGenRSTDoc(t *testing.T) {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 206: for i := 1; i <= len(s); i++ {", "file": "cobra.go", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 21: \"github.com/spf13/cobra\"", "file": "doc/man_examples_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 181: }", "file": "flag_groups_test.go", "symbol": "", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 20: golangci-lint run -v", "file": "Makefile", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "flag_groups_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1623: // IsAdditionalHelpTopicCommand determines if a command is an additional", "file": "command.go", "symbol": "", "line": 1623, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Verifique se a validação dos argumentos mínimos funciona corretamente quando o número de argumentos fornecidos é suficiente ou excede o mínimo exigido. O teste deve confirmar que a execução do comando com argumentos válidos não gera erro.", "query": "minimum args valid test", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lang": "pt", "candidates": [{"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\ndefines TestMinimumNArgs_WithValid", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Verifique se a validação dos argumentos mínimos funciona corretamente quando o número de argumentos fornecidos é suficiente ou excede o mínimo exigido. O teste deve confirmar que a execução do comando com argumentos válidos não gera erro.", "query": "minimum args valid test", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lang": "pt", "candidates": [{"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Verifique se a validação dos argumentos mínimos funciona corretamente quando o número de argumentos fornecidos é suficiente ou excede o mínimo exigido. O teste deve confirmar que a execução do comando com argumentos válidos não gera erro.", "query": "minimum args valid test", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lang": "pt", "candidates": [{"text": "Next: read cobra_test.go lines=253-276\nread dirname for detail", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=631-654\nread getVersionTemplateFunc for detail", "file": "command.go", "symbol": "getVersionTemplateFunc", "line": 631, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=289-312\nread SetOutput for detail", "file": "command.go", "symbol": "SetOutput", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=55-78\nread MarkZshCompPositionalArgumentFile for detail", "file": "zsh_completions.go", "symbol": "MarkZshCompPositionalArgumentFile", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=77-100\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=583-606\nread TestChildFlagWithParentLocalFlag for detail", "file": "command_test.go", "symbol": "TestChildFlagWithParentLocalFlag", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=243-266\nread WriteStringAndCheck for detail", "file": "cobra.go", "symbol": "WriteStringAndCheck", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=101-124\nread compCmdNoDescFlagName for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagName", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=308-331\nread aCmdArgs for detail", "file": "command_test.go", "symbol": "aCmdArgs", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1717-1740\nread TestValidArgsFuncChildCmdsWithDesc for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmdsWithDesc", "line": 1717, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=30-53\nread install_deps for detail", "file": "Makefile", "symbol": "install_deps", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2123-2146\nread maxFlags for detail", "file": "completions_test.go", "symbol": "maxFlags", "line": 2123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=693-716\nread GetSlice for detail", "file": "completions_test.go", "symbol": "GetSlice", "line": 693, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "why do we need a strings.Builder here?", "query": "string builder", "file": "command.go", "symbol": "sb", "line": 788, "lang": "en", "candidates": [{"text": "File: powershell_completions.go\nLine 165: New-Object -TypeName PSCustomObject -Property @{", "file": "powershell_completions.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 55: Use: \"echo [string to echo]\",", "file": "doc/cmd_test.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 22: \"fmt\"", "file": "powershell_completions.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 32: checkOmit(t, output, fmt.Sprintf(\"%s=0\", activeHelpVar))", "file": "zsh_completions_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 152: # characters will be kept.", "file": "bash_completionsV2.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 372: __%[1]s_handle_word()", "file": "bash_completions.go", "symbol": "", "line": 372, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 30: // check that active help is not being disabled", "file": "bash_completionsV2_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 100: __%[1]s_debug \"${FUNCNAME[0]}: Adding extra empty parameter\"", "file": "bash_completions.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 788: var sb strings.Builder", "file": "command.go", "symbol": "sb", "line": 788, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions_test.go\nLine 17: import (", "file": "zsh_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 30: // and writes it to the passed writer.", "file": "zsh_completions.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 8: //", "file": "command_notwin.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 126: return 1", "file": "fish_completions.go", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 282: if fName != flagName {", "file": "flag_groups.go", "symbol": "", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "zsh_completions_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 5: // You may obtain a copy of the License at", "file": "bash_completionsV2_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 40: if err := c.Flags().SetAnnotation(v, requiredAsGroupAnnotation, append(f.Annotations[requiredAsGroupAnnotation], strings.Join(flagNames, \" \"))); err != nil {", "file": "flag_groups.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "active_help_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 119: if header.Title == \"\" {", "file": "doc/man_docs.go", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 193: for flagname, isSet := range flagnameAndStatus {", "file": "flag_groups.go", "symbol": "", "line": 193, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 127: }{", "file": "cobra_test.go", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 228: }", "file": "cobra_test.go", "symbol": "", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 303: __%[1]s_handle_standard_completion_case() {", "file": "bash_completionsV2.go", "symbol": "", "line": 303, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 92: checkStringContains(t, output, expected)", "file": "doc/man_docs_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "why do we need a strings.Builder here?", "query": "string builder", "file": "command.go", "symbol": "sb", "line": 788, "lang": "en", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "why do we need a strings.Builder here?", "query": "string builder", "file": "command.go", "symbol": "sb", "line": 788, "lang": "en", "candidates": [{"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "why do we need a strings.Builder here?", "query": "string builder", "file": "command.go", "symbol": "sb", "line": 788, "lang": "en", "candidates": [{"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=36-59\nread GenZshCompletionFileNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFileNoDesc", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=177-200\nread TestExecuteContext for detail", "file": "command_test.go", "symbol": "TestExecuteContext", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=84-107\nread ShellCompDirectiveKeepOrder for detail", "file": "completions.go", "symbol": "ShellCompDirectiveKeepOrder", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=421-444\nread TestRootTakesNoArgs for detail", "file": "args_test.go", "symbol": "TestRootTakesNoArgs", "line": 421, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=86-109\nread onetwo for detail", "file": "command_test.go", "symbol": "onetwo", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=788-811\nread sb for detail", "file": "command.go", "symbol": "sb", "line": 788, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=117-140\nread RangeArgs for detail", "file": "args.go", "symbol": "RangeArgs", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=438-461\nread TestRootTakesArgs for detail", "file": "args_test.go", "symbol": "TestRootTakesArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1560-1583\nread TestNoValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestNoValidArgsFuncInBashScript", "line": 1560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=31-54\nread MarkPersistentFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=333-356\nread TestExactArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=91-114\nread AddTemplateFuncs for detail", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=67-90\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=81-104\nread MousetrapDisplayDuration for detail", "file": "cobra.go", "symbol": "MousetrapDisplayDuration", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1575-1598\nread TestCompleteCmdInBashScript for detail", "file": "completions_test.go", "symbol": "TestCompleteCmdInBashScript", "line": 1575, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "How can I create a manual page from a CLI command using the documentation generator?", "query": "gen man header", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lang": "en", "candidates": [{"text": "File: args.go\nLine 6: //", "file": "args.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 78: // which to search. The BashCompSubdirsInDir annotation can be used to", "file": "completions.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 15: package doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 79: flagGroupsRequired: []string{\"a b c\", \"a d\"},", "file": "flag_groups_test.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 141: func TestNoArgs_WithValid_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 220: if [ ${#completions} -ne 0 ] || [ $((directive & shellCompDirectiveNoFileComp)) -eq 0 ]; then", "file": "zsh_completions.go", "symbol": "", "line": 220, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 68: f := c.Flags().Lookup(v)", "file": "flag_groups.go", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 21: // MarkFlagRequired instructs the various shell completion implementations to", "file": "shell_completions.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 33: if MousetrapDisplayDuration > 0 {", "file": "command_win.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 122: return nil", "file": "args.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 187: $Values = $Values | Where-Object {", "file": "powershell_completions.go", "symbol": "", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 350: // Make sure there is no ActiveHelp in the output", "file": "active_help_test.go", "symbol": "", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1530: {", "file": "command_test.go", "symbol": "", "line": 1530, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 21: \"github.com/spf13/cobra\"", "file": "doc/cmd_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 220: # to re-print the command-line since the shell will", "file": "bash_completionsV2.go", "symbol": "", "line": 220, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_notwin.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 159: func manPrintFlags(buf io.StringWriter, flags *pflag.FlagSet) {", "file": "doc/man_docs.go", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 25: func ExampleGenManTree() {", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nLine 64: Short: \"second sub command for echo\",", "file": "doc/cmd_test.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 61: checkStringContains(t, output, \"boolone\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 13: // limitations under the License.", "file": "powershell_completions_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 99: sort.Sort(byName(children))", "file": "doc/md_docs.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 38: func MarkFlagRequired(flags *pflag.FlagSet, name string) error {", "file": "shell_completions.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "How can I create a manual page from a CLI command using the documentation generator?", "query": "gen man header", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lang": "en", "candidates": [{"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nelsewhere in the tree", "file": "Makefile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\ndefines ExampleGenManTree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "How can I create a manual page from a CLI command using the documentation generator?", "query": "gen man header", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lang": "en", "candidates": [{"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> github.com/spf13/cobra", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> github.com/spf13/cobra/doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "How can I create a manual page from a CLI command using the documentation generator?", "query": "gen man header", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lang": "en", "candidates": [{"text": "Next: read cobra_test.go lines=27-50\nread assertNoErr for detail", "file": "cobra_test.go", "symbol": "assertNoErr", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=43-66\nread TestGenRSTNoHiddenParents for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoHiddenParents", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=573-596\nread CommandPathPadding for detail", "file": "command.go", "symbol": "CommandPathPadding", "line": 573, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2461-2484\nread TestDefaultCompletionCmd for detail", "file": "completions_test.go", "symbol": "TestDefaultCompletionCmd", "line": 2461, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=788-811\nread sb for detail", "file": "command.go", "symbol": "sb", "line": 788, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=429-452\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 429, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=401-424\nread TestRangeArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=276-299\nread GenFishCompletion for detail", "file": "fish_completions.go", "symbol": "GenFishCompletion", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=693-716\nread GetSlice for detail", "file": "completions_test.go", "symbol": "GetSlice", "line": 693, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=352-375\nread SetCompletionCommandGroupID for detail", "file": "command.go", "symbol": "SetCompletionCommandGroupID", "line": 352, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=326-349\nread finalArgs for detail", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=251-274\nread TestMinimumNArgs_WithLessArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=37-60\nread ExampleGenMan for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenMan", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=605-628\nread HelpTemplate for detail", "file": "command.go", "symbol": "HelpTemplate", "line": 605, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=313-336\nread TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=179-202\nread tmpl for detail", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=77-100\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=123-146\nread TestNoArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "El método que convierte la estructura de múltiples cadenas en una representación de texto está devolviendo el valor de la estructura de forma directa en lugar de formatear su contenido, lo que causa problemas en las pruebas de autocompletado.", "query": "multi string format", "file": "completions_test.go", "symbol": "String", "line": 680, "lang": "es", "candidates": [{"text": "File: cobra_test.go\nLine 29: t.Error(e)", "file": "cobra_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 158: done < <(printf \"%%s\\n\" \"${out[@]}\")", "file": "zsh_completions.go", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 33: output := buf.String()", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nLine 89: if len(args) < n {", "file": "args.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 119: // if no special directive can be determined", "file": "completions.go", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 27: activeHelpGlobalEnvVar = configEnvVarGlobalPrefix + \"_\" + activeHelpEnvVarSuffix", "file": "active_help.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 26: )", "file": "command_win.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 61: // To achieve the same behavior across all shells, one can use", "file": "zsh_completions.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 244: // See also: https://github.com/spf13/cobra/pull/1956", "file": "cobra_test.go", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 37: output := buf.String()", "file": "fish_completions_test.go", "symbol": "", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nLine 5: // You may obtain a copy of the License at", "file": "powershell_completions_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 2: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 95: for i := 0; i < b.N; i++ {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 132: // with custom filePrepender and linkHandler.", "file": "doc/md_docs.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 28: output := buf.String()", "file": "zsh_completions_test.go", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nLine 45: return buf.String(), err", "file": "command_test.go", "symbol": "", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nLine 34: )", "file": "bash_completions.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 28: output := buf.String()", "file": "powershell_completions_test.go", "symbol": "", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\nLine 680: func (s *customMultiString) String() string {", "file": "completions_test.go", "symbol": "String", "line": 680, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nLine 90: t.Fatalf(\"GenReSTTree failed: %s\", err.Error())", "file": "doc/rest_docs_test.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 237: rootCmd.Flags().String(flagname, \"\", \"A flag\")", "file": "active_help_test.go", "symbol": "", "line": 237, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nLine 83: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 103: }", "file": "args.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "El método que convierte la estructura de múltiples cadenas en una representación de texto está devolviendo el valor de la estructura de forma directa en lugar de formatear su contenido, lo que causa problemas en las pruebas de autocompletado.", "query": "multi string format", "file": "completions_test.go", "symbol": "String", "line": 680, "lang": "es", "candidates": [{"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "cobra", "task": "El método que convierte la estructura de múltiples cadenas en una representación de texto está devolviendo el valor de la estructura de forma directa en lugar de formatear su contenido, lo que causa problemas en las pruebas de autocompletado.", "query": "multi string format", "file": "completions_test.go", "symbol": "String", "line": 680, "lang": "es", "candidates": [{"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "El método que convierte la estructura de múltiples cadenas en una representación de texto está devolviendo el valor de la estructura de forma directa en lugar de formatear su contenido, lo que causa problemas en las pruebas de autocompletado.", "query": "multi string format", "file": "completions_test.go", "symbol": "String", "line": 680, "lang": "es", "candidates": [{"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=680-703\nread String for detail", "file": "completions_test.go", "symbol": "String", "line": 680, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=185-208\nread TestRpad for detail", "file": "cobra_test.go", "symbol": "TestRpad", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=421-444\nread TestRootTakesNoArgs for detail", "file": "args_test.go", "symbol": "TestRootTakesNoArgs", "line": 421, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=980-1003\nread CompDebugln for detail", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=81-104\nread MousetrapDisplayDuration for detail", "file": "cobra.go", "symbol": "MousetrapDisplayDuration", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=579-602\nread comps for detail", "file": "completions.go", "symbol": "comps", "line": 579, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=30-53\nread install_deps for detail", "file": "Makefile", "symbol": "install_deps", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=321-344\nread TestExactArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups_test.go lines=22-45\nread TestValidateFlagGroups for detail", "file": "flag_groups_test.go", "symbol": "TestValidateFlagGroups", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=828-851\nread parentFlagValue for detail", "file": "command_test.go", "symbol": "parentFlagValue", "line": 828, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=275-298\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=174-197\nread res for detail", "file": "doc/rest_docs.go", "symbol": "res", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=313-336\nread TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=333-356\nread TestExactArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=337-360\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=632-655\nread completeRequireFlags for detail", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "コマンドが2つの引数しか受け付けない設定になっている場合に、3つの引数(a, b, c)を渡すとエラーになることを確認するテストケース。", "query": "maximum args error", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs", "line": 295, "lang": "ja", "candidates": [{"text": "File: bash_completions_test.go\nLine 153: timesCmd := &Command{", "file": "bash_completions_test.go", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1676: \":0\",", "file": "completions_test.go", "symbol": "", "line": 1676, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 274: // flags of that group so the shell completion does not suggest them", "file": "flag_groups.go", "symbol": "", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 24: )", "file": "fish_completions_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 10: default: all", "file": "Makefile", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/rest_docs.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 92: Short: \"Performs a dummy action\",", "file": "doc/cmd_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 39: // Temporary workaround for yaml lib generating incorrect yaml with long strings", "file": "doc/util.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 712: secondFlag := rootCmd.Flags().Lookup(\"second\")", "file": "completions_test.go", "symbol": "", "line": 712, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 53: return fmt.Sprintf(\"`%s <%s.rst>`_\", name, ref)", "file": "doc/rest_docs.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 55: return MarkFlagCustom(c.Flags(), name, f)", "file": "shell_completions.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 158: expected := \"**--foo**=\\\"default\\\"\\n\\tFoo flag\\n\\n\"", "file": "doc/man_docs_test.go", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 80: if err := printOptions(buf, cmd, name); err != nil {", "file": "doc/md_docs.go", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 94: t.Fatalf(\"Expected file 'do.rst' to exist\")", "file": "doc/rest_docs_test.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 28: output := buf.String()", "file": "zsh_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 128: f, _ := os.OpenFile(filepath.Join(tmpDir, \"test\"), os.O_CREATE, 0400)", "file": "fish_completions_test.go", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 155: basename := strings.ReplaceAll(cmd.CommandPath(), \" \", \"_\") + \".rst\"", "file": "doc/rest_docs.go", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "command_win.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 29: )", "file": "active_help.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 295: func TestMaximumNArgs_WithMoreArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs", "line": 295, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nLine 1187: }", "file": "command_test.go", "symbol": "", "line": 1187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 37: timesCmd.Flags().BoolP(\"booltwo\", \"c\", false, \"help message for flag booltwo\")", "file": "doc/cmd_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 163: if _, err := io.WriteString(f, filePrepender(filename)); err != nil {", "file": "doc/rest_docs.go", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 136: }", "file": "command_test.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "コマンドが2つの引数しか受け付けない設定になっている場合に、3つの引数(a, b, c)を渡すとエラーになることを確認するテストケース。", "query": "maximum args error", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs", "line": 295, "lang": "ja", "candidates": [{"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestMaximumNArgs_WithMoreArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "コマンドが2つの引数しか受け付けない設定になっている場合に、3つの引数(a, b, c)を渡すとエラーになることを確認するテストケース。", "query": "maximum args error", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs", "line": 295, "lang": "ja", "candidates": [{"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "コマンドが2つの引数しか受け付けない設定になっている場合に、3つの引数(a, b, c)を渡すとエラーになることを確認するテストケース。", "query": "maximum args error", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs", "line": 295, "lang": "ja", "candidates": [{"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=57-80\nread TestGenYamlTree for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlTree", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=444-467\nread UsageFunc for detail", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=80-103\nread genZshCompletion for detail", "file": "zsh_completions.go", "symbol": "genZshCompletion", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=26-49\nread TestGenMdDoc for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=101-124\nread checkStringOmits for detail", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=70-93\nread resetCommandLineFlagSet for detail", "file": "command_test.go", "symbol": "resetCommandLineFlagSet", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=828-851\nread parentFlagValue for detail", "file": "command_test.go", "symbol": "parentFlagValue", "line": 828, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=520-543\nread Help for detail", "file": "command.go", "symbol": "Help", "line": 520, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1607-1630\nread TestCompleteCmdInZshScript for detail", "file": "completions_test.go", "symbol": "TestCompleteCmdInZshScript", "line": 1607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=295-318\nread TestMaximumNArgs_WithMoreArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs", "line": 295, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_win.go lines=28-51\nread preExecHookFn for detail", "file": "command_win.go", "symbol": "preExecHookFn", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=49-72\nread TestLevenshteinDistance for detail", "file": "cobra_test.go", "symbol": "TestLevenshteinDistance", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=77-100\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=372-395\nread TestPlugin for detail", "file": "command_test.go", "symbol": "TestPlugin", "line": 372, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=114-137\nread Gt for detail", "file": "cobra.go", "symbol": "Gt", "line": 114, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "임의의 인자를 전달했을 때 명령어가 성공적으로 실행되는지 검증하는 테스트 찾아줘", "query": "test arbitrary args", "file": "args_test.go", "symbol": "TestArbitraryArgs", "line": 195, "lang": "ko", "candidates": [{"text": "File: completions_test.go\nLine 3208: \":4\",", "file": "completions_test.go", "symbol": "", "line": 3208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3452: expectedOutput: strings.Join([]string{", "file": "completions_test.go", "symbol": "", "line": 3452, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 195: func TestArbitraryArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestArbitraryArgs", "line": 195, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2_test.go\nLine 17: import (", "file": "bash_completionsV2_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 587: func helpOrVersionFlagPresent(cmd *Command) bool {", "file": "completions.go", "symbol": "", "line": 587, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 2: //", "file": "powershell_completions.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 95: cmd.InitDefaultHelpFlag()", "file": "doc/yaml_docs.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 97: // Test that activeHelp can be added following other completions", "file": "active_help_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 19: \"fmt\"", "file": "bash_completionsV2.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 62: if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {", "file": "doc/yaml_docs.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 279: __%[1]s_debug \"Checking if we should do file completion.\"", "file": "zsh_completions.go", "symbol": "", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "powershell_completions_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 72: f, err := os.Create(filename)", "file": "doc/man_docs.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 35: // This function can be called multiple times before and/or after completions are added to", "file": "active_help.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 673: if index := strings.Index(lastArg, \"=\"); index >= 0 {", "file": "completions.go", "symbol": "", "line": 673, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3894: var run = func() {", "file": "completions_test.go", "symbol": "", "line": 3894, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 86: Path string", "file": "doc/man_docs.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 94: cmd.InitDefaultHelpCmd()", "file": "doc/yaml_docs.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 21: \"path/filepath\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 308: # if you set a flag which only applies to this command, don't show subcommands", "file": "bash_completions.go", "symbol": "", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 892: t.Errorf(\"Expected %q, got %q\", expected, err.Error())", "file": "command_test.go", "symbol": "", "line": 892, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 104: }", "file": "args.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 40: }", "file": "active_help.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 94: // MarkFlagDirname instructs the various shell completion implementations to", "file": "shell_completions.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "임의의 인자를 전달했을 때 명령어가 성공적으로 실행되는지 검증하는 테스트 찾아줘", "query": "test arbitrary args", "file": "args_test.go", "symbol": "TestArbitraryArgs", "line": 195, "lang": "ko", "candidates": [{"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\ndefines TestArbitraryArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "cobra", "task": "임의의 인자를 전달했을 때 명령어가 성공적으로 실행되는지 검증하는 테스트 찾아줘", "query": "test arbitrary args", "file": "args_test.go", "symbol": "TestArbitraryArgs", "line": 195, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "임의의 인자를 전달했을 때 명령어가 성공적으로 실행되는지 검증하는 테스트 찾아줘", "query": "test arbitrary args", "file": "args_test.go", "symbol": "TestArbitraryArgs", "line": 195, "lang": "ko", "candidates": [{"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=49-72\nread defaultTraverseRunHooks for detail", "file": "cobra.go", "symbol": "defaultTraverseRunHooks", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=248-271\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=111-134\nread BenchmarkGenMarkdownToFile for detail", "file": "doc/md_docs_test.go", "symbol": "BenchmarkGenMarkdownToFile", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=195-218\nread TestArbitraryArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs", "line": 195, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=466-489\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=84-107\nread printCmd for detail", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups_test.go lines=22-45\nread TestValidateFlagGroups for detail", "file": "flag_groups_test.go", "symbol": "TestValidateFlagGroups", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=526-549\nread UsageString for detail", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=643-666\nread ErrPrefix for detail", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=27-50\nread TestGenYamlDoc for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDoc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=84-107\nread GenManTreeOptions for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeOptions", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=146-169\nread TestRootExecuteUnknownCommand for detail", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=818-841\nread TestPersistentFlagsOnChild for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnChild", "line": 818, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=24-47\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=62-85\nread GenReSTCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTCustom", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "マニュアル生成時に、自動生成を示すタグや履歴セクションが、設定で無効化されているにもかかわらず出力に含まれてしまう不具合がないか確認してください。", "query": "man page auto-gen", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lang": "ja", "candidates": [{"text": "File: doc/rest_docs_test.go\nLine 61: checkStringContains(t, output, echoSubCmd.Short)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 5: // You may obtain a copy of the License at", "file": "active_help.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2540: // Re-enable for next test", "file": "completions_test.go", "symbol": "", "line": 2540, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 102: if test -z \"$__%[1]s_perform_completion_once_result\"", "file": "fish_completions.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 2: //", "file": "command_win.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/yaml_docs.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 51: t.Errorf(\"Expected: %q, got: %q\", expected, got)", "file": "args_test.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 100: return fmt.Errorf(\"accepts at most %d arg(s), received %d\", n, len(args))", "file": "args.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/yaml_docs.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 15: $(info ******************** checking formatting ********************)", "file": "Makefile", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "zsh_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 150: var result []cmdOption", "file": "doc/yaml_docs.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 2: SRC=$(shell find . -name \"*.go\")", "file": "Makefile", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 102: fi", "file": "bash_completions.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2980: func TestFixedCompletions(t *testing.T) {", "file": "completions_test.go", "symbol": "", "line": 2980, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 13: // limitations under the License.", "file": "command_win.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "powershell_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 71: if len(long) == 0 {", "file": "doc/rest_docs.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 193: return 1", "file": "fish_completions.go", "symbol": "", "line": 193, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "doc/man_examples_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 23: func TestPwshCompletionNoActiveHelp(t *testing.T) {", "file": "powershell_completions_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 227: # - Complete (works like bash)", "file": "powershell_completions.go", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 105: func TestGenManNoGenTag(t *testing.T) {", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/rest_docs_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "マニュアル生成時に、自動生成を示すタグや履歴セクションが、設定で無効化されているにもかかわらず出力に含まれてしまう不具合がないか確認してください。", "query": "man page auto-gen", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lang": "ja", "candidates": [{"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\ndefines TestGenManNoGenTag", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Makefile\nelsewhere in the tree", "file": "Makefile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nelsewhere in the tree", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "マニュアル生成時に、自動生成を示すタグや履歴セクションが、設定で無効化されているにもかかわらず出力に含まれてしまう不具合がないか確認してください。", "query": "man page auto-gen", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lang": "ja", "candidates": [{"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> path/filepath", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> testing", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> github.com/spf13/cobra", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs_test.go -> strings", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> fmt", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> os", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "マニュアル生成時に、自動生成を示すタグや履歴セクションが、設定で無効化されているにもかかわらず出力に含まれてしまう不具合がないか確認してください。", "query": "man page auto-gen", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lang": "ja", "candidates": [{"text": "Next: read completions.go lines=102-125\nread compCmdNoDescFlagDesc for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDesc", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=393-416\nread OutOrStdout for detail", "file": "command.go", "symbol": "OutOrStdout", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=326-349\nread finalArgs for detail", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=101-124\nread checkStringOmits for detail", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=88-111\nread TestSingleCommand for detail", "file": "command_test.go", "symbol": "TestSingleCommand", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=997-1020\nread configEnvVarGlobalPrefix for detail", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=991-1014\nread CompErrorln for detail", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=389-412\nread TestRangeArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=383-406\nread TestRangeArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read powershell_completions.go lines=342-365\nread GenPowerShellCompletionFileWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFileWithDesc", "line": 342, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=66-89\nread TestGenRSTNoTag for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoTag", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=127-150\nread TestGenManSeeAlso for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=547-570\nread FlagErrorFunc for detail", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=245-268\nread TestBashCompletionDeprecatedFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionDeprecatedFlag", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Il y a un problème dans la validation des tests : l'assertion qui vérifie si une chaîne de caractères contient une sous-chaîne spécifique n'affiche pas de message d'erreur si la condition n'est pas remplie.", "query": "test contains string", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lang": "fr", "candidates": [{"text": "File: bash_completions_test.go\nLine 66: }", "file": "bash_completions_test.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 80: func TestGenRSTTree(t *testing.T) {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 39: check(t, output, ShellCompNoDescRequestCmd)", "file": "fish_completions_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 57: checkStringContains(t, output, expected)", "file": "doc/man_docs_test.go", "symbol": "", "line": 57, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nLine 273: }", "file": "fish_completions.go", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_notwin.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 78: checkStringOmits(t, output, \"Options inherited from parent commands\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 95: func checkStringContains(t *testing.T, got, expected string) {", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions.go\nLine 287: return err", "file": "fish_completions.go", "symbol": "", "line": 287, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 207: }", "file": "completions.go", "symbol": "", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 74: func checkStringContains(t *testing.T, got, expected string) {", "file": "command_test.go", "symbol": "", "line": 74, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nLine 18: \"bytes\"", "file": "zsh_completions_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 34: checkStringContains(t, output, echoCmd.Long)", "file": "doc/md_docs_test.go", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nLine 694: if len(args) > 0 {", "file": "completions.go", "symbol": "", "line": 694, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 47: }", "file": "doc/md_docs.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2001: rootCmd.AddCommand(&Command{Use: \"xxx\", GroupID: \"group\", Run: emptyRun})", "file": "command_test.go", "symbol": "", "line": 2001, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 156: __%[1]s_perform_completion_once", "file": "fish_completions.go", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2232: }", "file": "command_test.go", "symbol": "", "line": 2232, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 34: checkStringContains(t, output, echoCmd.Long)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nLine 93: $WordToComplete = $Arguments.Split(\" \")[-1]", "file": "powershell_completions.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 277: if isSet {", "file": "flag_groups.go", "symbol": "", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 19: \"os\"", "file": "active_help.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_notwin.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 35: checkStringContains(t, output, echoCmd.Long)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 35, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Il y a un problème dans la validation des tests : l'assertion qui vérifie si une chaîne de caractères contient une sous-chaîne spécifique n'affiche pas de message d'erreur si la condition n'est pas remplie.", "query": "test contains string", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lang": "fr", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\ndefines checkStringContains", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Il y a un problème dans la validation des tests : l'assertion qui vérifie si une chaîne de caractères contient une sous-chaîne spécifique n'affiche pas de message d'erreur si la condition n'est pas remplie.", "query": "test contains string", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lang": "fr", "candidates": [{"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> github.com/spf13/cobra", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Il y a un problème dans la validation des tests : l'assertion qui vérifie si une chaîne de caractères contient une sous-chaîne spécifique n'affiche pas de message d'erreur si la condition n'est pas remplie.", "query": "test contains string", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lang": "fr", "candidates": [{"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2079-2102\nread TestFlagCompletionForPersistentFlagsCalledFromSubCmd for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionForPersistentFlagsCalledFromSubCmd", "line": 2079, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=27-50\nread TestGenYamlDoc for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDoc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=997-1020\nread configEnvVarGlobalPrefix for detail", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=678-701\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=95-118\nread checkStringContains for detail", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read active_help_test.go lines=231-254\nread TestActiveHelpForFlag for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpForFlag", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=579-602\nread comps for detail", "file": "completions.go", "symbol": "comps", "line": 579, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=421-444\nread TestRootTakesNoArgs for detail", "file": "args_test.go", "symbol": "TestRootTakesNoArgs", "line": 421, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=181-204\nread TestNoDuplicateArgs_WithValid_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=616-639\nread TestFlagBeforeCommand for detail", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=394-417\nread TestPluginWithSubCommands for detail", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=407-430\nread TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 407, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=150-173\nread result for detail", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=192-215\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 192, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "메타데이터가 숨겨진 부모 명령이 있는 하위 명령에 대한 마크다운 생성 검증", "query": "markdown hidden parent test", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lang": "ko", "candidates": [{"text": "File: doc/man_docs.go\nLine 230: }", "file": "doc/man_docs.go", "symbol": "", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 17: import (", "file": "powershell_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 63: }", "file": "shell_completions.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 15: package cobra", "file": "bash_completionsV2.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 176: for _, flagGroup := range tc.subCmdFlagGroupsRequired {", "file": "flag_groups_test.go", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 17: import (", "file": "powershell_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 58: func TestGenMdNoHiddenParents(t *testing.T) {", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nLine 46: // is set to \"0\".", "file": "active_help.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 12: // See the License for the specific language governing permissions and", "file": "doc/util.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 21: )", "file": "powershell_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 45: // It will always return \"0\" if the global environment variable COBRA_ACTIVE_HELP", "file": "active_help.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 271: Short: \"example_program - test fixture to check that deadcode elimination is allowed\",", "file": "cobra_test.go", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 250: }", "file": "flag_groups.go", "symbol": "", "line": 250, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 143: if (($Directive -band $ShellCompDirectiveError) -ne 0 ) {", "file": "powershell_completions.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 110: Title: \"Project\",", "file": "doc/man_docs_test.go", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2852: []string{\"-f\", \"child\", \"-b\"},", "file": "command_test.go", "symbol": "", "line": 2852, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 110: child := &Command{", "file": "fish_completions_test.go", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 82: }", "file": "active_help_test.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 211: return fmt.Errorf(\"scan failed: %v\", err)", "file": "doc/man_docs_test.go", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 358: if [[ -n ${last_command} ]]; then", "file": "bash_completions.go", "symbol": "", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 280: // Set the variable that the user would be setting", "file": "active_help_test.go", "symbol": "", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 269: Version: \"1.0\",", "file": "cobra_test.go", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 36: return fmt.Errorf(\"unknown command %q for %q%s\", args[0], cmd.CommandPath(), cmd.findSuggestions(args[0]))", "file": "args.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "메타데이터가 숨겨진 부모 명령이 있는 하위 명령에 대한 마크다운 생성 검증", "query": "markdown hidden parent test", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lang": "ko", "candidates": [{"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\ndefines TestGenMdNoHiddenParents", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nelsewhere in the tree", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nsibling in doc", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "메타데이터가 숨겨진 부모 명령이 있는 하위 명령에 대한 마크다운 생성 검증", "query": "markdown hidden parent test", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lang": "ko", "candidates": [{"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> path/filepath", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> testing", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> github.com/spf13/cobra", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "메타데이터가 숨겨진 부모 명령이 있는 하위 명령에 대한 마크다운 생성 검증", "query": "markdown hidden parent test", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lang": "ko", "candidates": [{"text": "Next: read completions_test.go lines=2044-2067\nread TestFlagCompletionWorksRootCommandAddedAfterFlags for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWorksRootCommandAddedAfterFlags", "line": 2044, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=466-489\nread TestChildTakesArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=55-78\nread EnablePrefixMatching for detail", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=296-319\nread SetOut for detail", "file": "command.go", "symbol": "SetOut", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=701-724\nread GenBashCompletionFile for detail", "file": "bash_completions.go", "symbol": "GenBashCompletionFile", "line": 701, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=87-110\nread genZshComp for detail", "file": "zsh_completions.go", "symbol": "genZshComp", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=101-124\nread checkStringOmits for detail", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=33-56\nread TestAddTemplateFunctions for detail", "file": "cobra_test.go", "symbol": "TestAddTemplateFunctions", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=38-61\nread GenManTree for detail", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=94-117\nread TestGenMdTree for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdTree", "line": 94, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=149-172\nread genFlagResult for detail", "file": "doc/yaml_docs.go", "symbol": "genFlagResult", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=44-67\nread TestGenMdDocWithNoLongOrSynopsis for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDocWithNoLongOrSynopsis", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2141-2164\nread wg for detail", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=201-224\nread TestArbitraryArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=81-104\nread TestGenMdNoTag for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoTag", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=26-49\nread TestGenMdDoc for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=58-81\nread TestGenMdNoHiddenParents for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/md_docs_test.go lines=111-134\nread BenchmarkGenMarkdownToFile for detail", "file": "doc/md_docs_test.go", "symbol": "BenchmarkGenMarkdownToFile", "line": 111, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=78-101\nread bashCompletionFunc for detail", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "busca la prueba que verifica que los comandos jerárquicos usen el contexto por defecto", "query": "command context test", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lang": "es", "candidates": [{"text": "File: active_help.go\nLine 60: }", "file": "active_help.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 263: }", "file": "active_help_test.go", "symbol": "", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 98: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 235: func TestExecute_NoContext(t *testing.T) {", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions.go\nLine 606: if strings.HasPrefix(flagName, toComplete) {", "file": "completions.go", "symbol": "", "line": 606, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 96: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 5: // You may obtain a copy of the License at", "file": "args.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 24: func emptyRun(*cobra.Command, []string) {}", "file": "doc/cmd_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "bash_completionsV2_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 117: __%[1]s_debug \"${FUNCNAME[0]}: the completions are: ${out}\"", "file": "bash_completions.go", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 33: }", "file": "zsh_completions_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 105: cname := name + \" \" + child.Name()", "file": "doc/md_docs.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "command_win.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 139: // there are any positional args that are not in the `ValidArgs` field of `Command`", "file": "args.go", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 21: \"path/filepath\"", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 204: return fmt.Errorf(\"if any flags in the group [%v] are set none of the others can be; %v were all set\", flagList, set)", "file": "flag_groups.go", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 254: output := buf.String()", "file": "bash_completions_test.go", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 161: if [ \"${lastLine[1]}\" = : ]; then", "file": "zsh_completions.go", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 13: // limitations under the License.", "file": "shell_completions.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 62: done", "file": "bash_completions.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 23: func TestZshCompletionWithActiveHelp(t *testing.T) {", "file": "zsh_completions_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 108: # We add an extra empty parameter so we can indicate this to the go method.", "file": "powershell_completions.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 94: }", "file": "cobra.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 222: defer os.Remove(file.Name())", "file": "doc/man_docs_test.go", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "busca la prueba que verifica que los comandos jerárquicos usen el contexto por defecto", "query": "command context test", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lang": "es", "candidates": [{"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "busca la prueba que verifica que los comandos jerárquicos usen el contexto por defecto", "query": "command context test", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lang": "es", "candidates": [{"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "busca la prueba que verifica que los comandos jerárquicos usen el contexto por defecto", "query": "command context test", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lang": "es", "candidates": [{"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=28-51\nread preExecHookFn for detail", "file": "command_win.go", "symbol": "preExecHookFn", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=52-75\nread GenMarkdown for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdown", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=111-134\nread hasAllFlags for detail", "file": "flag_groups.go", "symbol": "hasAllFlags", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=58-81\nread activeHelpEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=997-1020\nread configEnvVarGlobalPrefix for detail", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=277-300\nread TestMaximumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=684-707\nread Set for detail", "file": "completions_test.go", "symbol": "Set", "line": 684, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=155-178\nread TestOnlyValidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=101-124\nread TestGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=175-198\nread TestNoDuplicateArgs_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithDuplicateArgs", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=161-184\nread TestOnlyValidArgs_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs_WithInvalidArgs", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_notwin.go lines=20-43\nread preExecHookFn for detail", "file": "command_notwin.go", "symbol": "preExecHookFn", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=235-258\nread TestExecute_NoContext for detail", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "测试在 Go 程序中为整型标志(introot)和字符串标志(filename)注册完成函数后的行为,验证当用户输入前缀时,系统是否能正确筛选并返回包含描述文本的完成项列表。", "query": "flag completion behavior test", "file": "completions_test.go", "symbol": "TestFlagCompletionInGo", "line": 1624, "lang": "zh", "candidates": [{"text": "File: bash_completionsV2_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "bash_completionsV2_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 8: //", "file": "doc/man_examples_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1518: if x.HasPersistentFlags() {", "file": "command.go", "symbol": "", "line": 1518, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 183: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 183, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_win.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 64: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 270: $CompletionText", "file": "powershell_completions.go", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 87: Long: `an absolutely utterly useless command for testing.`,", "file": "doc/cmd_test.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1624: func TestFlagCompletionInGo(t *testing.T) {", "file": "completions_test.go", "symbol": "TestFlagCompletionInGo", "line": 1624, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\nLine 19: \"fmt\"", "file": "doc/rest_docs.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 35: checkStringContains(t, output, echoCmd.Long)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "zsh_completions_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 20: \"io\"", "file": "doc/rest_docs.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 104: flagGroupsExclusive: []string{\"a d\", \"a b\", \"a c\"},", "file": "flag_groups_test.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 51: func (s byName) Swap(i, j int) { s[i], s[j] = s[j], s[i] }", "file": "doc/util.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 51: t.Errorf(\"Expected: %q, got: %q\", expected, got)", "file": "args_test.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 111: // Gt takes two types and checks whether the first type is greater than the second. In case of types Arrays, Chans,", "file": "cobra.go", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 279: __%[1]s_debug \"Checking if we should do file completion.\"", "file": "zsh_completions.go", "symbol": "", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_win.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 13: // limitations under the License.", "file": "fish_completions.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 79: if output != expected {", "file": "active_help_test.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 45: return MarkFlagFilename(c.Flags(), name, extensions...)", "file": "shell_completions.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "测试在 Go 程序中为整型标志(introot)和字符串标志(filename)注册完成函数后的行为,验证当用户输入前缀时,系统是否能正确筛选并返回包含描述文本的完成项列表。", "query": "flag completion behavior test", "file": "completions_test.go", "symbol": "TestFlagCompletionInGo", "line": 1624, "lang": "zh", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "测试在 Go 程序中为整型标志(introot)和字符串标志(filename)注册完成函数后的行为,验证当用户输入前缀时,系统是否能正确筛选并返回包含描述文本的完成项列表。", "query": "flag completion behavior test", "file": "completions_test.go", "symbol": "TestFlagCompletionInGo", "line": 1624, "lang": "zh", "candidates": [{"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "测试在 Go 程序中为整型标志(introot)和字符串标志(filename)注册完成函数后的行为,验证当用户输入前缀时,系统是否能正确筛选并返回包含描述文本的完成项列表。", "query": "flag completion behavior test", "file": "completions_test.go", "symbol": "TestFlagCompletionInGo", "line": 1624, "lang": "zh", "candidates": [{"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=121-144\nread TestStringInSlice for detail", "file": "cobra_test.go", "symbol": "TestStringInSlice", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=88-111\nread TestSingleCommand for detail", "file": "command_test.go", "symbol": "TestSingleCommand", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=233-256\nread TestMinimumNArgs_WithValid__WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=337-360\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1624-1647\nread TestFlagCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGo", "line": 1624, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completionsV2.go lines=482-505\nread GenBashCompletionV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionV2", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=339-362\nread TestExactArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=573-596\nread CommandPathPadding for detail", "file": "command.go", "symbol": "CommandPathPadding", "line": 573, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=177-200\nread TestExecuteContext for detail", "file": "command_test.go", "symbol": "TestExecuteContext", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=371-394\nread TestRangeArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=201-224\nread TestArbitraryArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Où est définie la fonction qui gère la logique de complétion pour les commandes utilisateur ?", "query": "user completion logic", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lang": "fr", "candidates": [{"text": "File: doc/util.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/util.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 39: os.Exit(1)", "file": "command_win.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 212: min = d[i][j-1]", "file": "cobra.go", "symbol": "", "line": 212, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 83: return nil", "file": "flag_groups.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1720: c.lflags = flag.NewFlagSet(c.DisplayName(), flag.ContinueOnError)", "file": "command.go", "symbol": "", "line": 1720, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 202: # may kick in if the program has not disabled it; in such a case, we want", "file": "bash_completionsV2.go", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 47: cobra.CheckErr(doc.GenMan(cmd, header, out))", "file": "doc/man_examples_test.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/util.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 111: func BenchmarkGenMarkdownToFile(b *testing.B) {", "file": "doc/md_docs_test.go", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 112: if [[ $(type -t compopt) == builtin ]]; then", "file": "bash_completionsV2.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 40: }", "file": "command_win.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 94: __%[1]s_debug \"Starting __%[1]s_perform_completion_once\"", "file": "fish_completions.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 790: sb.WriteString(\"\\n\\nDid you mean this?\\n\")", "file": "command.go", "symbol": "", "line": 790, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 755: // A completion command is already available", "file": "completions.go", "symbol": "", "line": 755, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 114: }", "file": "fish_completions_test.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 345: c.helpCommand.GroupID = groupID", "file": "command.go", "symbol": "", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 93: cmd.DisableAutoGenTag = c.DisableAutoGenTag", "file": "doc/md_docs.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 269: // MaximumNArgs", "file": "args_test.go", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 22: \"regexp\"", "file": "bash_completions_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 2: //", "file": "flag_groups_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 22: \"os\"", "file": "command_win.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 51: if err := GenReST(echoCmd, buf); err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2913: var userComp func(cmd *Command, args []string, toComplete string) ([]Completion, ShellCompDirective)", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Où est définie la fonction qui gère la logique de complétion pour les commandes utilisateur ?", "query": "user completion logic", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lang": "fr", "candidates": [{"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Où est définie la fonction qui gère la logique de complétion pour les commandes utilisateur ?", "query": "user completion logic", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lang": "fr", "candidates": [{"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Où est définie la fonction qui gère la logique de complétion pour les commandes utilisateur ?", "query": "user completion logic", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lang": "fr", "candidates": [{"text": "Next: read shell_completions.go lines=90-113\nread MarkPersistentFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagDirname", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=213-236\nread TestArbitraryArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValidOnly_WithInvalidArgs", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=160-183\nread FixedCompletions for detail", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=206-229\nread TestExecuteContextC for detail", "file": "command_test.go", "symbol": "TestExecuteContextC", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=382-405\nread SetGlobalNormalizationFunc for detail", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=85-108\nread AddTemplateFunc for detail", "file": "cobra.go", "symbol": "AddTemplateFunc", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=604-627\nread TestFlagInvalidInput for detail", "file": "command_test.go", "symbol": "TestFlagInvalidInput", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread right for detail", "file": "cobra.go", "symbol": "right", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=31-54\nread GenZshCompletion for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletion", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=526-549\nread UsageString for detail", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=281-304\nread SetArgs for detail", "file": "command.go", "symbol": "SetArgs", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=307-330\nread TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=31-54\nread genBashComp for detail", "file": "bash_completionsV2.go", "symbol": "genBashComp", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=37-60\nread ExampleGenMan for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenMan", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=170-193\nread RegisterFlagCompletionFunc for detail", "file": "completions.go", "symbol": "RegisterFlagCompletionFunc", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=261-284\nread TestBashCompletionTraverseChildren for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionTraverseChildren", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=748-771\nread InitDefaultCompletionCmd for detail", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Ich suche nach der Logik, die prüft, ob eine Kurzoption (Single-Character-Flag) in der Befehlszeilen-Flag-Definition keinen standardmäßigen Option-Wert erwartet. Die Funktion soll prüfen, ob das Flag definiert ist und ob sein 'NoOptDefVal'-Attribut leer ist. Wenn die Zeichenkette leer ist oder das Flag nicht gefunden wird, sollte false zurückgegeben werden.", "query": "flag no opt default", "file": "command.go", "symbol": "shortHasNoOptDefVal", "line": 662, "lang": "de", "candidates": [{"text": "File: command.go\nLine 662: func shortHasNoOptDefVal(name string, fs *flag.FlagSet) bool {", "file": "command.go", "symbol": "shortHasNoOptDefVal", "line": 662, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "active_help.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 213: func TestArbitraryArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "powershell_completions_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 22: test: install_deps", "file": "Makefile", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 196: set -l nospace (math (math --scale 0 $directive / $shellCompDirectiveNoSpace) %% 2)", "file": "fish_completions.go", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 49: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 15: package cobra", "file": "active_help.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 278: # MenuComplete will automatically show the ToolTip of", "file": "powershell_completions.go", "symbol": "", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 97: if [ -z \"${cur}\" ] && [ \"${lastChar}\" != \"=\" ]; then", "file": "bash_completions.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 427: if err == nil {", "file": "args_test.go", "symbol": "", "line": 427, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 413: # truncate the descriptions that are too long for the shell width", "file": "bash_completionsV2.go", "symbol": "", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 60: cmd.Stderr = os.Stderr", "file": "bash_completions_test.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 17: import (", "file": "bash_completionsV2_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 180: res = append(res, prefix...)", "file": "doc/rest_docs.go", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 133: set -l keeporder (math (math --scale 0 $directive / $shellCompDirectiveKeepOrder) %% 2)", "file": "fish_completions.go", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 101: yamlDoc.Description = forceMultiLine(cmd.Long)", "file": "doc/yaml_docs.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 94: cmd.InitDefaultHelpCmd()", "file": "doc/yaml_docs.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 23: func TestBashCompletionV2WithActiveHelp(t *testing.T) {", "file": "bash_completionsV2_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 107: if len(cmd.Example) > 0 {", "file": "doc/yaml_docs.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 294: # if a command required a flag, and we found it, unset must_have_one_flag()", "file": "bash_completions.go", "symbol": "", "line": 294, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 128: output, err = executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"thechild\", \"\")", "file": "active_help_test.go", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Ich suche nach der Logik, die prüft, ob eine Kurzoption (Single-Character-Flag) in der Befehlszeilen-Flag-Definition keinen standardmäßigen Option-Wert erwartet. Die Funktion soll prüfen, ob das Flag definiert ist und ob sein 'NoOptDefVal'-Attribut leer ist. Wenn die Zeichenkette leer ist oder das Flag nicht gefunden wird, sollte false zurückgegeben werden.", "query": "flag no opt default", "file": "command.go", "symbol": "shortHasNoOptDefVal", "line": 662, "lang": "de", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Ich suche nach der Logik, die prüft, ob eine Kurzoption (Single-Character-Flag) in der Befehlszeilen-Flag-Definition keinen standardmäßigen Option-Wert erwartet. Die Funktion soll prüfen, ob das Flag definiert ist und ob sein 'NoOptDefVal'-Attribut leer ist. Wenn die Zeichenkette leer ist oder das Flag nicht gefunden wird, sollte false zurückgegeben werden.", "query": "flag no opt default", "file": "command.go", "symbol": "shortHasNoOptDefVal", "line": 662, "lang": "de", "candidates": [{"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Ich suche nach der Logik, die prüft, ob eine Kurzoption (Single-Character-Flag) in der Befehlszeilen-Flag-Definition keinen standardmäßigen Option-Wert erwartet. Die Funktion soll prüfen, ob das Flag definiert ist und ob sein 'NoOptDefVal'-Attribut leer ist. Wenn die Zeichenkette leer ist oder das Flag nicht gefunden wird, sollte false zurückgegeben werden.", "query": "flag no opt default", "file": "command.go", "symbol": "shortHasNoOptDefVal", "line": 662, "lang": "de", "candidates": [{"text": "Next: read completions.go lines=632-655\nread completeRequireFlags for detail", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=133-156\nread GenMarkdownTreeCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTreeCustom", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=36-59\nread GenZshCompletionFileNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFileNoDesc", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1357-1380\nread TestValidArgsFuncSingleCmdInvalidArg for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=275-298\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=568-591\nread completionFn for detail", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=470-493\nread GenBashCompletionFileV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionFileV2", "line": 470, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=662-685\nread shortHasNoOptDefVal for detail", "file": "command.go", "symbol": "shortHasNoOptDefVal", "line": 662, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=201-224\nread directives for detail", "file": "completions.go", "symbol": "directives", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=377-400\nread TestRangeArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=110-133\nread noDuplicateArgsWithDuplicate for detail", "file": "args_test.go", "symbol": "noDuplicateArgsWithDuplicate", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=123-146\nread TestNoArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1384-1407\nread TestValidArgsFuncChildCmds for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmds", "line": 1384, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=701-724\nread GenBashCompletionFile for detail", "file": "bash_completions.go", "symbol": "GenBashCompletionFile", "line": 701, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=164-187\nread TestGenManTree for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManTree", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2323-2346\nread TestArgAliasesCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestArgAliasesCompletionInGo", "line": 2323, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "The logic for appending spaces to the end of a string up to a specific length is failing to meet the expected output in certain edge cases; I need to verify the implementation of the right-side padding utility.", "query": "string right padding", "file": "cobra_test.go", "symbol": "TestRpad", "line": 185, "lang": "en", "candidates": [{"text": "File: doc/yaml_docs.go\nLine 117: yamlDoc.InheritedOptions = genFlagResult(flags)", "file": "doc/yaml_docs.go", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 40: checkStringContains(t, output, echoSubCmd.Short)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1502: c.Println(\"DebugFlags called on\", c.Name())", "file": "command.go", "symbol": "", "line": 1502, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "powershell_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 70: buf := new(bytes.Buffer)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2594: root.AddCommand(s)", "file": "command_test.go", "symbol": "", "line": 2594, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/man_examples_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 41: checkStringContains(t, output, fmt.Sprintf(\"- %s - %s\", echoSubCmd.CommandPath(), echoSubCmd.Short))", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 182: for _, flagGroup := range tc.subCmdFlagGroupsExclusive {", "file": "flag_groups_test.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "bash_completionsV2_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 48: activeHelpCfg := os.Getenv(activeHelpGlobalEnvVar)", "file": "active_help.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 618: func (c *Command) VersionTemplate() string {", "file": "command.go", "symbol": "", "line": 618, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 223: defer file.Close()", "file": "doc/man_docs_test.go", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 107: defer os.Remove(tmpFile.Name())", "file": "fish_completions_test.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/yaml_docs.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 22: type PositionalArgs func(cmd *Command, args []string) error", "file": "args.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 47: }", "file": "doc/md_docs.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 259: if isSet {", "file": "flag_groups.go", "symbol": "", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 145: __%[1]s_extract_activeHelp", "file": "bash_completionsV2.go", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 95: for i := 0; i < b.N; i++ {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 28: Short: \"my test program\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 59: got := err.Error()", "file": "args_test.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 185: func TestRpad(t *testing.T) {", "file": "cobra_test.go", "symbol": "TestRpad", "line": 185, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: shell_completions.go\nLine 88: // implementations to limit completions for the named persistent flag to", "file": "shell_completions.go", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "The logic for appending spaces to the end of a string up to a specific length is failing to meet the expected output in certain edge cases; I need to verify the implementation of the right-side padding utility.", "query": "string right padding", "file": "cobra_test.go", "symbol": "TestRpad", "line": 185, "lang": "en", "candidates": [{"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "The logic for appending spaces to the end of a string up to a specific length is failing to meet the expected output in certain edge cases; I need to verify the implementation of the right-side padding utility.", "query": "string right padding", "file": "cobra_test.go", "symbol": "TestRpad", "line": 185, "lang": "en", "candidates": [{"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra_test.go -> strings", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> testing", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> path/filepath", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> runtime", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> text/template", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "The logic for appending spaces to the end of a string up to a specific length is failing to meet the expected output in certain edge cases; I need to verify the implementation of the right-side padding utility.", "query": "string right padding", "file": "cobra_test.go", "symbol": "TestRpad", "line": 185, "lang": "en", "candidates": [{"text": "Next: read completions_test.go lines=2607-2630\nread TestCompleteCompletion for detail", "file": "completions_test.go", "symbol": "TestCompleteCompletion", "line": 2607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=217-240\nread BenchmarkGenManToFile for detail", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=33-56\nread TestAddTemplateFunctions for detail", "file": "cobra_test.go", "symbol": "TestAddTemplateFunctions", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=121-144\nread TestStringInSlice for detail", "file": "cobra_test.go", "symbol": "TestStringInSlice", "line": 121, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=185-208\nread TestRpad for detail", "file": "cobra_test.go", "symbol": "TestRpad", "line": 185, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=43-66\nread expected for detail", "file": "cobra_test.go", "symbol": "expected", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=88-111\nread exactArgsWithInvalidCount for detail", "file": "args_test.go", "symbol": "exactArgsWithInvalidCount", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=37-60\nread ExampleGenMan for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenMan", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=30-53\nread markdownExtension for detail", "file": "doc/md_docs.go", "symbol": "markdownExtension", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=121-144\nread processFlagForGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=84-107\nread TestActiveHelpWithComps for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpWithComps", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=528-551\nread TestFlagShort for detail", "file": "command_test.go", "symbol": "TestFlagShort", "line": 528, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=27-50\nread TestGenYamlDoc for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDoc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=49-72\nread TestLevenshteinDistance for detail", "file": "cobra_test.go", "symbol": "TestLevenshteinDistance", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=27-50\nread assertNoErr for detail", "file": "cobra_test.go", "symbol": "assertNoErr", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=333-356\nread SetHelpFunc for detail", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=526-549\nread UsageString for detail", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=25-48\nread activeHelpMessage for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=93-116\nread GenYamlCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlCustom", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=629-652\nread writeCmdAliases for detail", "file": "bash_completions.go", "symbol": "writeCmdAliases", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=508-531\nread writeFlag for detail", "file": "bash_completions.go", "symbol": "writeFlag", "line": 508, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=693-716\nread GetSlice for detail", "file": "completions_test.go", "symbol": "GetSlice", "line": 693, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "¿Dónde se prueba que el comando funcione solo cuando coinciden exactamente todos los parámetros?", "query": "test exact arguments", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lang": "es", "candidates": [{"text": "File: args.go\nLine 78: return nil", "file": "args.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 795: // The completion command is not being called or being completed so we remove it.", "file": "completions.go", "symbol": "", "line": 795, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/rest_docs_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_notwin.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 113: # There is not directive specified", "file": "bash_completions.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 87: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 112: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 101: func checkStringOmits(t *testing.T, got, expected string) {", "file": "doc/cmd_test.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "powershell_completions_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "bash_completionsV2_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 20: )", "file": "active_help.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 510: format := \" flags+=(\\\"--%s\"", "file": "bash_completions.go", "symbol": "", "line": 510, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 5: // You may obtain a copy of the License at", "file": "zsh_completions_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 76: unexpected := \"Auto generated\"", "file": "doc/rest_docs_test.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 17: import (", "file": "doc/cmd_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 131: return err", "file": "args.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 223: }", "file": "bash_completions_test.go", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 83: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 33: if flags.HasAvailableFlags() {", "file": "doc/rest_docs.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 220: // If available, run shellcheck against the script.", "file": "bash_completions_test.go", "symbol": "", "line": 220, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 65: checkStringOmits(t, output, translate(deprecatedCmd.Name()))", "file": "doc/man_docs_test.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 60: rootCmd := &Command{Use: \"root-dash\", Args: NoArgs, Run: emptyRun}", "file": "fish_completions_test.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 321: func TestExactArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "¿Dónde se prueba que el comando funcione solo cuando coinciden exactamente todos los parámetros?", "query": "test exact arguments", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lang": "es", "candidates": [{"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestExactArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "¿Dónde se prueba que el comando funcione solo cuando coinciden exactamente todos los parámetros?", "query": "test exact arguments", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lang": "es", "candidates": [{"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "¿Dónde se prueba que el comando funcione solo cuando coinciden exactamente todos los parámetros?", "query": "test exact arguments", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lang": "es", "candidates": [{"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1357-1380\nread TestValidArgsFuncSingleCmdInvalidArg for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=96-119\nread MarkFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=321-344\nread TestExactArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/rest_docs.go lines=62-85\nread GenReSTCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTCustom", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=308-331\nread aCmdArgs for detail", "file": "command_test.go", "symbol": "aCmdArgs", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=53-76\nread GenYamlTree for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTree", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=338-361\nread SetHelpCommand for detail", "file": "command.go", "symbol": "SetHelpCommand", "line": 338, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=143-166\nread manPreamble for detail", "file": "doc/man_docs.go", "symbol": "manPreamble", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=225-248\nread stringInSlice for detail", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=149-172\nread TestManPrintFlagsHidesShortDeprecated for detail", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=36-59\nread GenZshCompletionFileNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFileNoDesc", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=174-197\nread res for detail", "file": "doc/rest_docs.go", "symbol": "res", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=311-334\nread SliceValue for detail", "file": "completions.go", "symbol": "SliceValue", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2787-2810\nread TestCompleteWithDisableFlagParsing for detail", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Es scheint ein Problem mit der Testanordnung zu geben: Ein Befehl, der nur für Testzwecke erstellt wurde, scheint keine korrekte Handlungsanweisung oder ein spezifisches Argument in der Definition zu haben, was zu Fehlern bei der Testausführung führen könnte.", "query": "dummy command test", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lang": "de", "candidates": [{"text": "File: completions_test.go\nLine 1964: expected = strings.Join([]string{", "file": "completions_test.go", "symbol": "", "line": 1964, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 250: t.Errorf(\"Unexpected error: %v\", err)", "file": "active_help_test.go", "symbol": "", "line": 250, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 79: }", "file": "shell_completions.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 30: // check that active help is not being disabled", "file": "bash_completionsV2_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 47: if err := GenMarkdown(dummyCmd, buf); err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nLine 311: type SliceValue interface {", "file": "completions.go", "symbol": "", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 585: childCmd := &Command{Use: \"child\", Run: emptyRun}", "file": "command_test.go", "symbol": "", "line": 585, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 64: defer os.RemoveAll(tmpdir)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 21: )", "file": "bash_completionsV2_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 91: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "powershell_completions_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 48: activeHelpCfg := os.Getenv(activeHelpGlobalEnvVar)", "file": "active_help.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 346: t.Errorf(\"Unexpected error: %v\", err)", "file": "active_help_test.go", "symbol": "", "line": 346, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 254: output := buf.String()", "file": "bash_completions_test.go", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 6: //", "file": "command_notwin.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 78: {", "file": "cobra_test.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_notwin.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 20: import (", "file": "command_win.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 55: var EnablePrefixMatching = defaultPrefixMatching", "file": "cobra.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2311: c := &Command{Use: \"c\", Run: emptyRun}", "file": "command_test.go", "symbol": "", "line": 2311, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 27: // - subcommands will always accept arbitrary arguments", "file": "args.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 13: // limitations under the License.", "file": "zsh_completions_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 90: var dummyCmd = &cobra.Command{", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Es scheint ein Problem mit der Testanordnung zu geben: Ein Befehl, der nur für Testzwecke erstellt wurde, scheint keine korrekte Handlungsanweisung oder ein spezifisches Argument in der Definition zu haben, was zu Fehlern bei der Testausführung führen könnte.", "query": "dummy command test", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lang": "de", "candidates": [{"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\ndefines dummyCmd", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nsibling in doc", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Es scheint ein Problem mit der Testanordnung zu geben: Ein Befehl, der nur für Testzwecke erstellt wurde, scheint keine korrekte Handlungsanweisung oder ein spezifisches Argument in der Definition zu haben, was zu Fehlern bei der Testausführung führen könnte.", "query": "dummy command test", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lang": "de", "candidates": [{"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> github.com/spf13/cobra", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Es scheint ein Problem mit der Testanordnung zu geben: Ein Befehl, der nur für Testzwecke erstellt wurde, scheint keine korrekte Handlungsanweisung oder ein spezifisches Argument in der Definition zu haben, was zu Fehlern bei der Testausführung führen könnte.", "query": "dummy command test", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lang": "de", "candidates": [{"text": "Next: read doc/man_docs.go lines=187-210\nread manPrintOptions for detail", "file": "doc/man_docs.go", "symbol": "manPrintOptions", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=696-719\nread nonCompletableFlag for detail", "file": "bash_completions.go", "symbol": "nonCompletableFlag", "line": 696, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=781-804\nread findSuggestions for detail", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=86-109\nread BenchmarkGenYamlToFile for detail", "file": "doc/yaml_docs_test.go", "symbol": "BenchmarkGenYamlToFile", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions_test.go lines=23-46\nread TestZshCompletionWithActiveHelp for detail", "file": "zsh_completions_test.go", "symbol": "TestZshCompletionWithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=311-334\nread SliceValue for detail", "file": "completions.go", "symbol": "SliceValue", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=114-137\nread Gt for detail", "file": "cobra.go", "symbol": "Gt", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2461-2484\nread TestDefaultCompletionCmd for detail", "file": "completions_test.go", "symbol": "TestDefaultCompletionCmd", "line": 2461, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=819-842\nread childCmdArgs for detail", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=295-318\nread TestMaximumNArgs_WithMoreArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs", "line": 295, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=30-53\nread printOptionsReST for detail", "file": "doc/rest_docs.go", "symbol": "printOptionsReST", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=90-113\nread dummyCmd for detail", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "find tests checking error handling when passing fewer than required arguments to a command", "query": "minimum args test", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid", "line": 251, "lang": "en", "candidates": [{"text": "File: bash_completions.go\nLine 358: if [[ -n ${last_command} ]]; then", "file": "bash_completions.go", "symbol": "", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 13: // limitations under the License.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 2: //", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 95: Title string", "file": "doc/man_docs.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 13: // limitations under the License.", "file": "powershell_completions_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 50: //", "file": "shell_completions.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "zsh_completions_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 930: if err != nil {", "file": "completions_test.go", "symbol": "", "line": 930, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 166: Name: flag.Name,", "file": "doc/yaml_docs.go", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 442: output, err := executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"\")", "file": "completions_test.go", "symbol": "", "line": 442, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 54: checkStringOmits(t, output, \"Auto generated\")", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 167: }", "file": "active_help_test.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 18: \"fmt\"", "file": "args.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 229: }", "file": "active_help_test.go", "symbol": "", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 64: }", "file": "args.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 251: func TestMinimumNArgs_WithLessArgs_WithValid(t *testing.T) {", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid", "line": 251, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help_test.go\nLine 100: comps = AppendActiveHelp(comps, activeHelpMessage)", "file": "active_help_test.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 752: (len(arg) >= 2 && arg[0] == '-' && arg[1] != '-'))", "file": "command.go", "symbol": "", "line": 752, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/man_examples_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 148: switch av.Kind() {", "file": "cobra.go", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 113: buf.WriteString(\"###### Auto generated by spf13/cobra on \" + time.Now().Format(\"2-Jan-2006\") + \"\\n\")", "file": "doc/md_docs.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 34: cobra.CheckErr(doc.GenManTree(cmd, header, \"/tmp\"))", "file": "doc/man_examples_test.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 28: // Define lots of flags to utilize for testing.", "file": "flag_groups_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 702: // Flag has full name", "file": "completions.go", "symbol": "", "line": 702, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "find tests checking error handling when passing fewer than required arguments to a command", "query": "minimum args test", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid", "line": 251, "lang": "en", "candidates": [{"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestMinimumNArgs_WithLessArgs_WithValid", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "find tests checking error handling when passing fewer than required arguments to a command", "query": "minimum args test", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid", "line": 251, "lang": "en", "candidates": [{"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "find tests checking error handling when passing fewer than required arguments to a command", "query": "minimum args test", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid", "line": 251, "lang": "en", "candidates": [{"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=48-71\nread defaultCaseInsensitive for detail", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=89-112\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=157-180\nread TestNoCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2926-2949\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2926, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=59-82\nread TestProgWithDash for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithDash", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=684-707\nread Set for detail", "file": "completions_test.go", "symbol": "Set", "line": 684, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2187-2210\nread TestFlagCompletionInGoWithDesc for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGoWithDesc", "line": 2187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=94-117\nread TestGenMdTree for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdTree", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=58-81\nread activeHelpEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=998-1021\nread configEnvVarSuffixDescriptions for detail", "file": "completions.go", "symbol": "configEnvVarSuffixDescriptions", "line": 998, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=251-274\nread TestMinimumNArgs_WithLessArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid", "line": 251, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=828-851\nread parentFlagValue for detail", "file": "command_test.go", "symbol": "parentFlagValue", "line": 828, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1038-1061\nread TestFlagFileExtFilterCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagFileExtFilterCompletionInGo", "line": 1038, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=444-467\nread UsageFunc for detail", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=149-172\nread TestManPrintFlagsHidesShortDeprecated for detail", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=80-103\nread genZshCompletion for detail", "file": "zsh_completions.go", "symbol": "genZshCompletion", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=580-603\nread minNamePadding for detail", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "I am working on sanitizing environment variable names for configuration prefixes. Please help me find the regular expression that matches any character not being an uppercase letter, digit, or underscore.", "query": "config env var prefix", "file": "completions.go", "symbol": "configEnvVarPrefixSubstRegexp", "line": 1001, "lang": "en", "candidates": [{"text": "File: fish_completions.go\nLine 245: return 0", "file": "fish_completions.go", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "active_help.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 122: if err != nil {", "file": "fish_completions_test.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 75: seen[arg] = struct{}{}", "file": "args.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 193: })", "file": "flag_groups_test.go", "symbol": "", "line": 193, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 78: Use: \"deprecated [can't do anything here]\",", "file": "doc/cmd_test.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 6: //", "file": "args_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 1001: var configEnvVarPrefixSubstRegexp = regexp.MustCompile(`[^A-Z0-9_]`)", "file": "completions.go", "symbol": "configEnvVarPrefixSubstRegexp", "line": 1001, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nLine 420: }", "file": "command_test.go", "symbol": "", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 84: // template generation.", "file": "cobra.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 67: t: \"hello\",", "file": "cobra_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 15: package doc", "file": "doc/util.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 156: if ($Longest -lt $Name.Length) {", "file": "powershell_completions.go", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 124: }", "file": "fish_completions_test.go", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 60: checkStringContains(t, output, translate(echoCmd.Name()))", "file": "doc/man_docs_test.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 5: $(warning \"could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh\")", "file": "Makefile", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 218: }", "file": "flag_groups.go", "symbol": "", "line": 218, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 211: \"\"", "file": "powershell_completions.go", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 84: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "cobra.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 115: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 5: // You may obtain a copy of the License at", "file": "fish_completions.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 352: func (c *Command) SetCompletionCommandGroupID(groupID string) {", "file": "command.go", "symbol": "", "line": 352, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "I am working on sanitizing environment variable names for configuration prefixes. Please help me find the regular expression that matches any character not being an uppercase letter, digit, or underscore.", "query": "config env var prefix", "file": "completions.go", "symbol": "configEnvVarPrefixSubstRegexp", "line": 1001, "lang": "en", "candidates": [{"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "I am working on sanitizing environment variable names for configuration prefixes. Please help me find the regular expression that matches any character not being an uppercase letter, digit, or underscore.", "query": "config env var prefix", "file": "completions.go", "symbol": "configEnvVarPrefixSubstRegexp", "line": 1001, "lang": "en", "candidates": [{"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "I am working on sanitizing environment variable names for configuration prefixes. Please help me find the regular expression that matches any character not being an uppercase letter, digit, or underscore.", "query": "config env var prefix", "file": "completions.go", "symbol": "configEnvVarPrefixSubstRegexp", "line": 1001, "lang": "en", "candidates": [{"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=25-48\nread genFishComp for detail", "file": "fish_completions.go", "symbol": "genFishComp", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1001-1024\nread configEnvVarPrefixSubstRegexp for detail", "file": "completions.go", "symbol": "configEnvVarPrefixSubstRegexp", "line": 1001, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args.go lines=127-150\nread MatchAll for detail", "file": "args.go", "symbol": "MatchAll", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=58-81\nread activeHelpEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=307-330\nread TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs_test.go lines=86-109\nread BenchmarkGenYamlToFile for detail", "file": "doc/yaml_docs_test.go", "symbol": "BenchmarkGenYamlToFile", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=38-61\nread GenManTree for detail", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=262-285\nread TestRootUnknownCommandSilenced for detail", "file": "command_test.go", "symbol": "TestRootUnknownCommandSilenced", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2381-2404\nread TestCompleteHelp for detail", "file": "completions_test.go", "symbol": "TestCompleteHelp", "line": 2381, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=281-304\nread SetArgs for detail", "file": "command.go", "symbol": "SetArgs", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=94-117\nread TestGenMdTree for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdTree", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=580-603\nread minNamePadding for detail", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=105-128\nread GenMan for detail", "file": "doc/man_docs.go", "symbol": "GenMan", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=74-97\nread TestProgWithColon for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithColon", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "I need to check if we have a command to run the static analysis tools. Is there a way to trigger the linter through the build system?", "query": "lint run", "file": "Makefile", "symbol": "lint", "line": 18, "lang": "en", "candidates": [{"text": "File: flag_groups_test.go\nLine 180: sub.MarkFlagsOneRequired(strings.Split(flagGroup, \" \")...)", "file": "flag_groups_test.go", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 38: buf.WriteString(\"```\\n\\n\")", "file": "doc/md_docs.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 246: $CompletionText = $($comp.Name | __%[1]s_escapeStringWithSpecialChars) + $Space", "file": "powershell_completions.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 21: \"github.com/spf13/cobra\"", "file": "doc/man_examples_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 204: return fmt.Errorf(\"if any flags in the group [%v] are set none of the others can be; %v were all set\", flagList, set)", "file": "flag_groups.go", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 139: rootCmd := &Command{Use: \"root\", Args: NoArgs, Run: emptyRun}", "file": "command_test.go", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 118: expectErr: `at least one of the flags in the group [a b] is required`,", "file": "flag_groups_test.go", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 174: t.Fatalf(\"GenManTree failed: %s\", err.Error())", "file": "doc/man_docs_test.go", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 28: output := buf.String()", "file": "zsh_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 343: if __%[1]s_contains_word \"${words[c]}\" \"${must_have_one_noun[@]}\"; then", "file": "bash_completions.go", "symbol": "", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 634: _, err = executeCommand(rootCmd, \"--intf=8\", \"child\")", "file": "command_test.go", "symbol": "", "line": 634, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 36: func writePreamble(buf io.StringWriter, name string) {", "file": "bash_completions.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 31: }", "file": "cobra_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 151: c.Flags().StringP(\"foo\", \"f\", \"default\", \"Foo flag\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 136: }", "file": "cobra.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 18: lint:", "file": "Makefile", "symbol": "lint", "line": 18, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra.go\nLine 103: // OnFinalize sets the passed functions to be run when each command's", "file": "cobra.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_notwin.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 152: expected := \"Error: unknown command \\\"unknown\\\" for \\\"root\\\"\\nRun 'root --help' for usage.\\n\"", "file": "command_test.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 167: return err", "file": "doc/rest_docs.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 52: checkStringContains(t, output, dummyCmd.Example)", "file": "doc/md_docs_test.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 870: if suggestByLevenshtein || suggestByPrefix {", "file": "command.go", "symbol": "", "line": 870, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 184: }", "file": "doc/rest_docs.go", "symbol": "", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 141: subCmdFlagGroupsOneRequired: []string{\"e subonly\"},", "file": "flag_groups_test.go", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "I need to check if we have a command to run the static analysis tools. Is there a way to trigger the linter through the build system?", "query": "lint run", "file": "Makefile", "symbol": "lint", "line": 18, "lang": "en", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\ndefines lint", "file": "Makefile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "I need to check if we have a command to run the static analysis tools. Is there a way to trigger the linter through the build system?", "query": "lint run", "file": "Makefile", "symbol": "lint", "line": 18, "lang": "en", "candidates": [{"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1001-1024\nread configEnvVarPrefixSubstRegexp for detail", "file": "completions.go", "symbol": "configEnvVarPrefixSubstRegexp", "line": 1001, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=81-104\nread ValidateFlagGroups for detail", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=245-268\nread TestDeadcodeElimination for detail", "file": "cobra_test.go", "symbol": "TestDeadcodeElimination", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=560-583\nread minUsagePadding for detail", "file": "command.go", "symbol": "minUsagePadding", "line": 560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=262-285\nread TestRootUnknownCommandSilenced for detail", "file": "command_test.go", "symbol": "TestRootUnknownCommandSilenced", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=107-130\nread CompletionOptions for detail", "file": "completions.go", "symbol": "CompletionOptions", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=90-113\nread dummyCmd for detail", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=18-41\nread lint for detail", "file": "Makefile", "symbol": "lint", "line": 18, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=59-82\nread EnableCommandSorting for detail", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=307-330\nread TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=593-616\nread writeRequiredFlag for detail", "file": "bash_completions.go", "symbol": "writeRequiredFlag", "line": 593, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=161-184\nread TestOnlyValidArgs_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs_WithInvalidArgs", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=75-98\nread TestGenYamlDocRunnable for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDocRunnable", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=266-289\nread TestConfigActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestConfigActiveHelp", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=66-89\nread MarkZshCompPositionalArgumentWords for detail", "file": "zsh_completions.go", "symbol": "MarkZshCompPositionalArgumentWords", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=248-271\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "查找从参数列表中移除特定值且避开命令行标志值的逻辑", "query": "remove first arg skip flags", "file": "command.go", "symbol": "argsMinusFirstX", "line": 715, "lang": "zh", "candidates": [{"text": "File: args.go\nLine 135: }", "file": "args.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 79: }", "file": "shell_completions.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 98: # If the last parameter is complete (there is a space following it)", "file": "bash_completions.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 165: c := &cobra.Command{Use: \"do [OPTIONS] arg1 arg2\"}", "file": "doc/man_docs_test.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 5: $(warning \"could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh\")", "file": "Makefile", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 56: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 272: ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs, ShellCompDirectiveKeepOrder, activeHelpEnvVar(name)))", "file": "fish_completions.go", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 206: if ($Values.Length -eq 0) {", "file": "powershell_completions.go", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 27: assertNoErr(t, c.GenPowerShellCompletion(buf))", "file": "powershell_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 32: check(t, output, fmt.Sprintf(\"${env:%s}=0\", activeHelpVar))", "file": "powershell_completions_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 47: f.Hidden = true", "file": "doc/rest_docs_test.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 715: func (c *Command) argsMinusFirstX(args []string, x string) []string {", "file": "command.go", "symbol": "argsMinusFirstX", "line": 715, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/yaml_docs.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 172: for _, tt := range tests {", "file": "cobra_test.go", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 236: processFlagForGroupAnnotation(flags, pflag, oneRequiredAnnotation, oneRequiredGroupStatus)", "file": "flag_groups.go", "symbol": "", "line": 236, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 147: comps = AppendActiveHelp(comps, activeHelpMessage)", "file": "active_help_test.go", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 34: checkStringContains(t, output, echoCmd.Long)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 148: # - Return false if file completion should be performed", "file": "fish_completions.go", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 13: // limitations under the License.", "file": "args.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/util.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 137: subCmdFlagGroupsRequired: []string{\"e subonly\"},", "file": "flag_groups_test.go", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 67: if opts.CommandSeparator != \"\" {", "file": "doc/man_docs.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 33: }", "file": "powershell_completions_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 5: // You may obtain a copy of the License at", "file": "powershell_completions_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "查找从参数列表中移除特定值且避开命令行标志值的逻辑", "query": "remove first arg skip flags", "file": "command.go", "symbol": "argsMinusFirstX", "line": 715, "lang": "zh", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "查找从参数列表中移除特定值且避开命令行标志值的逻辑", "query": "remove first arg skip flags", "file": "command.go", "symbol": "argsMinusFirstX", "line": 715, "lang": "zh", "candidates": [{"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "查找从参数列表中移除特定值且避开命令行标志值的逻辑", "query": "remove first arg skip flags", "file": "command.go", "symbol": "argsMinusFirstX", "line": 715, "lang": "zh", "candidates": [{"text": "Next: read args_test.go lines=245-268\nread TestMinimumNArgs_WithLessArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=50-73\nread Len for detail", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=715-738\nread argsMinusFirstX for detail", "file": "command.go", "symbol": "argsMinusFirstX", "line": 715, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read flag_groups.go lines=209-232\nread sortedKeys for detail", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=30-53\nread BashCompFilenameExt for detail", "file": "bash_completions.go", "symbol": "BashCompFilenameExt", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1160-1183\nread TestFlagDirFilterCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagDirFilterCompletionInGo", "line": 1160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=74-97\nread TestProgWithColon for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithColon", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=141-164\nread TestNoArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=371-394\nread TestRangeArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions_test.go lines=23-46\nread TestPwshCompletionNoActiveHelp for detail", "file": "powershell_completions_test.go", "symbol": "TestPwshCompletionNoActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=266-289\nread TestConfigActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestConfigActiveHelp", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=127-150\nread MatchAll for detail", "file": "args.go", "symbol": "MatchAll", "line": 127, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "find the function that provides shell completion logic by comparing command arguments and the partial input string", "query": "shell completion helper", "file": "completions_test.go", "symbol": "_", "line": 2929, "lang": "en", "candidates": [{"text": "File: completions_test.go\nLine 2929: var _ func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) = userComp //nolint:staticcheck // LHS type is needed for this use case", "file": "completions_test.go", "symbol": "_", "line": 2929, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions.go\nLine 359: next_command=\"_${last_command}_${words[c]//:/__}\"", "file": "bash_completions.go", "symbol": "", "line": 359, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nLine 56: }", "file": "doc/man_docs.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 64: }", "file": "args.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 27: // We generate on subcommand so we have both subcommands and parents.", "file": "doc/md_docs_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 89: link = strings.ReplaceAll(link, \" \", \"_\")", "file": "doc/md_docs.go", "symbol": "", "line": 89, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "bash_completionsV2_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 215: },", "file": "cobra_test.go", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 23: func TestPwshCompletionNoActiveHelp(t *testing.T) {", "file": "powershell_completions_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 18: \"github.com/spf13/pflag\"", "file": "shell_completions.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 33: _, output, err = executeCommandC(root, args...)", "file": "command_test.go", "symbol": "", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nLine 29: for _, v := range []string{\"a\", \"b\", \"c\", \"d\"} {", "file": "flag_groups_test.go", "symbol": "", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nLine 240: _ = rootCmd.RegisterFlagCompletionFunc(flagname, func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) {", "file": "active_help_test.go", "symbol": "", "line": 240, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nLine 48: t.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 377: fi", "file": "bash_completions.go", "symbol": "", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 151: c.Flags().StringP(\"foo\", \"f\", \"default\", \"Foo flag\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 82: // limit completions for the named flag to directory names.", "file": "shell_completions.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 74: // This will only work for bash completion.", "file": "shell_completions.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 15: package doc_test", "file": "doc/man_examples_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 460: expected := `unknown command \"illegal\" for \"root child\"`", "file": "args_test.go", "symbol": "", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 56: for _, v := range cmd.ValidArgs {", "file": "args.go", "symbol": "", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nLine 78: if err == nil {", "file": "args_test.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 272: if [[ \"${#COMPREPLY[@]}\" -eq \"1\" ]] && [[ $(type -t compopt) = \"builtin\" ]] && [[ \"${COMPREPLY[0]}\" == --*= ]]; then", "file": "bash_completions.go", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 51: func (s byName) Swap(i, j int) { s[i], s[j] = s[j], s[i] }", "file": "doc/util.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "find the function that provides shell completion logic by comparing command arguments and the partial input string", "query": "shell completion helper", "file": "completions_test.go", "symbol": "_", "line": 2929, "lang": "en", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "cobra", "task": "find the function that provides shell completion logic by comparing command arguments and the partial input string", "query": "shell completion helper", "file": "completions_test.go", "symbol": "_", "line": 2929, "lang": "en", "candidates": [{"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "find the function that provides shell completion logic by comparing command arguments and the partial input string", "query": "shell completion helper", "file": "completions_test.go", "symbol": "_", "line": 2929, "lang": "en", "candidates": [{"text": "Next: read doc/yaml_docs.go lines=60-83\nread GenYamlTreeCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTreeCustom", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=201-224\nread TestArbitraryArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=748-771\nread InitDefaultCompletionCmd for detail", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=87-110\nread genZshComp for detail", "file": "zsh_completions.go", "symbol": "genZshComp", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=26-49\nread TestGenRSTDoc for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=357-380\nread TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=143-166\nread manPreamble for detail", "file": "doc/man_docs.go", "symbol": "manPreamble", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=279-302\nread TestBashCompletionNoActiveHelp for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionNoActiveHelp", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2929-2952\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2929, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions.go lines=593-616\nread writeRequiredFlag for detail", "file": "bash_completions.go", "symbol": "writeRequiredFlag", "line": 593, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=232-255\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=18-41\nread lint for detail", "file": "Makefile", "symbol": "lint", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "不正な引数で有効な引数のみが許可される範囲チェックのテストを実行する", "query": "range args test invalid", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lang": "ja", "candidates": [{"text": "File: args_test.go\nLine 413: func TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command.go\nLine 1429: c.commandsMaxNameLen = nameLen", "file": "command.go", "symbol": "", "line": 1429, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 98: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1783: t.Errorf(\"Expected %q at %d, got nothing\", exp, idx)", "file": "command_test.go", "symbol": "", "line": 1783, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 24: go test -v $(GO_TEST_FLAGS) ./...", "file": "Makefile", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 30: // check that active help is not being disabled", "file": "bash_completionsV2_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 75: }", "file": "doc/cmd_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 116: flagGroupsExclusive: []string{\"e f\"},", "file": "flag_groups_test.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 31: t.Fatal(err)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "powershell_completions_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2028: output, err = executeCommand(rootCmd, ShellCompRequestCmd, \"child\", \"--\", \"--validarg\", \"--toComp=ab\")", "file": "completions_test.go", "symbol": "", "line": 2028, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "powershell_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 248: }", "file": "cobra_test.go", "symbol": "", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 26: richtest: install_deps", "file": "Makefile", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 89: link = strings.ReplaceAll(link, \" \", \"_\")", "file": "doc/md_docs.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 126: desc: \"Persistent flags utilize required and exclusive groups and can pass\",", "file": "flag_groups_test.go", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 12: // See the License for the specific language governing permissions and", "file": "bash_completionsV2.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 6: //", "file": "doc/util.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 339: if len(rootCmd.Commands()) == 1 {", "file": "completions.go", "symbol": "", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 34: checkStringContains(t, output, echoCmd.Long)", "file": "doc/md_docs_test.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 35: buf := new(bytes.Buffer)", "file": "fish_completions_test.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 48: type byName []*cobra.Command", "file": "doc/util.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3492: desc: \"no completion after -v flag even with other flag completions\",", "file": "completions_test.go", "symbol": "", "line": 3492, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 45: return s", "file": "doc/util.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "不正な引数で有効な引数のみが許可される範囲チェックのテストを実行する", "query": "range args test invalid", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lang": "ja", "candidates": [{"text": "File: args_test.go\ndefines TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "不正な引数で有効な引数のみが許可される範囲チェックのテストを実行する", "query": "range args test invalid", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lang": "ja", "candidates": [{"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "不正な引数で有効な引数のみが許可される範囲チェックのテストを実行する", "query": "range args test invalid", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lang": "ja", "candidates": [{"text": "Next: read powershell_completions_test.go lines=23-46\nread TestPwshCompletionNoActiveHelp for detail", "file": "powershell_completions_test.go", "symbol": "TestPwshCompletionNoActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=466-489\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=58-81\nread TestGenMdNoHiddenParents for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=680-703\nread String for detail", "file": "completions_test.go", "symbol": "String", "line": 680, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=57-80\nread TestGenYamlTree for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlTree", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=464-487\nread getUsageTemplateFunc for detail", "file": "command.go", "symbol": "getUsageTemplateFunc", "line": 464, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=328-351\nread SetFlagErrorFunc for detail", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=520-543\nread Help for detail", "file": "command.go", "symbol": "Help", "line": 520, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=654-677\nread hasNoOptDefVal for detail", "file": "command.go", "symbol": "hasNoOptDefVal", "line": 654, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=652-675\nread gen for detail", "file": "bash_completions.go", "symbol": "gen", "line": 652, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=955-978\nread CompDebug for detail", "file": "completions.go", "symbol": "CompDebug", "line": 955, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=67-90\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=741-764\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 741, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=696-719\nread nonCompletableFlag for detail", "file": "bash_completions.go", "symbol": "nonCompletableFlag", "line": 696, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=217-240\nread BenchmarkGenManToFile for detail", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "在生成帮助文档的帮助信息时,如果一个参数被标记为弃用,生成的文档输出中仍然包含了它的简写形式,这不符合预期,应该在文档中隐藏掉简写部分。", "query": "man print flags deprecated", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lang": "zh", "candidates": [{"text": "File: doc/rest_docs.go\nLine 103: ref = strings.ReplaceAll(pname, \" \", \"_\")", "file": "doc/rest_docs.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 759: \":4\",", "file": "completions_test.go", "symbol": "", "line": 759, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 160: flags.VisitAll(func(flag *pflag.Flag) {", "file": "doc/man_docs.go", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 28: output := buf.String()", "file": "powershell_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 79: flagGroupsRequired: []string{\"a b c\", \"a d\"},", "file": "flag_groups_test.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2211: }", "file": "command_test.go", "symbol": "", "line": 2211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 202: # we need to count the number of valid completions.", "file": "fish_completions.go", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 77: buf.WriteString(name + \"\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/util.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 6: //", "file": "doc/cmd_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 166: Name: flag.Name,", "file": "doc/yaml_docs.go", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 111: assertNoErr(t, rootCmd.Flags().SetAnnotation(\"theme\", BashCompSubdirsInDir, []string{\"themes\"}))", "file": "bash_completions_test.go", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 74: output := buf.String()", "file": "doc/rest_docs_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 61: f := rootCmd.PersistentFlags().Lookup(name)", "file": "doc/md_docs_test.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 683: Loop:", "file": "command.go", "symbol": "", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 149: func TestManPrintFlagsHidesShortDeprecated(t *testing.T) {", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "fish_completions_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_notwin.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2070: \"myval\",", "file": "completions_test.go", "symbol": "", "line": 2070, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 153: }", "file": "completions.go", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 216: }", "file": "doc/man_docs.go", "symbol": "", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 95: __%[1]s_debug \"New WordToComplete: $WordToComplete\"", "file": "powershell_completions.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 115: (($PSVersionTable.PsVersion -ge [version]'7.3.0' -or [ExperimentalFeature]::IsEnabled(\"PSNativeCommandArgumentPassing\")) -and", "file": "powershell_completions.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "在生成帮助文档的帮助信息时,如果一个参数被标记为弃用,生成的文档输出中仍然包含了它的简写形式,这不符合预期,应该在文档中隐藏掉简写部分。", "query": "man print flags deprecated", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lang": "zh", "candidates": [{"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\ndefines TestManPrintFlagsHidesShortDeprecated", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_win.go\nelsewhere in the tree", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nelsewhere in the tree", "file": "Makefile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "在生成帮助文档的帮助信息时,如果一个参数被标记为弃用,生成的文档输出中仍然包含了它的简写形式,这不符合预期,应该在文档中隐藏掉简写部分。", "query": "man print flags deprecated", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lang": "zh", "candidates": [{"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> os", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> path/filepath", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> github.com/spf13/cobra", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs_test.go -> strings", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> fmt", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> testing", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "在生成帮助文档的帮助信息时,如果一个参数被标记为弃用,生成的文档输出中仍然包含了它的简写形式,这不符合预期,应该在文档中隐藏掉简写部分。", "query": "man print flags deprecated", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lang": "zh", "candidates": [{"text": "Next: read args_test.go lines=129-152\nread TestNoArgs_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithArgs", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=30-53\nread install_deps for detail", "file": "Makefile", "symbol": "install_deps", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=633-656\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=567-590\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups_test.go lines=22-45\nread TestValidateFlagGroups for detail", "file": "flag_groups_test.go", "symbol": "TestValidateFlagGroups", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=580-603\nread minNamePadding for detail", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=289-312\nread SetOutput for detail", "file": "command.go", "symbol": "SetOutput", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=149-172\nread TestManPrintFlagsHidesShortDeprecated for detail", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_notwin.go lines=20-43\nread preExecHookFn for detail", "file": "command_notwin.go", "symbol": "preExecHookFn", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=90-113\nread shellCompDirectiveMaxValue for detail", "file": "completions.go", "symbol": "shellCompDirectiveMaxValue", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=43-66\nread TestGenRSTNoHiddenParents for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoHiddenParents", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=997-1020\nread configEnvVarGlobalPrefix for detail", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=81-104\nread TestGenMdNoTag for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoTag", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=62-85\nread ShellCompDirectiveNoSpace for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoSpace", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=24-47\nread genBashCompletion for detail", "file": "bash_completionsV2.go", "symbol": "genBashCompletion", "line": 24, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "테스트 코드에서 특정 문자열이 포함되어 있는지 검증할 때, 기대하는 값이 결과값에 존재하지 않으면 테스트 실패 메시지를 출력하도록 하는 로직을 찾아줘.", "query": "test contains error", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lang": "ko", "candidates": [{"text": "File: doc/rest_docs_test.go\nLine 77: checkStringOmits(t, output, unexpected)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 220: # able to check what the actual completion will be.", "file": "fish_completions.go", "symbol": "", "line": 220, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\nLine 245: nonPersistentFlag.Changed = false", "file": "completions_test.go", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 30: // check that active help is being disabled", "file": "powershell_completions_test.go", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nLine 175: __%[1]s_debug \"ShellCompDirectiveNoSpace is called\"", "file": "powershell_completions.go", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1028: // Call the help on the root command and check the new template is used", "file": "command_test.go", "symbol": "", "line": 1028, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nLine 1554: return true", "file": "command.go", "symbol": "", "line": 1554, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 250: // check that a simple program using cobra in its default configuration is", "file": "cobra_test.go", "symbol": "", "line": 250, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "powershell_completions_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 471: outFile, err := os.Create(filename)", "file": "bash_completionsV2.go", "symbol": "", "line": 471, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 118: }", "file": "active_help_test.go", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 30: ValidArgsFunction: validArgsFunc,", "file": "fish_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1864: return", "file": "command.go", "symbol": "", "line": 1864, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 880: Short: fmt.Sprintf(shortDesc, \"fish\"),", "file": "completions.go", "symbol": "", "line": 880, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1557: check(t, output, \"has_completion_function=1\")", "file": "completions_test.go", "symbol": "", "line": 1557, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nLine 169: func TestMultiActiveHelp(t *testing.T) {", "file": "active_help_test.go", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 63: }", "file": "shell_completions.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3695: cmd: childCmd,", "file": "completions_test.go", "symbol": "", "line": 3695, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 30: // check that active help is not being disabled", "file": "zsh_completions_test.go", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nLine 90: end", "file": "fish_completions.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 33: func check(t *testing.T, found, expected string) {", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions.go\nLine 181: set -l compErr (math (math --scale 0 $directive / $shellCompDirectiveError) %% 2)", "file": "fish_completions.go", "symbol": "", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 111: args: []string{\"--a=foo\", \"--f=foo\", \"--g=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 134: // This function may not work correctly if your command names have `-` in them.", "file": "doc/rest_docs.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "테스트 코드에서 특정 문자열이 포함되어 있는지 검증할 때, 기대하는 값이 결과값에 존재하지 않으면 테스트 실패 메시지를 출력하도록 하는 로직을 찾아줘.", "query": "test contains error", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lang": "ko", "candidates": [{"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "테스트 코드에서 특정 문자열이 포함되어 있는지 검증할 때, 기대하는 값이 결과값에 존재하지 않으면 테스트 실패 메시지를 출력하도록 하는 로직을 찾아줘.", "query": "test contains error", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lang": "ko", "candidates": [{"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> os", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> testing", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> regexp", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> strings", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> os/exec", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "테스트 코드에서 특정 문자열이 포함되어 있는지 검증할 때, 기대하는 값이 결과값에 존재하지 않으면 테스트 실패 메시지를 출력하도록 하는 로직을 찾아줘.", "query": "test contains error", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lang": "ko", "candidates": [{"text": "Next: read bash_completions_test.go lines=78-101\nread bashCompletionFunc for detail", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=301-324\nread TestMaximumNArgs_WithMoreArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid", "line": 301, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=75-98\nread TestGenYamlDocRunnable for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDocRunnable", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=84-107\nread GenManTreeOptions for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeOptions", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_notwin.go lines=20-43\nread preExecHookFn for detail", "file": "command_notwin.go", "symbol": "preExecHookFn", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=701-724\nread GenBashCompletionFile for detail", "file": "bash_completions.go", "symbol": "GenBashCompletionFile", "line": 701, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=781-804\nread findSuggestions for detail", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=31-54\nread genBashComp for detail", "file": "bash_completionsV2.go", "symbol": "genBashComp", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=202-225\nread genMan for detail", "file": "doc/man_docs.go", "symbol": "genMan", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions_test.go lines=23-46\nread TestPwshCompletionNoActiveHelp for detail", "file": "powershell_completions_test.go", "symbol": "TestPwshCompletionNoActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1624-1647\nread TestFlagCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGo", "line": 1624, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=90-113\nread MarkPersistentFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagDirname", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1575-1598\nread TestCompleteCmdInBashScript for detail", "file": "completions_test.go", "symbol": "TestCompleteCmdInBashScript", "line": 1575, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=48-71\nread byName for detail", "file": "doc/util.go", "symbol": "byName", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=44-67\nread TestGenYamlNoTag for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlNoTag", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions_test.go lines=56-79\nread runShellCheck for detail", "file": "bash_completions_test.go", "symbol": "runShellCheck", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Wie prüft man, dass die Vervollständigung funktioniert, wenn mehrere Kurzflaggen definiert sind?", "query": "multiple shorthand flag completion", "file": "completions_test.go", "symbol": "TestMultipleShorthandFlagCompletion", "line": 2694, "lang": "de", "candidates": [{"text": "File: args_test.go\nLine 330: expectSuccess(output, err, t)", "file": "args_test.go", "symbol": "", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 645: // that have set DisableFlagParsing; it is ParseFlags() that merges the inherited and", "file": "completions.go", "symbol": "", "line": 645, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "powershell_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 94: }", "file": "cobra.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 39: os.Exit(1)", "file": "command_win.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 28: Short: \"my test program\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 24: \"strings\"", "file": "doc/md_docs.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 572: childCmd.AddCommand(grandchildCmd)", "file": "args_test.go", "symbol": "", "line": 572, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 263: }", "file": "active_help_test.go", "symbol": "", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 76: $ShellCompDirectiveNoSpace=%[5]d", "file": "powershell_completions.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 2: //", "file": "doc/md_docs.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 185: comps = AppendActiveHelp(comps, activeHelpMessage2)", "file": "active_help_test.go", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 33: }", "file": "doc/util.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 5: // You may obtain a copy of the License at", "file": "command_notwin.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "args.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 157: expected = strings.Join([]string{", "file": "active_help_test.go", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2694: func TestMultipleShorthandFlagCompletion(t *testing.T) {", "file": "completions_test.go", "symbol": "TestMultipleShorthandFlagCompletion", "line": 2694, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nLine 186: // check for noun aliases", "file": "bash_completions_test.go", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 159: flag.Shorthand,", "file": "doc/yaml_docs.go", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 24: \"text/template\"", "file": "cobra_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 45: rootCmd.DisableAutoGenTag = true", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "zsh_completions_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 200: if ((${#COMPREPLY[*]} == 0)); then", "file": "bash_completionsV2.go", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 17: import (", "file": "powershell_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Wie prüft man, dass die Vervollständigung funktioniert, wenn mehrere Kurzflaggen definiert sind?", "query": "multiple shorthand flag completion", "file": "completions_test.go", "symbol": "TestMultipleShorthandFlagCompletion", "line": 2694, "lang": "de", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Wie prüft man, dass die Vervollständigung funktioniert, wenn mehrere Kurzflaggen definiert sind?", "query": "multiple shorthand flag completion", "file": "completions_test.go", "symbol": "TestMultipleShorthandFlagCompletion", "line": 2694, "lang": "de", "candidates": [{"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Wie prüft man, dass die Vervollständigung funktioniert, wenn mehrere Kurzflaggen definiert sind?", "query": "multiple shorthand flag completion", "file": "completions_test.go", "symbol": "TestMultipleShorthandFlagCompletion", "line": 2694, "lang": "de", "candidates": [{"text": "Next: read args_test.go lines=257-280\nread TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=604-627\nread TestFlagInvalidInput for detail", "file": "command_test.go", "symbol": "TestFlagInvalidInput", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=422-445\nread getErr for detail", "file": "command.go", "symbol": "getErr", "line": 422, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2694-2717\nread TestMultipleShorthandFlagCompletion for detail", "file": "completions_test.go", "symbol": "TestMultipleShorthandFlagCompletion", "line": 2694, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=338-361\nread SetHelpCommand for detail", "file": "command.go", "symbol": "SetHelpCommand", "line": 338, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=57-80\nread GenMarkdownCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownCustom", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=229-252\nread TestBashCompletionHiddenFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionHiddenFlag", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=77-100\nread maximumNArgsWithMoreArgs for detail", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=470-493\nread GenBashCompletionFileV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionFileV2", "line": 470, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=583-606\nread TestChildFlagWithParentLocalFlag for detail", "file": "command_test.go", "symbol": "TestChildFlagWithParentLocalFlag", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=997-1020\nread configEnvVarGlobalPrefix for detail", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=58-81\nread TestGenMdNoHiddenParents for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=296-319\nread SetOut for detail", "file": "command.go", "symbol": "SetOut", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Comment vérifier que les arguments positionnels après -- sont correctement parsés et que les drapeaux sont bien appliqués ?", "query": "parse args after dash", "file": "command_test.go", "symbol": "TestFlagLong", "line": 491, "lang": "fr", "candidates": [{"text": "File: powershell_completions_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "powershell_completions_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 64: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 6: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 160: # Set the description to a one space string if there is none set.", "file": "powershell_completions.go", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 152: flags.VisitAll(func(flag *pflag.Flag) {", "file": "doc/yaml_docs.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 17: import (", "file": "fish_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 5: // You may obtain a copy of the License at", "file": "bash_completionsV2_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/md_docs_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 491: func TestFlagLong(t *testing.T) {", "file": "command_test.go", "symbol": "TestFlagLong", "line": 491, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command.go\nLine 120: // * Run()", "file": "command.go", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 50: )", "file": "cobra.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "active_help.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 273: }", "file": "fish_completions.go", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 162: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 199: }", "file": "doc/man_docs.go", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 30: func preExecHook(c *Command) {", "file": "command_win.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 180: res = append(res, prefix...)", "file": "doc/rest_docs.go", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 15: package cobra", "file": "powershell_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 162: \"Completion ended with directive: ShellCompDirectiveDefault\", \"\"}, \"\\n\")", "file": "active_help_test.go", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 129: assertNoErr(t, echoCmd.Flags().SetAnnotation(\"config\", BashCompSubdirsInDir, []string{\"config\"}))", "file": "bash_completions_test.go", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 55: {", "file": "bash_completions.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 551: }", "file": "completions.go", "symbol": "", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 184: local startIndex=$((${#activeHelpMarker}+1))", "file": "zsh_completions.go", "symbol": "", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 165: }", "file": "doc/rest_docs.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Comment vérifier que les arguments positionnels après -- sont correctement parsés et que les drapeaux sont bien appliqués ?", "query": "parse args after dash", "file": "command_test.go", "symbol": "TestFlagLong", "line": 491, "lang": "fr", "candidates": [{"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Comment vérifier que les arguments positionnels après -- sont correctement parsés et que les drapeaux sont bien appliqués ?", "query": "parse args after dash", "file": "command_test.go", "symbol": "TestFlagLong", "line": 491, "lang": "fr", "candidates": [{"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Comment vérifier que les arguments positionnels après -- sont correctement parsés et que les drapeaux sont bien appliqués ?", "query": "parse args after dash", "file": "command_test.go", "symbol": "TestFlagLong", "line": 491, "lang": "fr", "candidates": [{"text": "Next: read doc/cmd_test.go lines=69-92\nread timesCmd for detail", "file": "doc/cmd_test.go", "symbol": "timesCmd", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=491-514\nread TestFlagLong for detail", "file": "command_test.go", "symbol": "TestFlagLong", "line": 491, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=674-697\nread stripFlags for detail", "file": "command.go", "symbol": "stripFlags", "line": 674, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=142-165\nread ExactValidArgs for detail", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=547-570\nread FlagErrorFunc for detail", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=275-298\nread SetContext for detail", "file": "command.go", "symbol": "SetContext", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=127-150\nread TestGenManSeeAlso for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=407-430\nread TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 407, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2545-2568\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2545, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=95-118\nread ShellCompDirectiveDefault for detail", "file": "completions.go", "symbol": "ShellCompDirectiveDefault", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=408-431\nread InOrStdin for detail", "file": "command.go", "symbol": "InOrStdin", "line": 408, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=684-707\nread Set for detail", "file": "completions_test.go", "symbol": "Set", "line": 684, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "최종 실행 대상 커맨드 객체는 어디에 저장되나요?", "query": "final command", "file": "completions.go", "symbol": "finalCmd", "line": 325, "lang": "ko", "candidates": [{"text": "File: zsh_completions.go\nLine 33: }", "file": "zsh_completions.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 288: // Deprecated: Use SetOut and/or SetErr instead", "file": "command.go", "symbol": "", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 30: install_deps:", "file": "Makefile", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 172: }", "file": "doc/man_docs.go", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 198: for i := range d {", "file": "cobra.go", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 314: c := getCommand(MatchAll(OnlyValidArgs, MaximumNArgs(2)), true)", "file": "args_test.go", "symbol": "", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 325: var finalCmd *Command", "file": "completions.go", "symbol": "finalCmd", "line": 325, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nLine 43: })", "file": "doc/man_docs.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3279: return rootCmd", "file": "completions_test.go", "symbol": "", "line": 3279, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 13: // limitations under the License.", "file": "doc/rest_docs.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_notwin.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 17: import (", "file": "bash_completionsV2_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 49: if activeHelpCfg != activeHelpGlobalDisable {", "file": "active_help.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 36: assertNoErr(t, rootCmd.GenFishCompletion(buf, false))", "file": "fish_completions_test.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 97: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "fish_completions_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 51: if !matched {", "file": "bash_completions_test.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 31: Title: \"MINE\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 112: if flags.HasFlags() {", "file": "doc/yaml_docs.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1684: }", "file": "command.go", "symbol": "", "line": 1684, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3543: \"Completion ended with directive: ShellCompDirectiveNoFileComp\", \"\"}, \"\\n\"),", "file": "completions_test.go", "symbol": "", "line": 3543, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 178: local allflags", "file": "bash_completions.go", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 108: if err := GenReST(rootCmd, file); err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 67: rootCmd.DisableAutoGenTag = true", "file": "doc/rest_docs_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "최종 실행 대상 커맨드 객체는 어디에 저장되나요?", "query": "final command", "file": "completions.go", "symbol": "finalCmd", "line": 325, "lang": "ko", "candidates": [{"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "최종 실행 대상 커맨드 객체는 어디에 저장되나요?", "query": "final command", "file": "completions.go", "symbol": "finalCmd", "line": 325, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "최종 실행 대상 커맨드 객체는 어디에 저장되나요?", "query": "final command", "file": "completions.go", "symbol": "finalCmd", "line": 325, "lang": "ko", "candidates": [{"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=53-76\nread GenYamlTree for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTree", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=325-348\nread finalCmd for detail", "file": "completions.go", "symbol": "finalCmd", "line": 325, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=422-445\nread getErr for detail", "file": "command.go", "symbol": "getErr", "line": 422, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=181-204\nread TestNoDuplicateArgs_WithValid_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=186-209\nread assertLineFound for detail", "file": "doc/man_docs_test.go", "symbol": "assertLineFound", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=231-254\nread TestActiveHelpForFlag for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpForFlag", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=333-356\nread SetHelpFunc for detail", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=111-134\nread BenchmarkGenMarkdownToFile for detail", "file": "doc/md_docs_test.go", "symbol": "BenchmarkGenMarkdownToFile", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=24-47\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2916-2939\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2916, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=447-470\nread writeCommands for detail", "file": "bash_completions.go", "symbol": "writeCommands", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=643-666\nread ErrPrefix for detail", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2162-2185\nread output for detail", "file": "completions_test.go", "symbol": "output", "line": 2162, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=207-230\nread TestArbitraryArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=161-184\nread TestOnlyValidArgs_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs_WithInvalidArgs", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=127-150\nread TestGenManSeeAlso for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "how to handle shell completion directives in go", "query": "shell completion directives", "file": "completions.go", "symbol": "directive", "line": 430, "lang": "en", "candidates": [{"text": "File: bash_completions.go\nLine 219: esac", "file": "bash_completions.go", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 74: }", "file": "args.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 55: # results and the directive. It fills the 'out' and 'directive' vars.", "file": "bash_completionsV2.go", "symbol": "", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nLine 51: \"Completion ended with directive: ShellCompDirectiveDefault\", \"\"}, \"\\n\")", "file": "active_help_test.go", "symbol": "", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nLine 132: expected: true,", "file": "cobra_test.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 430: var directive ShellCompDirective", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions_test.go\nLine 92: buf := new(bytes.Buffer)", "file": "fish_completions_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 173: check(t, output, \"_root_print\")", "file": "bash_completions_test.go", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 39: \"eq\": Eq,", "file": "cobra.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 165: c := &cobra.Command{Use: \"do [OPTIONS] arg1 arg2\"}", "file": "doc/man_docs_test.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 114: local lastParam lastChar flagPrefix requestComp out directive comp lastComp noSpace keepOrder", "file": "zsh_completions.go", "symbol": "", "line": 114, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/man_examples_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 101: \"Completion ended with directive: ShellCompDirectiveNoFileComp\", \"\"}, \"\\n\")", "file": "completions_test.go", "symbol": "", "line": 101, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 6: //", "file": "doc/yaml_docs.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 895: // Test that a required flag is suggested without other flags when using the '-' prefix", "file": "completions_test.go", "symbol": "", "line": 895, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 943: rootCmd.AddCommand(&Command{Use: \"child\", Run: emptyRun})", "file": "command_test.go", "symbol": "", "line": 943, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 140: }", "file": "doc/md_docs.go", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 67: # to truncate the command-line ($Command) up to the $CursorPosition location.", "file": "powershell_completions.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 41: }", "file": "command_win.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 85: local out requestComp lastParam lastChar comp directive args", "file": "bash_completions.go", "symbol": "", "line": 85, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nLine 134: yamlDoc.SeeAlso = result", "file": "doc/yaml_docs.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 61: # Some programs may output extra empty lines after the directive.", "file": "fish_completions.go", "symbol": "", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "zsh_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "how to handle shell completion directives in go", "query": "shell completion directives", "file": "completions.go", "symbol": "directive", "line": 430, "lang": "en", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "how to handle shell completion directives in go", "query": "shell completion directives", "file": "completions.go", "symbol": "directive", "line": 430, "lang": "en", "candidates": [{"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "how to handle shell completion directives in go", "query": "shell completion directives", "file": "completions.go", "symbol": "directive", "line": 430, "lang": "en", "candidates": [{"text": "Next: read args.go lines=142-165\nread ExactValidArgs for detail", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=389-412\nread TestRangeArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=187-210\nread TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=127-150\nread MatchAll for detail", "file": "args.go", "symbol": "MatchAll", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=269-292\nread Context for detail", "file": "command.go", "symbol": "Context", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=99-122\nread OnInitialize for detail", "file": "cobra.go", "symbol": "OnInitialize", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=492-515\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=296-319\nread SetOut for detail", "file": "command.go", "symbol": "SetOut", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=82-105\nread ArbitraryArgs for detail", "file": "args.go", "symbol": "ArbitraryArgs", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=30-53\nread markdownExtension for detail", "file": "doc/md_docs.go", "symbol": "markdownExtension", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=592-615\nread UsageTemplate for detail", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=289-312\nread TestMaximumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValidOnly_WithInvalidArgs", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=547-570\nread FlagErrorFunc for detail", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=65-88\nread MarkFlagsMutuallyExclusive for detail", "file": "flag_groups.go", "symbol": "MarkFlagsMutuallyExclusive", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=245-268\nread TestBashCompletionDeprecatedFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionDeprecatedFlag", "line": 245, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "명령어 사용법 템플릿을 가져오는 함수를 찾아주세요. 현재 명령어에 사용자 정의 템플릿이 설정되어 있으면 그것을 사용하고, 부모 명령어가 있는 경우 재귀적으로 상위 명령어의 템플릿을 확인해야 합니다. 최종적으로 기본 템플릿 함수를 반환해야 합니다.", "query": "usage template function", "file": "command.go", "symbol": "getUsageTemplateFunc", "line": 464, "lang": "ko", "candidates": [{"text": "File: bash_completions_test.go\nLine 98: // Persistent filename.", "file": "bash_completions_test.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 34: cobra.CheckErr(doc.GenManTree(cmd, header, \"/tmp\"))", "file": "doc/man_examples_test.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 168: format = fmt.Sprintf(\"**--%s**\", flag.Name)", "file": "doc/man_docs.go", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 84: type GenManTreeOptions struct {", "file": "doc/man_docs.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 24: // The below values should not be changed: programs will be using them explicitly", "file": "active_help.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1585: func TestRemoveCommand(t *testing.T) {", "file": "command_test.go", "symbol": "", "line": 1585, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 48: t.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 121: __%[1]s_debug \"========= checking if order preservation is required ==========\"", "file": "fish_completions.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 68: // NoDuplicateArgs returns an error if there are any duplicate positional args.", "file": "args.go", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "bash_completionsV2_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 81: buf := new(bytes.Buffer)", "file": "zsh_completions.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "powershell_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 117: }", "file": "doc/md_docs.go", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3791: suffix: \"test\",", "file": "completions_test.go", "symbol": "", "line": 3791, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 587: func helpOrVersionFlagPresent(cmd *Command) bool {", "file": "completions.go", "symbol": "", "line": 587, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 326: if [[ ${words[c]} != *\"=\"* ]] && __%[1]s_contains_word \"${words[c]}\" \"${two_word_flags[@]}\"; then", "file": "bash_completions.go", "symbol": "", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 40: t.Fatalf(\"Unexpected error: %v\", err)", "file": "args_test.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 111: \"second\",", "file": "active_help_test.go", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 5: // You may obtain a copy of the License at", "file": "shell_completions.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 464: func (c *Command) getUsageTemplateFunc() func(w io.Writer, data interface{}) error {", "file": "command.go", "symbol": "getUsageTemplateFunc", "line": 464, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nLine 115: (($PSVersionTable.PsVersion -ge [version]'7.3.0' -or [ExperimentalFeature]::IsEnabled(\"PSNativeCommandArgumentPassing\")) -and", "file": "powershell_completions.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 72: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 72: fmt.Fprintf(buf, \"```\\n%s\\n```\\n\\n\", cmd.UseLine())", "file": "doc/md_docs.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "명령어 사용법 템플릿을 가져오는 함수를 찾아주세요. 현재 명령어에 사용자 정의 템플릿이 설정되어 있으면 그것을 사용하고, 부모 명령어가 있는 경우 재귀적으로 상위 명령어의 템플릿을 확인해야 합니다. 최종적으로 기본 템플릿 함수를 반환해야 합니다.", "query": "usage template function", "file": "command.go", "symbol": "getUsageTemplateFunc", "line": 464, "lang": "ko", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "명령어 사용법 템플릿을 가져오는 함수를 찾아주세요. 현재 명령어에 사용자 정의 템플릿이 설정되어 있으면 그것을 사용하고, 부모 명령어가 있는 경우 재귀적으로 상위 명령어의 템플릿을 확인해야 합니다. 최종적으로 기본 템플릿 함수를 반환해야 합니다.", "query": "usage template function", "file": "command.go", "symbol": "getUsageTemplateFunc", "line": 464, "lang": "ko", "candidates": [{"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "명령어 사용법 템플릿을 가져오는 함수를 찾아주세요. 현재 명령어에 사용자 정의 템플릿이 설정되어 있으면 그것을 사용하고, 부모 명령어가 있는 경우 재귀적으로 상위 명령어의 템플릿을 확인해야 합니다. 최종적으로 기본 템플릿 함수를 반환해야 합니다.", "query": "usage template function", "file": "command.go", "symbol": "getUsageTemplateFunc", "line": 464, "lang": "ko", "candidates": [{"text": "Next: read doc/yaml_docs.go lines=150-173\nread result for detail", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2163-2186\nread err for detail", "file": "completions_test.go", "symbol": "err", "line": 2163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=33-56\nread TestAddTemplateFunctions for detail", "file": "cobra_test.go", "symbol": "TestAddTemplateFunctions", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=464-487\nread getUsageTemplateFunc for detail", "file": "command.go", "symbol": "getUsageTemplateFunc", "line": 464, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=114-137\nread child1CmdArgs for detail", "file": "command_test.go", "symbol": "child1CmdArgs", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=217-240\nread BenchmarkGenManToFile for detail", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=689-712\nread Type for detail", "file": "completions_test.go", "symbol": "Type", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=233-256\nread TestMinimumNArgs_WithValid__WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=568-591\nread completionFn for detail", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=174-197\nread rpad for detail", "file": "cobra.go", "symbol": "rpad", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=225-248\nread enforceFlagGroupsForCompletion for detail", "file": "flag_groups.go", "symbol": "enforceFlagGroupsForCompletion", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=657-680\nread checkIfFlagCompletion for detail", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=195-218\nread TestArbitraryArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Where is the constant used to ensure names have enough spacing for alignment?", "query": "name padding length", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lang": "en", "candidates": [{"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 13: // limitations under the License.", "file": "fish_completions.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 25: \"github.com/inconshreveable/mousetrap\"", "file": "command_win.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 99: end", "file": "fish_completions.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "cobra.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "zsh_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 19: \"fmt\"", "file": "doc/man_examples_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 27: // We generate on a subcommand so we have both subcommands and parents", "file": "doc/rest_docs_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 53: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 28: nameForVar = strings.ReplaceAll(nameForVar, \"-\", \"_\")", "file": "fish_completions.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 81: `", "file": "bash_completions_test.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 143: }", "file": "fish_completions_test.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 225: }", "file": "args_test.go", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 175: got := stringInSlice(tt.a, tt.list)", "file": "cobra_test.go", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 115: _, err := buf.WriteTo(w)", "file": "doc/md_docs.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 132: result = append(result, child.CommandPath()+\" - \"+child.Short)", "file": "doc/yaml_docs.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 76: checkStringContains(t, output, echoSubCmd.Short)", "file": "doc/md_docs_test.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 18: \"bytes\"", "file": "doc/md_docs.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 122: checkStringOmits(t, output, unexpected)", "file": "doc/man_docs_test.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 61: // GenReSTCustom creates custom reStructured Text output.", "file": "doc/rest_docs.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 5: // You may obtain a copy of the License at", "file": "active_help.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 580: const minNamePadding = 11", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\nLine 53: return fmt.Sprintf(\"`%s <%s.rst>`_\", name, ref)", "file": "doc/rest_docs.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 104: }", "file": "args.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Where is the constant used to ensure names have enough spacing for alignment?", "query": "name padding length", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lang": "en", "candidates": [{"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "cobra", "task": "Where is the constant used to ensure names have enough spacing for alignment?", "query": "name padding length", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lang": "en", "candidates": [{"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Where is the constant used to ensure names have enough spacing for alignment?", "query": "name padding length", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lang": "en", "candidates": [{"text": "Next: read args_test.go lines=77-100\nread maximumNArgsWithMoreArgs for detail", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=101-124\nread TestGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=25-48\nread GenZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFile", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=55-78\nread EnablePrefixMatching for detail", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=86-109\nread onetwo for detail", "file": "command_test.go", "symbol": "onetwo", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2850-2873\nread TestCompleteWithRootAndLegacyArgs for detail", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=696-719\nread nonCompletableFlag for detail", "file": "bash_completions.go", "symbol": "nonCompletableFlag", "line": 696, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=157-180\nread TestNoCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=122-145\nread comps for detail", "file": "active_help_test.go", "symbol": "comps", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2607-2630\nread TestCompleteCompletion for detail", "file": "completions_test.go", "symbol": "TestCompleteCompletion", "line": 2607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2902-2925\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2902, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=466-489\nread TestChildTakesArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=52-75\nread Error for detail", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=580-603\nread minNamePadding for detail", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=818-841\nread TestPersistentFlagsOnChild for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnChild", "line": 818, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Ich arbeite gerade an der Validierung der Konfigurationsparameter. Gibt es eine Hilfsfunktion, die prüft, ob ein bestimmter Textwert in einer Liste von erlaubten Optionen enthalten ist?", "query": "string in slice", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lang": "de", "candidates": [{"text": "File: command.go\nLine 1163: // If root command has SilenceUsage flagged,", "file": "command.go", "symbol": "", "line": 1163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2283: if stringInSlice(f.Name, names) {", "file": "command_test.go", "symbol": "", "line": 2283, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nLine 103: local shellCompDirectiveFilterDirs=%[7]d", "file": "bash_completionsV2.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 30: if e != nil {", "file": "doc/man_docs_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 33: }", "file": "bash_completionsV2_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 225: func stringInSlice(a string, list []string) bool {", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups.go\nLine 73: if err := c.Flags().SetAnnotation(v, mutuallyExclusiveAnnotation, append(f.Annotations[mutuallyExclusiveAnnotation], strings.Join(flagNames, \" \"))); err != nil {", "file": "flag_groups.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 20: \"github.com/spf13/cobra\"", "file": "doc/util.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 27: Use: \"test\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 48: return nil", "file": "doc/rest_docs.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 189: printf \"%%s\\n\" \"${activeHelp[@]}\"", "file": "bash_completionsV2.go", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 60: if !stringInSlice(v, validArgs) {", "file": "args.go", "symbol": "", "line": 60, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/man_examples_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 394: comp=${comp%%%%$tab*}", "file": "bash_completionsV2.go", "symbol": "", "line": 394, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "shell_completions.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "zsh_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 175: got := stringInSlice(tt.a, tt.list)", "file": "cobra_test.go", "symbol": "", "line": 175, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nLine 145: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 150: }", "file": "active_help_test.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 15: package doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 46: out := new(bytes.Buffer)", "file": "doc/man_examples_test.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "zsh_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 175: }", "file": "flag_groups_test.go", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 173: for _, flagGroup := range tc.flagGroupsExclusive {", "file": "flag_groups_test.go", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Ich arbeite gerade an der Validierung der Konfigurationsparameter. Gibt es eine Hilfsfunktion, die prüft, ob ein bestimmter Textwert in einer Liste von erlaubten Optionen enthalten ist?", "query": "string in slice", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lang": "de", "candidates": [{"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Ich arbeite gerade an der Validierung der Konfigurationsparameter. Gibt es eine Hilfsfunktion, die prüft, ob ein bestimmter Textwert in einer Liste von erlaubten Optionen enthalten ist?", "query": "string in slice", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lang": "de", "candidates": [{"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Ich arbeite gerade an der Validierung der Konfigurationsparameter. Gibt es eine Hilfsfunktion, die prüft, ob ein bestimmter Textwert in einer Liste von erlaubten Optionen enthalten ist?", "query": "string in slice", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lang": "de", "candidates": [{"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2902-2925\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2902, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=394-417\nread TestPluginWithSubCommands for detail", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=283-306\nread TestMaximumNArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=94-117\nread TestGenMdTree for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdTree", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1006-1029\nread configEnvVar for detail", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2899-2922\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2899, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=67-90\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=69-92\nread timesCmd for detail", "file": "doc/cmd_test.go", "symbol": "timesCmd", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=781-804\nread findSuggestions for detail", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=157-180\nread TestNoCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=188-211\nread validateExclusiveFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateExclusiveFlagGroups", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=225-248\nread stringInSlice for detail", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=633-656\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "CLIツールの引数補完で、接頭辞の一致を自動的に有効にする設定がどこにあるか教えてください。デフォルトの設定値を確認したいです。", "query": "automatic prefix matching", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lang": "ja", "candidates": [{"text": "File: doc/yaml_docs_test.go\nLine 21: \"path/filepath\"", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "args.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 215: check(t, output, `local_nonpersistent_flags+=(\"--two-w-default\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1446: \"tims\": \"times\",", "file": "command_test.go", "symbol": "", "line": 1446, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 27: assertNoErr(t, c.GenZshCompletion(buf))", "file": "zsh_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 805: if EnablePrefixMatching && cmd.hasNameOrAliasPrefix(next) {", "file": "command.go", "symbol": "", "line": 805, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nLine 30: // check that active help is being disabled", "file": "powershell_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 76: // Testing a runnable command: should contain the \"usage\" field", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 126: // MatchAll allows combining several PositionalArgs to work in concert.", "file": "args.go", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/rest_docs_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 20: \"path/filepath\"", "file": "cobra_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 128: // Only consider this flag group at all if all the flags are defined.", "file": "flag_groups.go", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 18: \"bytes\"", "file": "doc/man_examples_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 211: manPreamble(buf, header, cmd, dashCommandName)", "file": "doc/man_docs.go", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 28: // Define lots of flags to utilize for testing.", "file": "flag_groups_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "powershell_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 38: }", "file": "command_win.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 107: link = strings.ReplaceAll(link, \" \", \"_\")", "file": "doc/md_docs.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 30: // check that active help is not being disabled", "file": "bash_completionsV2_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 306: EnablePrefixMatching = true", "file": "command_test.go", "symbol": "", "line": 306, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nLine 55: var EnablePrefixMatching = defaultPrefixMatching", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nLine 45: for _, name := range []string{\"rootflag\", \"strtwo\"} {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 33: const (", "file": "command.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "CLIツールの引数補完で、接頭辞の一致を自動的に有効にする設定がどこにあるか教えてください。デフォルトの設定値を確認したいです。", "query": "automatic prefix matching", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lang": "ja", "candidates": [{"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "CLIツールの引数補完で、接頭辞の一致を自動的に有効にする設定がどこにあるか教えてください。デフォルトの設定値を確認したいです。", "query": "automatic prefix matching", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lang": "ja", "candidates": [{"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "CLIツールの引数補完で、接頭辞の一致を自動的に有効にする設定がどこにあるか教えてください。デフォルトの設定値を確認したいです。", "query": "automatic prefix matching", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lang": "ja", "candidates": [{"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=202-225\nread genMan for detail", "file": "doc/man_docs.go", "symbol": "genMan", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=55-78\nread MarkZshCompPositionalArgumentFile for detail", "file": "zsh_completions.go", "symbol": "MarkZshCompPositionalArgumentFile", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=83-106\nread MarkFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=55-78\nread EnablePrefixMatching for detail", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=529-552\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 529, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1001-1024\nread configEnvVarPrefixSubstRegexp for detail", "file": "completions.go", "symbol": "configEnvVarPrefixSubstRegexp", "line": 1001, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=127-150\nread MatchAll for detail", "file": "args.go", "symbol": "MatchAll", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=30-53\nread BashCompFilenameExt for detail", "file": "bash_completions.go", "symbol": "BashCompFilenameExt", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=1018-1041\nread getEnvConfig for detail", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=43-66\nread TestGenRSTNoHiddenParents for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoHiddenParents", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=308-331\nread aCmdArgs for detail", "file": "command_test.go", "symbol": "aCmdArgs", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=141-164\nread TestNoArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=357-380\nread TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Je cherche à comprendre comment est stockée la valeur numérique passée en argument lors des tests de la ligne de commande. Peux-tu me montrer où cette variable est définie et comment elle est utilisée ?", "query": "command test flag", "file": "command_test.go", "symbol": "flagValue", "line": 773, "lang": "fr", "candidates": [{"text": "File: fish_completions_test.go\nLine 107: defer os.Remove(tmpFile.Name())", "file": "fish_completions_test.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/man_docs_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 13: // limitations under the License.", "file": "command_notwin.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 244: _, err := b.WriteString(s)", "file": "cobra.go", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 773: var flagValue int", "file": "command_test.go", "symbol": "flagValue", "line": 773, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions.go\nLine 252: done < <(compgen -W \"${noun_aliases[*]}\" -- \"$cur\")", "file": "bash_completions.go", "symbol": "", "line": 252, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2423: expected = strings.Join([]string{", "file": "completions_test.go", "symbol": "", "line": 2423, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 26: // - root commands with subcommands will do subcommand validity checking", "file": "args.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 76: // Testing a runnable command: should contain the \"usage\" field", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 905: func (c *Command) execute(a []string) (err error) {", "file": "command.go", "symbol": "", "line": 905, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 152: flags.VisitAll(func(flag *pflag.Flag) {", "file": "doc/yaml_docs.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 562: WriteStringAndCheck(buf, \" flag_parsing_disabled=1\\n\")", "file": "bash_completions.go", "symbol": "", "line": 562, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 62: checkStringOmits(t, output, deprecatedCmd.Short)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "zsh_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/man_examples_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 26: func hasSeeAlso(cmd *cobra.Command) bool {", "file": "doc/util.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 40: c.AddCommand(subC)", "file": "flag_groups_test.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 92: defer file.Close()", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 232: if [ $((directive & shellCompDirectiveKeepOrder)) -ne 0 ]; then", "file": "zsh_completions.go", "symbol": "", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 153: // OnlyValidArgs", "file": "args_test.go", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 17: import (", "file": "shell_completions.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 64: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "powershell_completions_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 50: t.Fatal(err)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Je cherche à comprendre comment est stockée la valeur numérique passée en argument lors des tests de la ligne de commande. Peux-tu me montrer où cette variable est définie et comment elle est utilisée ?", "query": "command test flag", "file": "command_test.go", "symbol": "flagValue", "line": 773, "lang": "fr", "candidates": [{"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Je cherche à comprendre comment est stockée la valeur numérique passée en argument lors des tests de la ligne de commande. Peux-tu me montrer où cette variable est définie et comment elle est utilisée ?", "query": "command test flag", "file": "command_test.go", "symbol": "flagValue", "line": 773, "lang": "fr", "candidates": [{"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Je cherche à comprendre comment est stockée la valeur numérique passée en argument lors des tests de la ligne de commande. Peux-tu me montrer où cette variable est définie et comment elle est utilisée ?", "query": "command test flag", "file": "command_test.go", "symbol": "flagValue", "line": 773, "lang": "fr", "candidates": [{"text": "Next: read cobra.go lines=59-82\nread EnableCommandSorting for detail", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1624-1647\nread TestFlagCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGo", "line": 1624, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions_test.go lines=23-46\nread TestPwshCompletionNoActiveHelp for detail", "file": "powershell_completions_test.go", "symbol": "TestPwshCompletionNoActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=74-97\nread TestProgWithColon for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithColon", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=62-85\nread ShellCompDirectiveNoSpace for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoSpace", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=103-126\nread compCmdNoDescFlagDefault for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDefault", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=505-528\nread getHelpTemplateFunc for detail", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=167-190\nread validateOneRequiredFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateOneRequiredFlagGroups", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=179-202\nread tmpl for detail", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=773-796\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 773, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_win.go lines=28-51\nread preExecHookFn for detail", "file": "command_win.go", "symbol": "preExecHookFn", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=313-336\nread genPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletion", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=192-215\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=599-622\nread getFlagNameCompletions for detail", "file": "completions.go", "symbol": "getFlagNameCompletions", "line": 599, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "I'm implementing shell auto-completion and need to extract the partially typed argument while safely copying the remaining arguments to prevent mutating the original slice.\n\nPlease show me the logic that determines which command is being completed based on whether the root command traverses children.", "query": "shell completion traversal", "file": "completions.go", "symbol": "getCompletions", "line": 316, "lang": "en", "candidates": [{"text": "File: zsh_completions.go\nLine 25: func (c *Command) GenZshCompletionFile(filename string) error {", "file": "zsh_completions.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 4081: // The bug: getCompletions() calls append(finalArgs, \"--\") where", "file": "completions_test.go", "symbol": "", "line": 4081, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nLine 27: Use: \"test\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 112: for _, fname := range flagnames {", "file": "flag_groups.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 98: }", "file": "shell_completions.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_notwin.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "fish_completions.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 288: # Only consider the completions that match", "file": "bash_completionsV2.go", "symbol": "", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 187: $Values = $Values | Where-Object {", "file": "powershell_completions.go", "symbol": "", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 17: import (", "file": "doc/rest_docs_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3634: args := []string{ShellCompNoDescRequestCmd}", "file": "completions_test.go", "symbol": "", "line": 3634, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 2: //", "file": "doc/man_examples_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 62: }", "file": "args.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 316: func (c *Command) getCompletions(args []string) (*Command, []Completion, ShellCompDirective, error) {", "file": "completions.go", "symbol": "getCompletions", "line": 316, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nLine 8: //", "file": "bash_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1982: rootCmd.AddCommand(&Command{Use: \"xxx\", GroupID: \"group\", Run: emptyRun})", "file": "command_test.go", "symbol": "", "line": 1982, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 540: // Make sure the completion script calls the __*_go_custom_completion function for", "file": "bash_completions.go", "symbol": "", "line": 540, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 120: left = int64(av.Len())", "file": "cobra.go", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 165: opt := cmdOption{", "file": "doc/yaml_docs.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 2048: c := in.(*Command)", "file": "command.go", "symbol": "", "line": 2048, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 81: Deprecated: \"Please use echo instead\",", "file": "doc/cmd_test.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 19: \"fmt\"", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 38: }", "file": "command_win.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 75: }", "file": "doc/cmd_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "I'm implementing shell auto-completion and need to extract the partially typed argument while safely copying the remaining arguments to prevent mutating the original slice.\n\nPlease show me the logic that determines which command is being completed based on whether the root command traverses children.", "query": "shell completion traversal", "file": "completions.go", "symbol": "getCompletions", "line": 316, "lang": "en", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "I'm implementing shell auto-completion and need to extract the partially typed argument while safely copying the remaining arguments to prevent mutating the original slice.\n\nPlease show me the logic that determines which command is being completed based on whether the root command traverses children.", "query": "shell completion traversal", "file": "completions.go", "symbol": "getCompletions", "line": 316, "lang": "en", "candidates": [{"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "I'm implementing shell auto-completion and need to extract the partially typed argument while safely copying the remaining arguments to prevent mutating the original slice.\n\nPlease show me the logic that determines which command is being completed based on whether the root command traverses children.", "query": "shell completion traversal", "file": "completions.go", "symbol": "getCompletions", "line": 316, "lang": "en", "candidates": [{"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=127-150\nread TestGenManSeeAlso for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=588-611\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 588, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=536-559\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=316-339\nread getCompletions for detail", "file": "completions.go", "symbol": "getCompletions", "line": 316, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=213-236\nread TestArbitraryArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValidOnly_WithInvalidArgs", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=339-362\nread TestExactArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=169-192\nread TestNoDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=179-202\nread tmpl for detail", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups_test.go lines=22-45\nread TestValidateFlagGroups for detail", "file": "flag_groups_test.go", "symbol": "TestValidateFlagGroups", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=499-522\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 499, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=528-551\nread TestFlagShort for detail", "file": "command_test.go", "symbol": "TestFlagShort", "line": 528, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=283-306\nread TestMaximumNArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=62-85\nread GenReSTCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTCustom", "line": 62, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "The mechanism responsible for retrieving the specific logic used to suggest values for a command or flag seems to be missing or incorrectly mapped.", "query": "flag completion logic", "file": "completions.go", "symbol": "completionFn", "line": 568, "lang": "en", "candidates": [{"text": "File: doc/cmd_test.go\nLine 62: var echoSubCmd = &cobra.Command{", "file": "doc/cmd_test.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1214: }", "file": "command_test.go", "symbol": "", "line": 1214, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 54: if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {", "file": "doc/man_docs.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 153: }", "file": "doc/md_docs.go", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 344: }", "file": "powershell_completions.go", "symbol": "", "line": 344, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 52: t.Errorf(\"Expecting to match: \\n %q\\nGot:\\n %q\\n\", pattern, found)", "file": "bash_completions_test.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 129: defer f.Close()", "file": "fish_completions_test.go", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 98: func BenchmarkGenReSTToFile(b *testing.B) {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 49: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 22: \"path/filepath\"", "file": "doc/md_docs.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 39: os.Exit(1)", "file": "command_win.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 39: checkStringContains(t, output, rootCmd.Short)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 188: # filter the result", "file": "powershell_completions.go", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 33: func check(t *testing.T, found, expected string) {", "file": "bash_completions_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/man_docs.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 97: if err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 568: var completionFn CompletionFunc", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nLine 27: if cmd.HasParent() {", "file": "doc/util.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "fish_completions_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "fish_completions_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 126: children := cmd.Commands()", "file": "doc/yaml_docs.go", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 225: # Fish won't add a space if the completion ends with any", "file": "fish_completions.go", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 237: if test $numComps -eq 0; and test $nofiles -eq 0", "file": "fish_completions.go", "symbol": "", "line": 237, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "The mechanism responsible for retrieving the specific logic used to suggest values for a command or flag seems to be missing or incorrectly mapped.", "query": "flag completion logic", "file": "completions.go", "symbol": "completionFn", "line": 568, "lang": "en", "candidates": [{"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "The mechanism responsible for retrieving the specific logic used to suggest values for a command or flag seems to be missing or incorrectly mapped.", "query": "flag completion logic", "file": "completions.go", "symbol": "completionFn", "line": 568, "lang": "en", "candidates": [{"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "The mechanism responsible for retrieving the specific logic used to suggest values for a command or flag seems to be missing or incorrectly mapped.", "query": "flag completion logic", "file": "completions.go", "symbol": "completionFn", "line": 568, "lang": "en", "candidates": [{"text": "Next: read fish_completions.go lines=284-307\nread GenFishCompletionFile for detail", "file": "fish_completions.go", "symbol": "GenFishCompletionFile", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=281-304\nread SetArgs for detail", "file": "command.go", "symbol": "SetArgs", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=788-811\nread sb for detail", "file": "command.go", "symbol": "sb", "line": 788, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=169-192\nread TestNoDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=33-56\nread TestAddTemplateFunctions for detail", "file": "cobra_test.go", "symbol": "TestAddTemplateFunctions", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=173-196\nread indentString for detail", "file": "doc/rest_docs.go", "symbol": "indentString", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=166-189\nread appendIfNotPresent for detail", "file": "cobra.go", "symbol": "appendIfNotPresent", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=99-122\nread OnInitialize for detail", "file": "cobra.go", "symbol": "OnInitialize", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=520-543\nread Help for detail", "file": "command.go", "symbol": "Help", "line": 520, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_notwin.go lines=20-43\nread preExecHookFn for detail", "file": "command_notwin.go", "symbol": "preExecHookFn", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions.go lines=25-48\nread genFishComp for detail", "file": "fish_completions.go", "symbol": "genFishComp", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=30-53\nread markdownExtension for detail", "file": "doc/md_docs.go", "symbol": "markdownExtension", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=568-591\nread completionFn for detail", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=25-48\nread GenZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFile", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "コマンド実行時に必須となる永続フラグを設定し、シェル補完時にもそれが優先されるようにする機能について、実装場所を確認したい。また、指定したフラグが欠落している場合にエラーを返す挙動が正しく組み込まれているか調査してほしい。", "query": "persistent flag required", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lang": "ja", "candidates": [{"text": "File: bash_completionsV2_test.go\nLine 27: assertNoErr(t, c.GenBashCompletionV2(buf, true))", "file": "bash_completionsV2_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "doc/rest_docs.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 29: \"unicode\"", "file": "cobra.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 52: __%[1]s_debug \"args: $args\"", "file": "fish_completions.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 101: assertNoErr(t, rootCmd.MarkPersistentFlagRequired(\"persistent-filename\"))", "file": "bash_completions_test.go", "symbol": "", "line": 101, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nLine 215: # to possibly call handle_go_custom_completion.", "file": "bash_completions.go", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 50: output := buf.String()", "file": "doc/md_docs_test.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 864: assertNoErr(t, rootCmd.MarkPersistentFlagRequired(\"requiredPersistent\"))", "file": "completions_test.go", "symbol": "", "line": 864, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nLine 2: //", "file": "doc/yaml_docs.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 37: // ActiveHelp line will be shown below the previous ones when completion is triggered.", "file": "active_help.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 138: // ExactValidArgs returns an error if there are not exactly N positional args OR", "file": "args.go", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 89: func TestFishCompletionNoActiveHelp(t *testing.T) {", "file": "fish_completions_test.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 58: func activeHelpEnvVar(name string) string {", "file": "active_help.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 2: //", "file": "command_notwin.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 19: \"fmt\"", "file": "zsh_completions.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 31: func (c *Command) MarkPersistentFlagRequired(name string) error {", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions_test.go\nLine 26: func TestCompleteNoDesCmdInFishScript(t *testing.T) {", "file": "fish_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "bash_completionsV2_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 125: }", "file": "cobra.go", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 874: assertNoErr(t, parent.MarkPersistentFlagRequired(\"foo1\"))", "file": "command_test.go", "symbol": "", "line": 874, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nLine 30: func preExecHook(c *Command) {", "file": "command_win.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 137: final, err := yaml.Marshal(&yamlDoc)", "file": "doc/yaml_docs.go", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 41: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "コマンド実行時に必須となる永続フラグを設定し、シェル補完時にもそれが優先されるようにする機能について、実装場所を確認したい。また、指定したフラグが欠落している場合にエラーを返す挙動が正しく組み込まれているか調査してほしい。", "query": "persistent flag required", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lang": "ja", "candidates": [{"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "コマンド実行時に必須となる永続フラグを設定し、シェル補完時にもそれが優先されるようにする機能について、実装場所を確認したい。また、指定したフラグが欠落している場合にエラーを返す挙動が正しく組み込まれているか調査してほしい。", "query": "persistent flag required", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lang": "ja", "candidates": [{"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "コマンド実行時に必須となる永続フラグを設定し、シェル補完時にもそれが優先されるようにする機能について、実装場所を確認したい。また、指定したフラグが欠落している場合にエラーを返す挙動が正しく組み込まれているか調査してほしい。", "query": "persistent flag required", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lang": "ja", "candidates": [{"text": "Next: read completions.go lines=932-955\nread findFlag for detail", "file": "completions.go", "symbol": "findFlag", "line": 932, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=110-133\nread noDuplicateArgsWithDuplicate for detail", "file": "args_test.go", "symbol": "noDuplicateArgsWithDuplicate", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=643-666\nread ErrPrefix for detail", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=175-198\nread TestNoDuplicateArgs_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithDuplicateArgs", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=31-54\nread MarkPersistentFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=2323-2346\nread TestArgAliasesCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestArgAliasesCompletionInGo", "line": 2323, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=633-656\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=580-603\nread minNamePadding for detail", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=342-365\nread GenPowerShellCompletionFileWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFileWithDesc", "line": 342, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=432-455\nread getIn for detail", "file": "command.go", "symbol": "getIn", "line": 432, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=133-156\nread GenMarkdownTreeCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTreeCustom", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1357-1380\nread TestValidArgsFuncSingleCmdInvalidArg for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=24-47\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=271-294\nread TestMaximumNArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "installer les dépendances go", "query": "install deps go", "file": "Makefile", "symbol": "install_deps", "line": 30, "lang": "fr", "candidates": [{"text": "File: bash_completions.go\nLine 454: writeCmdAliases(buf, c)", "file": "bash_completions.go", "symbol": "", "line": 454, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "powershell_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 100: yamlDoc.Synopsis = forceMultiLine(cmd.Short)", "file": "doc/yaml_docs.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 101: compCmdNoDescFlagName = \"no-descriptions\"", "file": "completions.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_win.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 150: validOnlyWithInvalidArgs(err, t)", "file": "args_test.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 62: }", "file": "args.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 40: checkStringOmits(t, output, deprecatedCmd.Short)", "file": "doc/md_docs_test.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 127: }{", "file": "cobra_test.go", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 25: \"github.com/inconshreveable/mousetrap\"", "file": "command_win.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 39: func TestGenManDoc(t *testing.T) {", "file": "doc/man_docs_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 115: t.Errorf(\"Expected ld: %v\\nGot: %v\", tt.expected, got)", "file": "cobra_test.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 246: }", "file": "doc/man_docs.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 241: // of that group required so that the shell completion suggests them automatically", "file": "flag_groups.go", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 30: func printOptionsReST(buf *bytes.Buffer, cmd *cobra.Command, name string) error {", "file": "doc/rest_docs.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 447: }", "file": "command.go", "symbol": "", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 30: install_deps:", "file": "Makefile", "symbol": "install_deps", "line": 30, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 235: // If reflect.Value.MethodByName/reflect.Value.Method are reachable the", "file": "cobra_test.go", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 63: checkStringOmits(t, output, \"Options inherited from parent commands\")", "file": "doc/rest_docs_test.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "fish_completions.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 127: func MatchAll(pargs ...PositionalArgs) PositionalArgs {", "file": "args.go", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 136: header.date = header.Date.Format(\"Jan 2006\")", "file": "doc/man_docs.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "installer les dépendances go", "query": "install deps go", "file": "Makefile", "symbol": "install_deps", "line": 30, "lang": "fr", "candidates": [{"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\ndefines install_deps", "file": "Makefile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "installer les dépendances go", "query": "install deps go", "file": "Makefile", "symbol": "install_deps", "line": 30, "lang": "fr", "candidates": [{"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=547-570\nread FlagErrorFunc for detail", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=26-49\nread TestGenRSTDoc for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=536-559\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=818-841\nread TestPersistentFlagsOnChild for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnChild", "line": 818, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=313-336\nread TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=75-98\nread TestGenYamlDocRunnable for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDocRunnable", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=276-299\nread GenFishCompletion for detail", "file": "fish_completions.go", "symbol": "GenFishCompletion", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=616-639\nread TestFlagBeforeCommand for detail", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=245-268\nread TestMinimumNArgs_WithLessArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=537-560\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=313-336\nread genPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletion", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=281-304\nread SetArgs for detail", "file": "command.go", "symbol": "SetArgs", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=30-53\nread install_deps for detail", "file": "Makefile", "symbol": "install_deps", "line": 30, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=773-796\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 773, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=66-89\nread ShellCompDirectiveNoFileComp for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoFileComp", "line": 66, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "show where the command line flags are being defined for the various subcommands", "query": "persistentflags stringp boolp", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lang": "en", "candidates": [{"text": "File: doc/rest_docs.go\nLine 167: return err", "file": "doc/rest_docs.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 186: err := c.Execute()", "file": "flag_groups_test.go", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 22: \"testing\"", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 51: }", "file": "active_help.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 5: // You may obtain a copy of the License at", "file": "bash_completionsV2_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 430: var directive ShellCompDirective", "file": "completions.go", "symbol": "", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/rest_docs_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 101: }", "file": "cobra.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 136: }", "file": "fish_completions_test.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/md_docs_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 42: // MarkFlagFilename instructs the various shell completion implementations to", "file": "shell_completions.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "bash_completionsV2_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 146: return nil", "file": "doc/yaml_docs.go", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 184: // check for required nouns", "file": "bash_completions_test.go", "symbol": "", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "bash_completionsV2_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 41: checkStringContains(t, output, fmt.Sprintf(\"- %s - %s\", echoSubCmd.CommandPath(), echoSubCmd.Short))", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 26: func init() {", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\nLine 4016: }", "file": "completions_test.go", "symbol": "", "line": 4016, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 32: output := buf.String()", "file": "doc/md_docs_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 34: return true", "file": "doc/util.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 88: BashCompletionFunction: bashCompletionFunc,", "file": "bash_completions_test.go", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 326: local longest=0", "file": "bash_completionsV2.go", "symbol": "", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 30: )", "file": "cobra.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 107: __%[1]s_debug \"Performed completions and set __%[1]s_perform_completion_once_result\"", "file": "fish_completions.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "show where the command line flags are being defined for the various subcommands", "query": "persistentflags stringp boolp", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lang": "en", "candidates": [{"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nsibling in doc", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\ndefines init", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "show where the command line flags are being defined for the various subcommands", "query": "persistentflags stringp boolp", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lang": "en", "candidates": [{"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> github.com/spf13/cobra", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "show where the command line flags are being defined for the various subcommands", "query": "persistentflags stringp boolp", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lang": "en", "candidates": [{"text": "Next: read completions.go lines=998-1021\nread configEnvVarSuffixDescriptions for detail", "file": "completions.go", "symbol": "configEnvVarSuffixDescriptions", "line": 998, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=245-268\nread TestMinimumNArgs_WithLessArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=447-470\nread writeCommands for detail", "file": "bash_completions.go", "symbol": "writeCommands", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=100-123\nread compCmdName for detail", "file": "completions.go", "symbol": "compCmdName", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=102-125\nread compCmdNoDescFlagDesc for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDesc", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2916-2939\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2916, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1318-1341\nread TestValidArgsFuncSingleCmd for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=146-169\nread TestRootExecuteUnknownCommand for detail", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2902-2925\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2902, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=166-189\nread appendIfNotPresent for detail", "file": "cobra.go", "symbol": "appendIfNotPresent", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=52-75\nread Error for detail", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=69-92\nread timesCmd for detail", "file": "doc/cmd_test.go", "symbol": "timesCmd", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=201-224\nread TestArbitraryArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=333-356\nread TestExactArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=570-593\nread minCommandPathPadding for detail", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=466-489\nread TestChildTakesArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=122-145\nread comps for detail", "file": "active_help_test.go", "symbol": "comps", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "명령어 실행 시 도움말을 출력하기 위해 사용되는 옵션 키워드가 무엇인지 확인하고 싶습니다. 사용자에게 안내 메시지를 보여주는 플래그 정의를 찾아주세요.", "query": "help flag constant", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lang": "ko", "candidates": [{"text": "File: completions.go\nLine 954: // be wrongly interpreted as actual completion choices by the completion script.", "file": "completions.go", "symbol": "", "line": 954, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 69: short := cmd.Short", "file": "doc/rest_docs.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 131: printCmd := &Command{", "file": "bash_completions_test.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 49: if activeHelpCfg != activeHelpGlobalDisable {", "file": "active_help.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "bash_completionsV2_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 196: }", "file": "cobra.go", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 34: // The array parameter should be the array that will contain the completions.", "file": "active_help.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 130: __%[1]s_debug \"Directive is: $directive\"", "file": "fish_completions.go", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 13: // limitations under the License.", "file": "powershell_completions_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 65: checkStringOmits(t, output, translate(deprecatedCmd.Name()))", "file": "doc/man_docs_test.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 60: cmd.Stderr = os.Stderr", "file": "bash_completions_test.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 108: return 0", "file": "fish_completions.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2562: for _, shell := range []string{\"fish\", \"zsh\", \"bash\", \"powershell\"} {", "file": "completions_test.go", "symbol": "", "line": 2562, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 2: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 35: checkStringContains(t, output, echoCmd.Long)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2550: t.Errorf(\"Unexpected error: %v\", err)", "file": "completions_test.go", "symbol": "", "line": 2550, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 335: EnablePrefixMatching = true", "file": "command_test.go", "symbol": "", "line": 335, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 37: helpFlagName = \"help\"", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: shell_completions.go\nLine 28: // MarkPersistentFlagRequired instructs the various shell completion implementations to", "file": "shell_completions.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 195: fmt.Sprintf(\"%s%s\", activeHelpMarker, activeHelpMessage),", "file": "active_help_test.go", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2018: rootCmd.AddGroup(&Group{ID: \"group\", Title: \"group\"})", "file": "command_test.go", "symbol": "", "line": 2018, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 97: Date *time.Time", "file": "doc/man_docs.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 8: //", "file": "zsh_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 592: if helpFlag := cmd.Flags().Lookup(helpFlagName); helpFlag != nil &&", "file": "completions.go", "symbol": "", "line": 592, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "명령어 실행 시 도움말을 출력하기 위해 사용되는 옵션 키워드가 무엇인지 확인하고 싶습니다. 사용자에게 안내 메시지를 보여주는 플래그 정의를 찾아주세요.", "query": "help flag constant", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lang": "ko", "candidates": [{"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "cobra", "task": "명령어 실행 시 도움말을 출력하기 위해 사용되는 옵션 키워드가 무엇인지 확인하고 싶습니다. 사용자에게 안내 메시지를 보여주는 플래그 정의를 찾아주세요.", "query": "help flag constant", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lang": "ko", "candidates": [{"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "명령어 실행 시 도움말을 출력하기 위해 사용되는 옵션 키워드가 무엇인지 확인하고 싶습니다. 사용자에게 안내 메시지를 보여주는 플래그 정의를 찾아주세요.", "query": "help flag constant", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lang": "ko", "candidates": [{"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=147-170\nread TestNoArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValidOnly_WithInvalidArgs", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=107-130\nread CompletionOptions for detail", "file": "completions.go", "symbol": "CompletionOptions", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2162-2185\nread output for detail", "file": "completions_test.go", "symbol": "output", "line": 2162, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=44-67\nread TestGenYamlNoTag for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlNoTag", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=289-312\nread TestMaximumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValidOnly_WithInvalidArgs", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=105-128\nread OnFinalize for detail", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=770-793\nread TestEmptyInputs for detail", "file": "command_test.go", "symbol": "TestEmptyInputs", "line": 770, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=45-68\nread Group for detail", "file": "command.go", "symbol": "Group", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=568-591\nread completionFn for detail", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1006-1029\nread configEnvVar for detail", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=24-47\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=261-284\nread TestBashCompletionTraverseChildren for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionTraverseChildren", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=100-123\nread compCmdName for detail", "file": "completions.go", "symbol": "compCmdName", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=748-771\nread InitDefaultCompletionCmd for detail", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "获取Windows下从资源管理器启动时的帮助提示文本", "query": "windows help text", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lang": "zh", "candidates": [{"text": "File: doc/man_docs_test.go\nLine 89: dashParentPath := strings.ReplaceAll(parentPath, \" \", \"-\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 2: //", "file": "powershell_completions_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 61: ignoreCase: false,", "file": "cobra_test.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 48: __%[1]s_init_completion()", "file": "bash_completionsV2.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 50: tests := []struct {", "file": "cobra_test.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 6: //", "file": "active_help.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2659: Run: func(cmd *Command, args []string) {", "file": "command_test.go", "symbol": "", "line": 2659, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 127: sort.Sort(byName(children))", "file": "doc/yaml_docs.go", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 273: Use: \"thechild\",", "file": "active_help_test.go", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 188: printf \"\\n\";", "file": "bash_completionsV2.go", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 204: cmd.InitDefaultHelpFlag()", "file": "doc/man_docs.go", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 2: //", "file": "active_help.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 267: if ($ExecutionContext.SessionState.LanguageMode -eq \"FullLanguage\"){", "file": "powershell_completions.go", "symbol": "", "line": 267, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 223: __%[1]s_index_of_word \"${prev}\" \"${flags_with_completion[@]}\"", "file": "bash_completions.go", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 72: checkStringContains(t, output, echoCmd.Example)", "file": "doc/md_docs_test.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 116: return err", "file": "doc/md_docs.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 235: processFlagForGroupAnnotation(flags, pflag, requiredAsGroupAnnotation, groupStatus)", "file": "flag_groups.go", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 45: return s", "file": "doc/util.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 710: }", "file": "command.go", "symbol": "", "line": 710, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_win.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 31: if MousetrapHelpText != \"\" && mousetrap.StartedByExplorer() {", "file": "command_win.go", "symbol": "", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nLine 13: // limitations under the License.", "file": "command_win.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 1004: // variable. It has the format _ where is the name of the", "file": "completions.go", "symbol": "", "line": 1004, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 72: var MousetrapHelpText = `This is a command line tool.", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "获取Windows下从资源管理器启动时的帮助提示文本", "query": "windows help text", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lang": "zh", "candidates": [{"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "获取Windows下从资源管理器启动时的帮助提示文本", "query": "windows help text", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lang": "zh", "candidates": [{"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "获取Windows下从资源管理器启动时的帮助提示文本", "query": "windows help text", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lang": "zh", "candidates": [{"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=88-111\nread exactArgsWithInvalidCount for detail", "file": "args_test.go", "symbol": "exactArgsWithInvalidCount", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=998-1021\nread configEnvVarSuffixDescriptions for detail", "file": "completions.go", "symbol": "configEnvVarSuffixDescriptions", "line": 998, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=580-603\nread minNamePadding for detail", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=449-472\nread TestChildTakesNoArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesNoArgs", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=537-560\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=579-602\nread comps for detail", "file": "completions.go", "symbol": "comps", "line": 579, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=657-680\nread checkIfFlagCompletion for detail", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2123-2146\nread maxFlags for detail", "file": "completions_test.go", "symbol": "maxFlags", "line": 2123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=308-331\nread aCmdArgs for detail", "file": "command_test.go", "symbol": "aCmdArgs", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=151-174\nread NoFileCompletions for detail", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=101-124\nread compCmdNoDescFlagName for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagName", "line": 101, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "我想看看测试代码里是怎么处理并发注册逻辑的。找到那个用来同步不同线程完成注册状态的同步原语。", "query": "concurrency test waitgroup", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lang": "zh", "candidates": [{"text": "File: doc/yaml_docs.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/yaml_docs.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 34: clean:", "file": "Makefile", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 2032: }", "file": "command.go", "symbol": "", "line": 2032, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_win.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 97: __%[1]s_debug()", "file": "zsh_completions.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 527: format += \" local_nonpersistent_flags+=(\\\"--%[1]s=\" + cbn", "file": "bash_completions.go", "symbol": "", "line": 527, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 304: c.RemoveCommand(completeCmd)", "file": "completions.go", "symbol": "", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 52: assertNoErr(t, rootCmd.GenFishCompletion(buf, true))", "file": "fish_completions_test.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 302: }", "file": "powershell_completions.go", "symbol": "", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "powershell_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 67: rootCmd.DisableAutoGenTag = true", "file": "doc/rest_docs_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/cmd_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 150: var result []cmdOption", "file": "doc/yaml_docs.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 25: // in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 290: }", "file": "flag_groups.go", "symbol": "", "line": 290, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 92: got := err.Error()", "file": "args_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 20: \"fmt\"", "file": "doc/man_docs_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 33: if MousetrapDisplayDuration > 0 {", "file": "command_win.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2141: var wg sync.WaitGroup", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_examples_test.go\nLine 21: \"github.com/spf13/cobra\"", "file": "doc/man_examples_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 49: // The bash completion script will call the bash function f for the flag.", "file": "shell_completions.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 40: // lock for reading and writing from flagCompletionFunctions", "file": "completions.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 165: }", "file": "flag_groups.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1588: rootCmd.AddCommand(childCmd)", "file": "command_test.go", "symbol": "", "line": 1588, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "我想看看测试代码里是怎么处理并发注册逻辑的。找到那个用来同步不同线程完成注册状态的同步原语。", "query": "concurrency test waitgroup", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lang": "zh", "candidates": [{"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "我想看看测试代码里是怎么处理并发注册逻辑的。找到那个用来同步不同线程完成注册状态的同步原语。", "query": "concurrency test waitgroup", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lang": "zh", "candidates": [{"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "我想看看测试代码里是怎么处理并发注册逻辑的。找到那个用来同步不同线程完成注册状态的同步原语。", "query": "concurrency test waitgroup", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lang": "zh", "candidates": [{"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=616-639\nread TestFlagBeforeCommand for detail", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=269-292\nread Context for detail", "file": "command.go", "symbol": "Context", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=30-53\nread BashCompFilenameExt for detail", "file": "bash_completions.go", "symbol": "BashCompFilenameExt", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=262-285\nread TestRootUnknownCommandSilenced for detail", "file": "command_test.go", "symbol": "TestRootUnknownCommandSilenced", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=142-165\nread ExactValidArgs for detail", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=657-680\nread checkIfFlagCompletion for detail", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1001-1024\nread configEnvVarPrefixSubstRegexp for detail", "file": "completions.go", "symbol": "configEnvVarPrefixSubstRegexp", "line": 1001, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=466-489\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=508-531\nread writeFlag for detail", "file": "bash_completions.go", "symbol": "writeFlag", "line": 508, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=44-67\nread TestGenMdDocWithNoLongOrSynopsis for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDocWithNoLongOrSynopsis", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=49-72\nread TestLevenshteinDistance for detail", "file": "cobra_test.go", "symbol": "TestLevenshteinDistance", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=579-602\nread comps for detail", "file": "completions.go", "symbol": "comps", "line": 579, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=89-112\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2141-2164\nread wg for detail", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Je travaille sur la validation des commandes en ligne de commande. Peux-tu m'expliquer comment est gérée la vérification des arguments positionnels par rapport à la liste autorisée, notamment pour le nettoyage des descriptions après les tabulations ?", "query": "validate positional args", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lang": "fr", "candidates": [{"text": "File: fish_completions.go\nLine 154: set --erase __%[1]s_comp_results", "file": "fish_completions.go", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 156: Args: OnlyValidArgs,", "file": "bash_completions_test.go", "symbol": "", "line": 156, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nLine 148: c := getCommand(MatchAll(OnlyValidArgs, NoArgs), true)", "file": "args_test.go", "symbol": "", "line": 148, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nLine 604: }", "file": "bash_completions.go", "symbol": "", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 64: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 246: })", "file": "active_help_test.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 627: }", "file": "bash_completions.go", "symbol": "", "line": 627, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 51: func OnlyValidArgs(cmd *Command, args []string) error {", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args_test.go\nLine 365: _, err := executeCommand(c, \"three\", \"a\", \"two\")", "file": "args_test.go", "symbol": "", "line": 365, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 55: // activeHelpEnvVar returns the name of the program-specific ActiveHelp environment", "file": "active_help.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 47: // not consistent with Bash completion. It has therefore been disabled.", "file": "zsh_completions.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 45: return s", "file": "doc/util.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 608: if len(flag.Shorthand) > 0 {", "file": "bash_completions.go", "symbol": "", "line": 608, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 159: }", "file": "args_test.go", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 5: $(warning \"could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh\")", "file": "Makefile", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 164: return nil", "file": "flag_groups.go", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2326: Args: OnlyValidArgs,", "file": "completions_test.go", "symbol": "", "line": 2326, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nLine 44: // case, with all non-ASCII-alphanumeric characters replaced by `_`.", "file": "active_help.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 140: {", "file": "cobra_test.go", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "active_help_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 13: // limitations under the License.", "file": "zsh_completions_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 143: if _, err := w.Write(final); err != nil {", "file": "doc/yaml_docs.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 27: func assertNoErr(t *testing.T, e error) {", "file": "cobra_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/md_docs_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Je travaille sur la validation des commandes en ligne de commande. Peux-tu m'expliquer comment est gérée la vérification des arguments positionnels par rapport à la liste autorisée, notamment pour le nettoyage des descriptions après les tabulations ?", "query": "validate positional args", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lang": "fr", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Je travaille sur la validation des commandes en ligne de commande. Peux-tu m'expliquer comment est gérée la vérification des arguments positionnels par rapport à la liste autorisée, notamment pour le nettoyage des descriptions après les tabulations ?", "query": "validate positional args", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lang": "fr", "candidates": [{"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Je travaille sur la validation des commandes en ligne de commande. Peux-tu m'expliquer comment est gérée la vérification des arguments positionnels par rapport à la liste autorisée, notamment pour le nettoyage des descriptions après les tabulations ?", "query": "validate positional args", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lang": "fr", "candidates": [{"text": "Next: read zsh_completions.go lines=42-65\nread GenZshCompletionNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionNoDesc", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=644-667\nread writeArgAliases for detail", "file": "bash_completions.go", "symbol": "writeArgAliases", "line": 644, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=505-528\nread getHelpTemplateFunc for detail", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=257-280\nread TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=82-105\nread ArbitraryArgs for detail", "file": "args.go", "symbol": "ArbitraryArgs", "line": 82, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions.go lines=276-299\nread GenFishCompletion for detail", "file": "fish_completions.go", "symbol": "GenFishCompletion", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=426-449\nread TestValidArgsFuncAndCmdCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAndCmdCompletionInGo", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=683-706\nread GenBashCompletion for detail", "file": "bash_completions.go", "symbol": "GenBashCompletion", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=22-45\nread PositionalArgs for detail", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2451-2474\nread removeCompCmd for detail", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=225-248\nread enforceFlagGroupsForCompletion for detail", "file": "flag_groups.go", "symbol": "enforceFlagGroupsForCompletion", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=138-161\nread TestCallCommandWithoutSubcommands for detail", "file": "command_test.go", "symbol": "TestCallCommandWithoutSubcommands", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "コマンドライン引数に対するシェルの補完候補をリクエストするための隠しサブコマンドを初期化する処理を探しています。", "query": "shell completion request", "file": "completions.go", "symbol": "initCompleteCmd", "line": 231, "lang": "ja", "candidates": [{"text": "File: Makefile\nLine 20: golangci-lint run -v", "file": "Makefile", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 137: rootCmd.AddCommand(child)", "file": "fish_completions_test.go", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1110: c.initCompleteCmd(args)", "file": "command.go", "symbol": "", "line": 1110, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nLine 96: if !strings.Contains(got, expected) {", "file": "doc/cmd_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 134: fmt.Sprintf(\"%s%s\", activeHelpMarker, activeHelpMessage),", "file": "active_help_test.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 8: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 686: return nil", "file": "completions_test.go", "symbol": "", "line": 686, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 4002: rootCmd.initCompleteCmd(tc.args)", "file": "completions_test.go", "symbol": "", "line": 4002, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\nLine 56: // GenReST creates reStructured Text output.", "file": "doc/rest_docs.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "zsh_completions_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 241: else", "file": "bash_completionsV2.go", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 231: func (c *Command) initCompleteCmd(args []string) {", "file": "completions.go", "symbol": "initCompleteCmd", "line": 231, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nLine 2: //", "file": "doc/util.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 78: // if the CLI is started from explorer.exe. Set to 0 to wait for the return key to be pressed.", "file": "cobra.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1090: if c.HasParent() {", "file": "command.go", "symbol": "", "line": 1090, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 447: }", "file": "args_test.go", "symbol": "", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 166: set --global __%[1]s_comp_results $__%[1]s_perform_completion_once_result[1..-2]", "file": "fish_completions.go", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 63: checkStringOmits(t, output, \"Options inherited from parent commands\")", "file": "doc/rest_docs_test.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 275: # Type: menu-complete/menu-complete-backward and insert-completions", "file": "bash_completionsV2.go", "symbol": "", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 65: buf.WriteString(cmd.Short + \"\\n\\n\")", "file": "doc/md_docs.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 23: \"strings\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 20: \"github.com/spf13/cobra\"", "file": "doc/util.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 109: t.Errorf(\"rootCmdArgs expected: %q, got: %q\", onetwo, got)", "file": "command_test.go", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "コマンドライン引数に対するシェルの補完候補をリクエストするための隠しサブコマンドを初期化する処理を探しています。", "query": "shell completion request", "file": "completions.go", "symbol": "initCompleteCmd", "line": 231, "lang": "ja", "candidates": [{"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "コマンドライン引数に対するシェルの補完候補をリクエストするための隠しサブコマンドを初期化する処理を探しています。", "query": "shell completion request", "file": "completions.go", "symbol": "initCompleteCmd", "line": 231, "lang": "ja", "candidates": [{"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "コマンドライン引数に対するシェルの補完候補をリクエストするための隠しサブコマンドを初期化する処理を探しています。", "query": "shell completion request", "file": "completions.go", "symbol": "initCompleteCmd", "line": 231, "lang": "ja", "candidates": [{"text": "Next: read command.go lines=393-416\nread OutOrStdout for detail", "file": "command.go", "symbol": "OutOrStdout", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=78-101\nread bashCompletionFunc for detail", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=277-300\nread TestMaximumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2902-2925\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2902, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=77-100\nread maximumNArgsWithMoreArgs for detail", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=95-118\nread checkStringContains for detail", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=27-50\nread assertNoErr for detail", "file": "cobra_test.go", "symbol": "assertNoErr", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=279-302\nread TestBashCompletionNoActiveHelp for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionNoActiveHelp", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=643-666\nread ErrPrefix for detail", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=470-493\nread GenBashCompletionFileV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionFileV2", "line": 470, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=209-232\nread sortedKeys for detail", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=231-254\nread initCompleteCmd for detail", "file": "completions.go", "symbol": "initCompleteCmd", "line": 231, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read powershell_completions.go lines=348-371\nread GenPowerShellCompletionWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionWithDesc", "line": 348, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=127-150\nread TestGenManSeeAlso for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "ShellCompletions에서 ArgAliases가 ValidArgs와 겹칠 때 어떻게 처리되는지 테스트하는 코드를 찾아주세요.", "query": "arg aliases completion test", "file": "completions_test.go", "symbol": "TestArgAliasesCompletionInGo", "line": 2323, "lang": "ko", "candidates": [{"text": "File: doc/yaml_docs_test.go\nLine 25: )", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 15: package cobra", "file": "powershell_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 288: else", "file": "zsh_completions.go", "symbol": "", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 535: if len(finalCmd.ValidArgs) > 0 {", "file": "completions.go", "symbol": "", "line": 535, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 96: }", "file": "doc/md_docs.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 120: return fmt.Errorf(\"accepts between %d and %d arg(s), received %d\", min, max, len(args))", "file": "args.go", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 84: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 52: func GenMarkdown(cmd *cobra.Command, w io.Writer) error {", "file": "doc/md_docs.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 56: expected = expected + \"(\" + header.Section + \")\"", "file": "doc/man_docs_test.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 130: if err := parg(cmd, args); err != nil {", "file": "args.go", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "powershell_completions_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 354: exactArgsWithInvalidCount(err, t)", "file": "args_test.go", "symbol": "", "line": 354, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2940: if cmd.Context() != executionCtx {", "file": "command_test.go", "symbol": "", "line": 2940, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 8: //", "file": "doc/cmd_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 75: $ShellCompDirectiveError=%[4]d", "file": "powershell_completions.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 55: expected int", "file": "cobra_test.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 56: Aliases: []string{\"say\"},", "file": "doc/cmd_test.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2323: func TestArgAliasesCompletionInGo(t *testing.T) {", "file": "completions_test.go", "symbol": "TestArgAliasesCompletionInGo", "line": 2323, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 256: _ = os.Mkdir(dirname, 0770)", "file": "cobra_test.go", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 58: checkStringContains(t, output, \"boolone\")", "file": "doc/rest_docs_test.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 106: expectErr: `if any flags in the group [a b] are set none of the others can be; [a b] were all set`,", "file": "flag_groups_test.go", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 25: \"github.com/spf13/cobra\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "zsh_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "ShellCompletions에서 ArgAliases가 ValidArgs와 겹칠 때 어떻게 처리되는지 테스트하는 코드를 찾아주세요.", "query": "arg aliases completion test", "file": "completions_test.go", "symbol": "TestArgAliasesCompletionInGo", "line": 2323, "lang": "ko", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "ShellCompletions에서 ArgAliases가 ValidArgs와 겹칠 때 어떻게 처리되는지 테스트하는 코드를 찾아주세요.", "query": "arg aliases completion test", "file": "completions_test.go", "symbol": "TestArgAliasesCompletionInGo", "line": 2323, "lang": "ko", "candidates": [{"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "ShellCompletions에서 ArgAliases가 ValidArgs와 겹칠 때 어떻게 처리되는지 테스트하는 코드를 찾아주세요.", "query": "arg aliases completion test", "file": "completions_test.go", "symbol": "TestArgAliasesCompletionInGo", "line": 2323, "lang": "ko", "candidates": [{"text": "Next: read command.go lines=296-319\nread SetOut for detail", "file": "command.go", "symbol": "SetOut", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=95-118\nread checkStringContains for detail", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=696-719\nread nonCompletableFlag for detail", "file": "bash_completions.go", "symbol": "nonCompletableFlag", "line": 696, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2323-2346\nread TestArgAliasesCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestArgAliasesCompletionInGo", "line": 2323, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=82-105\nread ArbitraryArgs for detail", "file": "args.go", "symbol": "ArbitraryArgs", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=43-66\nread TestGenRSTNoHiddenParents for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoHiddenParents", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=90-113\nread MarkPersistentFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagDirname", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=48-71\nread defaultCaseInsensitive for detail", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=120-143\nread TestFailGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestFailGenFishCompletionFile", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=28-51\nread genPowerShellComp for detail", "file": "powershell_completions.go", "symbol": "genPowerShellComp", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=818-841\nread TestPersistentFlagsOnChild for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnChild", "line": 818, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=81-104\nread ValidateFlagGroups for detail", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=60-83\nread GenYamlTreeCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTreeCustom", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=141-164\nread TestNoArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=24-47\nread genBashCompletion for detail", "file": "bash_completionsV2.go", "symbol": "genBashCompletion", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "補完関数(ValidArgsFunction)の実行時に、親コマンドから渡されたコンテキストの値が正しく引き継がれていない可能性があるため、コンテキストが欠落したり値が不一致になったりしないか確認したい。特に、サブコマンドの補完要求時にコンテキストが正しく伝播しているかを検証するテストケースが必要。", "query": "context valid-args completion", "file": "completions_test.go", "symbol": "TestValidArgsFuncCmdContext", "line": 1276, "lang": "ja", "candidates": [{"text": "File: active_help.go\nLine 8: //", "file": "active_help.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 8: //", "file": "doc/man_docs_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 18: package cobra", "file": "command_notwin.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 776: See each sub-command's help for details on how to use the generated script.", "file": "completions.go", "symbol": "", "line": 776, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/rest_docs_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 21: // MarkFlagRequired instructs the various shell completion implementations to", "file": "shell_completions.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 107: if len(cmd.Example) > 0 {", "file": "doc/yaml_docs.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 533: func TestExactValidArgs_WithInvalidCount(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 533, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 207: if s[i-1] == t[j-1] {", "file": "cobra.go", "symbol": "", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1975: }", "file": "command_test.go", "symbol": "", "line": 1975, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 8: //", "file": "command_notwin.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 30: func preExecHook(c *Command) {", "file": "command_win.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 269: return $result", "file": "zsh_completions.go", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 39: os.Exit(1)", "file": "command_win.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 45: }", "file": "args.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 403: _, err := executeCommand(c, \"two\")", "file": "args_test.go", "symbol": "", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1779: if act := hookRunOrder[idx]; act != exp {", "file": "command_test.go", "symbol": "", "line": 1779, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 17: import (", "file": "doc/cmd_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 46: buf := new(bytes.Buffer)", "file": "doc/md_docs_test.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1276: func TestValidArgsFuncCmdContext(t *testing.T) {", "file": "completions_test.go", "symbol": "TestValidArgsFuncCmdContext", "line": 1276, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nLine 45: // It will always return \"0\" if the global environment variable COBRA_ACTIVE_HELP", "file": "active_help.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 229: }", "file": "cobra.go", "symbol": "", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 350: }", "file": "powershell_completions.go", "symbol": "", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 183: cobra.WriteStringAndCheck(buf, fmt.Sprintf(format, flag.DefValue, flag.Usage))", "file": "doc/man_docs.go", "symbol": "", "line": 183, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "補完関数(ValidArgsFunction)の実行時に、親コマンドから渡されたコンテキストの値が正しく引き継がれていない可能性があるため、コンテキストが欠落したり値が不一致になったりしないか確認したい。特に、サブコマンドの補完要求時にコンテキストが正しく伝播しているかを検証するテストケースが必要。", "query": "context valid-args completion", "file": "completions_test.go", "symbol": "TestValidArgsFuncCmdContext", "line": 1276, "lang": "ja", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "補完関数(ValidArgsFunction)の実行時に、親コマンドから渡されたコンテキストの値が正しく引き継がれていない可能性があるため、コンテキストが欠落したり値が不一致になったりしないか確認したい。特に、サブコマンドの補完要求時にコンテキストが正しく伝播しているかを検証するテストケースが必要。", "query": "context valid-args completion", "file": "completions_test.go", "symbol": "TestValidArgsFuncCmdContext", "line": 1276, "lang": "ja", "candidates": [{"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "補完関数(ValidArgsFunction)の実行時に、親コマンドから渡されたコンテキストの値が正しく引き継がれていない可能性があるため、コンテキストが欠落したり値が不一致になったりしないか確認したい。特に、サブコマンドの補完要求時にコンテキストが正しく伝播しているかを検証するテストケースが必要。", "query": "context valid-args completion", "file": "completions_test.go", "symbol": "TestValidArgsFuncCmdContext", "line": 1276, "lang": "ja", "candidates": [{"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=80-103\nread ShellCompDirectiveFilterDirs for detail", "file": "completions.go", "symbol": "ShellCompDirectiveFilterDirs", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=81-104\nread TestGenMdNoTag for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoTag", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=86-109\nread BenchmarkGenYamlToFile for detail", "file": "doc/yaml_docs_test.go", "symbol": "BenchmarkGenYamlToFile", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1276-1299\nread TestValidArgsFuncCmdContext for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncCmdContext", "line": 1276, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=327-350\nread err for detail", "file": "completions.go", "symbol": "err", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=55-78\nread EnablePrefixMatching for detail", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=652-675\nread gen for detail", "file": "bash_completions.go", "symbol": "gen", "line": 652, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=142-165\nread ExactValidArgs for detail", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=383-406\nread TestRangeArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=429-452\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 429, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=316-339\nread getCompletions for detail", "file": "completions.go", "symbol": "getCompletions", "line": 316, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=30-53\nread install_deps for detail", "file": "Makefile", "symbol": "install_deps", "line": 30, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "サブコマンドのフラグ補完機能が、RegisterFlagCompletionFunc呼び出し後に子コマンドをルートに追加する順序でも正しく機能することを確認してください。", "query": "flag completion order subcommand", "file": "completions_test.go", "symbol": "TestFlagCompletionWorksRootCommandAddedAfterFlags", "line": 2044, "lang": "ja", "candidates": [{"text": "File: command_test.go\nLine 1004: Use: \"help [command]\",", "file": "command_test.go", "symbol": "", "line": 1004, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 131: # For zsh, when completing a flag with an = (e.g., %[1]s -n=)", "file": "zsh_completions.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 82: func ArbitraryArgs(cmd *Command, args []string) error {", "file": "args.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "bash_completions_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 37: checkStringContains(t, output, \"rootflag\")", "file": "doc/rest_docs_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "bash_completionsV2_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 136: }", "file": "args.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 152: flags.VisitAll(func(flag *pflag.Flag) {", "file": "doc/yaml_docs.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 110: flagGroupsExclusive: []string{\"f g\"},", "file": "flag_groups_test.go", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/cmd_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 64: {", "file": "cobra_test.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 88: // groupStatus format is the list of flags as a unique ID,", "file": "flag_groups.go", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 146: bv := reflect.ValueOf(b)", "file": "cobra.go", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 8: //", "file": "doc/man_examples_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2044: func TestFlagCompletionWorksRootCommandAddedAfterFlags(t *testing.T) {", "file": "completions_test.go", "symbol": "TestFlagCompletionWorksRootCommandAddedAfterFlags", "line": 2044, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nLine 2892: {\"--namespace=foo\", \"child\", \"--bar\", \"--unknown\"},", "file": "command_test.go", "symbol": "", "line": 2892, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 14: fmt:", "file": "Makefile", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 163: },", "file": "cobra_test.go", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 184: }", "file": "flag_groups_test.go", "symbol": "", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 208: expected: \" \",", "file": "cobra_test.go", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 2: //", "file": "doc/man_examples_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 43: Title: \"MINE\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 267: popd >/dev/null 2>&1", "file": "zsh_completions.go", "symbol": "", "line": 267, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "サブコマンドのフラグ補完機能が、RegisterFlagCompletionFunc呼び出し後に子コマンドをルートに追加する順序でも正しく機能することを確認してください。", "query": "flag completion order subcommand", "file": "completions_test.go", "symbol": "TestFlagCompletionWorksRootCommandAddedAfterFlags", "line": 2044, "lang": "ja", "candidates": [{"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "サブコマンドのフラグ補完機能が、RegisterFlagCompletionFunc呼び出し後に子コマンドをルートに追加する順序でも正しく機能することを確認してください。", "query": "flag completion order subcommand", "file": "completions_test.go", "symbol": "TestFlagCompletionWorksRootCommandAddedAfterFlags", "line": 2044, "lang": "ja", "candidates": [{"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "サブコマンドのフラグ補完機能が、RegisterFlagCompletionFunc呼び出し後に子コマンドをルートに追加する順序でも正しく機能することを確認してください。", "query": "flag completion order subcommand", "file": "completions_test.go", "symbol": "TestFlagCompletionWorksRootCommandAddedAfterFlags", "line": 2044, "lang": "ja", "candidates": [{"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2044-2067\nread TestFlagCompletionWorksRootCommandAddedAfterFlags for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWorksRootCommandAddedAfterFlags", "line": 2044, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=327-350\nread TestExactArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups_test.go lines=22-45\nread TestValidateFlagGroups for detail", "file": "flag_groups_test.go", "symbol": "TestValidateFlagGroups", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions_test.go lines=23-46\nread TestPwshCompletionNoActiveHelp for detail", "file": "powershell_completions_test.go", "symbol": "TestPwshCompletionNoActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=28-51\nread genPowerShellComp for detail", "file": "powershell_completions.go", "symbol": "genPowerShellComp", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=28-51\nread preExecHookFn for detail", "file": "command_win.go", "symbol": "preExecHookFn", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=308-331\nread SetIn for detail", "file": "command.go", "symbol": "SetIn", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=177-200\nread TestExecuteContext for detail", "file": "command_test.go", "symbol": "TestExecuteContext", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=283-306\nread TestMaximumNArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=275-298\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=528-551\nread TestFlagShort for detail", "file": "command_test.go", "symbol": "TestFlagShort", "line": 528, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=562-585\nread TestChildFlag for detail", "file": "command_test.go", "symbol": "TestChildFlag", "line": 562, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "trouver la liste des arguments de la commande racine", "query": "root command args", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 89, "lang": "fr", "candidates": [{"text": "File: args_test.go\nLine 398: rangeArgsWithInvalidCount(err, t)", "file": "args_test.go", "symbol": "", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 15: $(info ******************** checking formatting ********************)", "file": "Makefile", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 276: \"MenuComplete\" {", "file": "powershell_completions.go", "symbol": "", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/cmd_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 463: WriteStringAndCheck(buf, fmt.Sprintf(\" flags_with_completion+=(%q)\\n\", name))", "file": "bash_completions.go", "symbol": "", "line": 463, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3199: \"Completion ended with directive: ShellCompDirectiveNoFileComp\", \"\"}, \"\\n\"),", "file": "completions_test.go", "symbol": "", "line": 3199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 257: // SuggestionsMinimumDistance defines minimum levenshtein distance to display suggestions.", "file": "command.go", "symbol": "", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 244: }", "file": "doc/man_docs.go", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 20: \"os\"", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 81: if err := GenYamlCustom(cmd, f, linkHandler); err != nil {", "file": "doc/yaml_docs.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 150: # NAME", "file": "doc/man_docs.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 144: expected: false,", "file": "cobra_test.go", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 13: // limitations under the License.", "file": "doc/yaml_docs.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 549: if strings.HasPrefix(argAlias, toComplete) {", "file": "completions.go", "symbol": "", "line": 549, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 5: $(warning \"could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh\")", "file": "Makefile", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 131: cCmd := &cobra.Command{Use: \"ccc\", Run: emptyRun}", "file": "doc/man_docs_test.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 54: checkStringOmits(t, output, \"Auto generated\")", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2593: assertNoErr(t, rootCmd.Execute())", "file": "completions_test.go", "symbol": "", "line": 2593, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 47: func GetActiveHelpConfig(cmd *Command) string {", "file": "active_help.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 98: }", "file": "doc/cmd_test.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1550: // HasAlias determines if a given string is an alias of the command.", "file": "command.go", "symbol": "", "line": 1550, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 88: parentPath := echoCmd.Parent().CommandPath()", "file": "doc/man_docs_test.go", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 89: var rootCmdArgs []string", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 89, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions.go\nLine 939: } else {", "file": "completions.go", "symbol": "", "line": 939, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "trouver la liste des arguments de la commande racine", "query": "root command args", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 89, "lang": "fr", "candidates": [{"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "trouver la liste des arguments de la commande racine", "query": "root command args", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 89, "lang": "fr", "candidates": [{"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "trouver la liste des arguments de la commande racine", "query": "root command args", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 89, "lang": "fr", "candidates": [{"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=45-68\nread Group for detail", "file": "command.go", "symbol": "Group", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=87-110\nread genZshComp for detail", "file": "zsh_completions.go", "symbol": "genZshComp", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=393-416\nread OutOrStdout for detail", "file": "command.go", "symbol": "OutOrStdout", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=243-266\nread WriteStringAndCheck for detail", "file": "cobra.go", "symbol": "WriteStringAndCheck", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=253-276\nread dirname for detail", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2141-2164\nread wg for detail", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=266-289\nread TestConfigActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestConfigActiveHelp", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=50-73\nread Len for detail", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=313-336\nread TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=632-655\nread completeRequireFlags for detail", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=170-193\nread RegisterFlagCompletionFunc for detail", "file": "completions.go", "symbol": "RegisterFlagCompletionFunc", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=89-112\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 89, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=844-867\nread TestRequiredFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestRequiredFlagNameCompletionInGo", "line": 844, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2896-2919\nread TestCompletionFuncCompatibility for detail", "file": "completions_test.go", "symbol": "TestCompletionFuncCompatibility", "line": 2896, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Quiero ejecutar las pruebas y formatear el código en una sola operación para asegurar que todo está limpio antes de enviar los cambios.", "query": "run tests format", "file": "Makefile", "symbol": "all", "line": 12, "lang": "es", "candidates": [{"text": "File: fish_completions.go\nLine 47: # Extract all args except the last one", "file": "fish_completions.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 244: // See also: https://github.com/spf13/cobra/pull/1956", "file": "cobra_test.go", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 5: // You may obtain a copy of the License at", "file": "zsh_completions_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "doc/man_examples_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 36: // the array. Each time this function is called with the same array, the new", "file": "active_help.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 44: // case, with all non-ASCII-alphanumeric characters replaced by `_`.", "file": "active_help.go", "symbol": "", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nLine 53: // to register a Go function which will work across all shells.", "file": "shell_completions.go", "symbol": "", "line": 53, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nLine 64: // EnableTraverseRunHooks executes persistent pre-run and post-run hooks from all parents.", "file": "cobra.go", "symbol": "", "line": 64, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nLine 1681: for _, v := range []struct {", "file": "command_test.go", "symbol": "", "line": 1681, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 66: expectErr: \"if any flags in the group [a b c] are set they must all be set; missing [b c]\",", "file": "flag_groups_test.go", "symbol": "", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nLine 33: // GenManTree will generate a man page for this command and all descendants", "file": "doc/man_docs.go", "symbol": "", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nLine 15: package cobra", "file": "zsh_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 162: }", "file": "flag_groups.go", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 72: f, err := os.Create(filename)", "file": "doc/yaml_docs.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 73: return fmt.Errorf(\"duplicate argument %q for %q\", arg, cmd.CommandPath())", "file": "args.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 33: }", "file": "doc/util.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 28: output := buf.String()", "file": "zsh_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 12: all: fmt test", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command.go\nLine 85: // ValidArgs is list of all valid non-flag arguments that are accepted in shell completions", "file": "command.go", "symbol": "", "line": 85, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nLine 72: if err != nil {", "file": "zsh_completions.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 62: var EnableCaseInsensitive = defaultCaseInsensitive", "file": "cobra.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 130: a: \"apple\",", "file": "cobra_test.go", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 113: __%[1]s_debug \"Activating no space\"", "file": "bash_completionsV2.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 65: return err", "file": "bash_completions_test.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Quiero ejecutar las pruebas y formatear el código en una sola operación para asegurar que todo está limpio antes de enviar los cambios.", "query": "run tests format", "file": "Makefile", "symbol": "all", "line": 12, "lang": "es", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\ndefines all", "file": "Makefile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Quiero ejecutar las pruebas y formatear el código en una sola operación para asegurar que todo está limpio antes de enviar los cambios.", "query": "run tests format", "file": "Makefile", "symbol": "all", "line": 12, "lang": "es", "candidates": [{"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1575-1598\nread TestCompleteCmdInBashScript for detail", "file": "completions_test.go", "symbol": "TestCompleteCmdInBashScript", "line": 1575, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=570-593\nread minCommandPathPadding for detail", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=49-72\nread defaultTraverseRunHooks for detail", "file": "cobra.go", "symbol": "defaultTraverseRunHooks", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=60-83\nread GenYamlTreeCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTreeCustom", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=235-258\nread CheckErr for detail", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=144-167\nread validateRequiredFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateRequiredFlagGroups", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=844-867\nread TestRequiredFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestRequiredFlagNameCompletionInGo", "line": 844, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=367-390\nread SetVersionTemplate for detail", "file": "command.go", "symbol": "SetVersionTemplate", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=592-615\nread UsageTemplate for detail", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=52-75\nread Error for detail", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=377-400\nread TestRangeArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2902-2925\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2902, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=537-560\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=401-424\nread TestRangeArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid", "line": 401, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "测试执行根命令的子命令 'child' 时,验证返回的命令对象名称是否正确,并确认没有意外的输出或错误。", "query": "subcommand execute name", "file": "command_test.go", "symbol": "TestSubcommandExecuteC", "line": 159, "lang": "zh", "candidates": [{"text": "File: zsh_completions.go\nLine 47: // not consistent with Bash completion. It has therefore been disabled.", "file": "zsh_completions.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 298: maximumNArgsWithMoreArgs(err, t)", "file": "args_test.go", "symbol": "", "line": 298, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3493: args: []string{\"child\", \"-v\", \"-\"},", "file": "completions_test.go", "symbol": "", "line": 3493, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 144: return err", "file": "doc/yaml_docs.go", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 879: Use: \"fish\",", "file": "completions.go", "symbol": "", "line": 879, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 196: c := getCommand(ArbitraryArgs, false)", "file": "args_test.go", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 80: Long: `an absolutely utterly useless command for testing deprecation!.`,", "file": "doc/cmd_test.go", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 159: func TestSubcommandExecuteC(t *testing.T) {", "file": "command_test.go", "symbol": "TestSubcommandExecuteC", "line": 159, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions_test.go\nLine 21: \"os\"", "file": "fish_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 8: //", "file": "shell_completions.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 192: var set []string", "file": "flag_groups.go", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 6: //", "file": "doc/man_examples_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 35: } else {", "file": "command_win.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 299: t.Error(\"compiled programs contains MethodByName symbol\")", "file": "cobra_test.go", "symbol": "", "line": 299, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 150: var result []cmdOption", "file": "doc/yaml_docs.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 75: fmt.Sprintf(\"%s%s\", activeHelpMarker, activeHelpMessage),", "file": "active_help_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 145: keys := sortedKeys(data)", "file": "flag_groups.go", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 167: for _, flagGroup := range tc.flagGroupsRequired {", "file": "flag_groups_test.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 171: c.MarkFlagsOneRequired(strings.Split(flagGroup, \" \")...)", "file": "flag_groups_test.go", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 30: // check that active help is not being disabled", "file": "zsh_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 12: all: fmt test", "file": "Makefile", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 73: return err", "file": "zsh_completions.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 27: $(info ******************** running tests with kyoh86/richgo ********************)", "file": "Makefile", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "测试执行根命令的子命令 'child' 时,验证返回的命令对象名称是否正确,并确认没有意外的输出或错误。", "query": "subcommand execute name", "file": "command_test.go", "symbol": "TestSubcommandExecuteC", "line": 159, "lang": "zh", "candidates": [{"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "测试执行根命令的子命令 'child' 时,验证返回的命令对象名称是否正确,并确认没有意外的输出或错误。", "query": "subcommand execute name", "file": "command_test.go", "symbol": "TestSubcommandExecuteC", "line": 159, "lang": "zh", "candidates": [{"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "测试执行根命令的子命令 'child' 时,验证返回的命令对象名称是否正确,并确认没有意外的输出或错误。", "query": "subcommand execute name", "file": "command_test.go", "symbol": "TestSubcommandExecuteC", "line": 159, "lang": "zh", "candidates": [{"text": "Next: read doc/cmd_test.go lines=95-118\nread checkStringContains for detail", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=328-351\nread SetFlagErrorFunc for detail", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=313-336\nread TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=159-182\nread TestSubcommandExecuteC for detail", "file": "command_test.go", "symbol": "TestSubcommandExecuteC", "line": 159, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=90-113\nread shellCompDirectiveMaxValue for detail", "file": "completions.go", "symbol": "shellCompDirectiveMaxValue", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=289-312\nread SetOutput for detail", "file": "command.go", "symbol": "SetOutput", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=50-73\nread Len for detail", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=605-628\nread HelpTemplate for detail", "file": "command.go", "symbol": "HelpTemplate", "line": 605, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=26-49\nread activeHelpEnvVarSuffix for detail", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=159-182\nread trimRightSpace for detail", "file": "cobra.go", "symbol": "trimRightSpace", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=320-343\nread genPowerShellCompletionFile for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletionFile", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs_test.go lines=75-98\nread TestGenYamlDocRunnable for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDocRunnable", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=94-117\nread GenManHeader for detail", "file": "doc/man_docs.go", "symbol": "GenManHeader", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=55-78\nread MarkZshCompPositionalArgumentFile for detail", "file": "zsh_completions.go", "symbol": "MarkZshCompPositionalArgumentFile", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=321-344\nread TestExactArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=201-224\nread directives for detail", "file": "completions.go", "symbol": "directives", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2123-2146\nread maxFlags for detail", "file": "completions_test.go", "symbol": "maxFlags", "line": 2123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "在执行构建流程时,如果代码格式不符合标准,构建应该自动报错并打印出具体的差异内容,以便于在流水线中拦截不规范的代码。", "query": "gofmt check", "file": "Makefile", "symbol": "fmt", "line": 14, "lang": "zh", "candidates": [{"text": "File: doc/rest_docs.go\nLine 145: func GenReSTTreeCustom(cmd *cobra.Command, dir string, filePrepender func(string) string, linkHandler func(string, string) string) error {", "file": "doc/rest_docs.go", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 225: func (c *Command) enforceFlagGroupsForCompletion() {", "file": "flag_groups.go", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 22: \"fmt\"", "file": "powershell_completions.go", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nLine 14: fmt:", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions_test.go\nLine 30: ValidArgsFunction: validArgsFunc,", "file": "fish_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 61: checkStringContains(t, output, echoSubCmd.Short)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 31: BashCompCustom = \"cobra_annotation_bash_completion_custom\"", "file": "bash_completions.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 50: func (s byName) Len() int { return len(s) }", "file": "doc/util.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 2: //", "file": "doc/rest_docs.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 227: func TestMinimumNArgs_WithValid(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 19: \"fmt\"", "file": "bash_completionsV2_test.go", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nLine 18: \"bytes\"", "file": "zsh_completions_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 18: \"fmt\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\nLine 1770: \"Completion ended with directive: ShellCompDirectiveNoFileComp\", \"\"}, \"\\n\")", "file": "completions_test.go", "symbol": "", "line": 1770, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 232: if [ $((directive & shellCompDirectiveKeepOrder)) -ne 0 ]; then", "file": "zsh_completions.go", "symbol": "", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 113: sort.Sort(byName(children))", "file": "doc/rest_docs.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 143: return MatchAll(ExactArgs(n), OnlyValidArgs)", "file": "args.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 19: \"fmt\"", "file": "bash_completionsV2.go", "symbol": "", "line": 19, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nLine 18: \"fmt\"", "file": "flag_groups.go", "symbol": "", "line": 18, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nLine 144: }", "file": "args.go", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 6: //", "file": "args.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 21: \"fmt\"", "file": "cobra.go", "symbol": "", "line": 21, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nLine 24: func emptyRun(*cobra.Command, []string) {}", "file": "doc/cmd_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 127: func MatchAll(pargs ...PositionalArgs) PositionalArgs {", "file": "args.go", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "在执行构建流程时,如果代码格式不符合标准,构建应该自动报错并打印出具体的差异内容,以便于在流水线中拦截不规范的代码。", "query": "gofmt check", "file": "Makefile", "symbol": "fmt", "line": 14, "lang": "zh", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\ndefines fmt", "file": "Makefile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "在执行构建流程时,如果代码格式不符合标准,构建应该自动报错并打印出具体的差异内容,以便于在流水线中拦截不规范的代码。", "query": "gofmt check", "file": "Makefile", "symbol": "fmt", "line": 14, "lang": "zh", "candidates": [{"text": "Next: read completions.go lines=664-687\nread flagName for detail", "file": "completions.go", "symbol": "flagName", "line": 664, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=328-351\nread SetFlagErrorFunc for detail", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=657-680\nread checkIfFlagCompletion for detail", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=155-178\nread TestOnlyValidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=186-209\nread GetFlagCompletionFunc for detail", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2451-2474\nread removeCompCmd for detail", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=740-763\nread TestPersistentFlagsOnSameCommand for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnSameCommand", "line": 740, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=358-381\nread SetHelpTemplate for detail", "file": "command.go", "symbol": "SetHelpTemplate", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=276-299\nread GenFishCompletion for detail", "file": "fish_completions.go", "symbol": "GenFishCompletion", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=200-223\nread string for detail", "file": "completions.go", "symbol": "string", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=401-424\nread TestRangeArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=376-399\nread SetErrPrefix for detail", "file": "command.go", "symbol": "SetErrPrefix", "line": 376, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=47-70\nread GetActiveHelpConfig for detail", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread right for detail", "file": "cobra.go", "symbol": "right", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=758-781\nread innerfind for detail", "file": "command.go", "symbol": "innerfind", "line": 758, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Necesito definir una nueva constante de cadena para identificar una anotación específica de Cobra. Esta anotación se usará para marcar opciones que son requeridas solo cuando se establecen otros grupos de argumentos.", "query": "cobra required annotation", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lang": "es", "candidates": [{"text": "File: flag_groups_test.go\nLine 146: args: []string{\"subcmd\"},", "file": "flag_groups_test.go", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 60: checkStringContains(t, output, translate(echoCmd.Name()))", "file": "doc/man_docs_test.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 49: }", "file": "doc/md_docs.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 205: return nil", "file": "doc/man_docs_test.go", "symbol": "", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "zsh_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 26: requiredAsGroupAnnotation = \"cobra_annotation_required_if_others_set\"", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command.go\nLine 243: DisableFlagParsing bool", "file": "command.go", "symbol": "", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 5: // You may obtain a copy of the License at", "file": "shell_completions.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 37: fmt.Scanln()", "file": "command_win.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 165: set -l directive (string sub --start 2 $__%[1]s_perform_completion_once_result[-1])", "file": "fish_completions.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 28: const (", "file": "completions.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1946: Aliases:", "file": "command.go", "symbol": "", "line": 1946, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 48: // GenYamlTree creates yaml structured ref files for this command and all descendants", "file": "doc/yaml_docs.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_notwin.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 355: done", "file": "bash_completionsV2.go", "symbol": "", "line": 355, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 2057: }", "file": "command.go", "symbol": "", "line": 2057, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 204: # We first need to escape any : as part of the completion itself.", "file": "zsh_completions.go", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 125: if !cmd.DisableAutoGenTag {", "file": "doc/rest_docs.go", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1825: Run: emptyRun,", "file": "completions_test.go", "symbol": "", "line": 1825, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 288: else", "file": "zsh_completions.go", "symbol": "", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 74: checkStringOmits(t, output, \"rootflag\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/man_docs_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 559: if err != nil {", "file": "args_test.go", "symbol": "", "line": 559, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 656: }", "file": "bash_completions.go", "symbol": "", "line": 656, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Necesito definir una nueva constante de cadena para identificar una anotación específica de Cobra. Esta anotación se usará para marcar opciones que son requeridas solo cuando se establecen otros grupos de argumentos.", "query": "cobra required annotation", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lang": "es", "candidates": [{"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Necesito definir una nueva constante de cadena para identificar una anotación específica de Cobra. Esta anotación se usará para marcar opciones que son requeridas solo cuando se establecen otros grupos de argumentos.", "query": "cobra required annotation", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lang": "es", "candidates": [{"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> github.com/spf13/pflag", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> strings", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Necesito definir una nueva constante de cadena para identificar una anotación específica de Cobra. Esta anotación se usará para marcar opciones que son requeridas solo cuando se establecen otros grupos de argumentos.", "query": "cobra required annotation", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lang": "es", "candidates": [{"text": "Next: read cobra.go lines=159-182\nread trimRightSpace for detail", "file": "cobra.go", "symbol": "trimRightSpace", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=547-570\nread FlagErrorFunc for detail", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=49-72\nread TestLevenshteinDistance for detail", "file": "cobra_test.go", "symbol": "TestLevenshteinDistance", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=275-298\nread SetContext for detail", "file": "command.go", "symbol": "SetContext", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=997-1020\nread configEnvVarGlobalPrefix for detail", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=65-88\nread MarkFlagsMutuallyExclusive for detail", "file": "flag_groups.go", "symbol": "MarkFlagsMutuallyExclusive", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completionsV2_test.go lines=23-46\nread TestBashCompletionV2WithActiveHelp for detail", "file": "bash_completionsV2_test.go", "symbol": "TestBashCompletionV2WithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=465-488\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=113-136\nread TestChildCommand for detail", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=207-230\nread TestArbitraryArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=263-286\nread TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=466-489\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=181-204\nread TestNoDuplicateArgs_WithValid_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=89-112\nread TestFishCompletionNoActiveHelp for detail", "file": "fish_completions_test.go", "symbol": "TestFishCompletionNoActiveHelp", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=587-610\nread helpOrVersionFlagPresent for detail", "file": "completions.go", "symbol": "helpOrVersionFlagPresent", "line": 587, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=980-1003\nread CompDebugln for detail", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "マニュアル生成時に、非表示のコマンドが参照セクションに含まれないことを確認しているテストはどこですか?", "query": "GenMan SEE ALSO", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lang": "ja", "candidates": [{"text": "File: fish_completions.go\nLine 251: # the existing completions will only be loaded if the program can be found.", "file": "fish_completions.go", "symbol": "", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 89: func TestFishCompletionNoActiveHelp(t *testing.T) {", "file": "fish_completions_test.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 73: return fmt.Errorf(\"duplicate argument %q for %q\", arg, cmd.CommandPath())", "file": "args.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 45: // It will always return \"0\" if the global environment variable COBRA_ACTIVE_HELP", "file": "active_help.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1958: Additional Commands:{{range $cmds}}{{if (and (eq .GroupID \"\") (or .IsAvailableCommand (eq .Name \"help\")))}}", "file": "command.go", "symbol": "", "line": 1958, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 19: \"fmt\"", "file": "doc/man_docs.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 56: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 127: func TestGenManSeeAlso(t *testing.T) {", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nLine 116: defer os.Remove(file.Name())", "file": "doc/md_docs_test.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 113: __%[1]s_debug \"\"", "file": "fish_completions.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 18: \"bytes\"", "file": "zsh_completions_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 18: \"bytes\"", "file": "doc/rest_docs_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 204: # We first need to escape any : as part of the completion itself.", "file": "zsh_completions.go", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 13: // limitations under the License.", "file": "command_win.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 84: return MarkFlagDirname(c.Flags(), name)", "file": "shell_completions.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 392: __%[1]s_debug \"Original comp: $comp\"", "file": "bash_completionsV2.go", "symbol": "", "line": 392, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1645: func TestHooks(t *testing.T) {", "file": "command_test.go", "symbol": "", "line": 1645, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 122: if header.Section == \"\" {", "file": "doc/man_docs.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 5: // You may obtain a copy of the License at", "file": "command_notwin.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 383: os.Setenv(activeHelpGlobalEnvVar, \"on\")", "file": "active_help_test.go", "symbol": "", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 65: lastChar=${lastParam:$((${#lastParam}-1)):1}", "file": "bash_completionsV2.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 35: rm -rf $(BIN)", "file": "Makefile", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/util.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 121: if err := GenMarkdown(rootCmd, file); err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "マニュアル生成時に、非表示のコマンドが参照セクションに含まれないことを確認しているテストはどこですか?", "query": "GenMan SEE ALSO", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lang": "ja", "candidates": [{"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\ndefines TestGenManSeeAlso", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nelsewhere in the tree", "file": "Makefile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "マニュアル生成時に、非表示のコマンドが参照セクションに含まれないことを確認しているテストはどこですか?", "query": "GenMan SEE ALSO", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lang": "ja", "candidates": [{"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> testing", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> strings", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> os", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> github.com/spf13/cobra", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> fmt", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> path/filepath", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "マニュアル生成時に、非表示のコマンドが参照セクションに含まれないことを確認しているテストはどこですか?", "query": "GenMan SEE ALSO", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lang": "ja", "candidates": [{"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=818-841\nread TestPersistentFlagsOnChild for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnChild", "line": 818, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=327-350\nread TestExactArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=320-343\nread genPowerShellCompletionFile for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletionFile", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=657-680\nread checkIfFlagCompletion for detail", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=998-1021\nread configEnvVarSuffixDescriptions for detail", "file": "completions.go", "symbol": "configEnvVarSuffixDescriptions", "line": 998, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=127-150\nread TestGenManSeeAlso for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=689-712\nread Type for detail", "file": "completions_test.go", "symbol": "Type", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=701-724\nread GenBashCompletionFile for detail", "file": "bash_completions.go", "symbol": "GenBashCompletionFile", "line": 701, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=680-703\nread String for detail", "file": "completions_test.go", "symbol": "String", "line": 680, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=37-60\nread cmdDoc for detail", "file": "doc/yaml_docs.go", "symbol": "cmdDoc", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=52-75\nread GenMarkdown for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdown", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1821-1844\nread TestFlagCompletionWithNotInterspersedArgs for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWithNotInterspersedArgs", "line": 1821, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=174-197\nread rpad for detail", "file": "cobra.go", "symbol": "rpad", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=66-89\nread TestGenRSTNoTag for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoTag", "line": 66, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Quiero verificar que el comando secundario 'child1' reciba correctamente los argumentos 'one' y 'two' y no devuelva salida ni errores al ejecutarse.", "query": "child command args", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lang": "es", "candidates": [{"text": "File: doc/rest_docs_test.go\nLine 49: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 54: }", "file": "bash_completions_test.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 37: return comps, ShellCompDirectiveDefault", "file": "active_help_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 99: buf.WriteString(\"~~~~~~~~\\n\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 104: yamlDoc.Usage = cmd.UseLine()", "file": "doc/yaml_docs.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 239: local filteringCmd", "file": "zsh_completions.go", "symbol": "", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 38: func AppendActiveHelp(compArray []Completion, activeHelpStr string) []Completion {", "file": "active_help.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 182: sort.Strings(set)", "file": "flag_groups.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 31: echoCmd.PersistentFlags().BoolP(\"persistentbool\", \"p\", false, \"help message for flag persistentbool\")", "file": "doc/cmd_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 63: }", "file": "args_test.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 46: filter __%[1]s_escapeStringWithSpecialChars {", "file": "powershell_completions.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 113: func TestChildCommand(t *testing.T) {", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: shell_completions.go\nLine 88: // implementations to limit completions for the named persistent flag to", "file": "shell_completions.go", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 128: for _, child := range children {", "file": "doc/yaml_docs.go", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 33: }", "file": "active_help_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 154: buf := new(bytes.Buffer)", "file": "doc/man_docs_test.go", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 144: func Eq(a interface{}, b interface{}) bool {", "file": "cobra.go", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 273: case $COMP_TYPE in", "file": "bash_completionsV2.go", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 277: buf := new(bytes.Buffer)", "file": "fish_completions.go", "symbol": "", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 33: }", "file": "zsh_completions_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 71: for _, arg := range args {", "file": "args.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 263: }", "file": "active_help_test.go", "symbol": "", "line": 263, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Quiero verificar que el comando secundario 'child1' reciba correctamente los argumentos 'one' y 'two' y no devuelva salida ni errores al ejecutarse.", "query": "child command args", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lang": "es", "candidates": [{"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Quiero verificar que el comando secundario 'child1' reciba correctamente los argumentos 'one' y 'two' y no devuelva salida ni errores al ejecutarse.", "query": "child command args", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lang": "es", "candidates": [{"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Quiero verificar que el comando secundario 'child1' reciba correctamente los argumentos 'one' y 'two' y no devuelva salida ni errores al ejecutarse.", "query": "child command args", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lang": "es", "candidates": [{"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=657-680\nread checkIfFlagCompletion for detail", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=149-172\nread TestManPrintFlagsHidesShortDeprecated for detail", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=84-107\nread printCmd for detail", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=248-271\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2044-2067\nread TestFlagCompletionWorksRootCommandAddedAfterFlags for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWorksRootCommandAddedAfterFlags", "line": 2044, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=403-426\nread ErrOrStderr for detail", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=83-106\nread MarkFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=326-349\nread finalArgs for detail", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1560-1583\nread TestNoValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestNoValidArgsFuncInBashScript", "line": 1560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=22-45\nread test for detail", "file": "Makefile", "symbol": "test", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=497-520\nread writeShortFlag for detail", "file": "bash_completions.go", "symbol": "writeShortFlag", "line": 497, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=113-136\nread TestChildCommand for detail", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=101-124\nread checkStringOmits for detail", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=408-431\nread InOrStdin for detail", "file": "command.go", "symbol": "InOrStdin", "line": 408, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "debug print completion logs with trailing newline", "query": "comp debugln", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lang": "en", "candidates": [{"text": "File: fish_completions_test.go\nLine 141: t.Errorf(\"got: %s, want: %s\", got.Error(), os.ErrPermission.Error())", "file": "fish_completions_test.go", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 225: # Fish won't add a space if the completion ends with any", "file": "fish_completions.go", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 195: set = append(set, flagname)", "file": "flag_groups.go", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 129: defer f.Close()", "file": "fish_completions_test.go", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 198: \"Completion ended with directive: ShellCompDirectiveNoFileComp\", \"\"}, \"\\n\")", "file": "active_help_test.go", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 6: //", "file": "active_help.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 114: compopt -o nospace", "file": "bash_completionsV2.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 172: Run: emptyRun,", "file": "active_help_test.go", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 70: basename := strings.ReplaceAll(cmd.CommandPath(), \" \", separator)", "file": "doc/man_docs.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 6: //", "file": "command_win.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 75: func TestGenYamlDocRunnable(t *testing.T) {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 44: Section: \"3\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 45: parentFlags.PrintDefaults()", "file": "doc/md_docs.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 980: func CompDebugln(msg string, printToStdErr bool) {", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Makefile\nLine 4: ifeq (, $(shell which golangci-lint))", "file": "Makefile", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 210: if err := scanner.Err(); err != nil {", "file": "doc/man_docs_test.go", "symbol": "", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 92: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 98: },", "file": "cobra_test.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 211: set --global __%[1]s_comp_results $completions", "file": "fish_completions.go", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "powershell_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 57: // Only errs if the flag isn't found.", "file": "flag_groups.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 101: set --global __%[1]s_perform_completion_once_result (__%[1]s_perform_completion)", "file": "fish_completions.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 27: // - subcommands will always accept arbitrary arguments", "file": "args.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "debug print completion logs with trailing newline", "query": "comp debugln", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lang": "en", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "debug print completion logs with trailing newline", "query": "comp debugln", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lang": "en", "candidates": [{"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "debug print completion logs with trailing newline", "query": "comp debugln", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lang": "en", "candidates": [{"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=135-158\nread TestNoArgs_WithValid_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2850-2873\nread TestCompleteWithRootAndLegacyArgs for detail", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=225-248\nread enforceFlagGroupsForCompletion for detail", "file": "flag_groups.go", "symbol": "enforceFlagGroupsForCompletion", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=37-60\nread cmdDoc for detail", "file": "doc/yaml_docs.go", "symbol": "cmdDoc", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=28-51\nread preExecHookFn for detail", "file": "command_win.go", "symbol": "preExecHookFn", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=773-796\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 773, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=88-111\nread exactArgsWithInvalidCount for detail", "file": "args_test.go", "symbol": "exactArgsWithInvalidCount", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=70-93\nread resetCommandLineFlagSet for detail", "file": "command_test.go", "symbol": "resetCommandLineFlagSet", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=169-192\nread TestMultiActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestMultiActiveHelp", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=83-106\nread TestBashCompletions for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletions", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=520-543\nread Help for detail", "file": "command.go", "symbol": "Help", "line": 520, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=980-1003\nread CompDebugln for detail", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "验证扫描器读取的下一行文本是否等于指定字符串", "query": "scan line assert", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lang": "zh", "candidates": [{"text": "File: flag_groups.go\nLine 51: for _, v := range flagNames {", "file": "flag_groups.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 247: _ = c.MarkFlagRequired(fName)", "file": "flag_groups.go", "symbol": "", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 275: checkOmit(t, output, `local_nonpersistent_flags+=(\"--bool-flag\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 42: CommandSeparator: \"-\",", "file": "doc/man_docs.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 40: // that do not contain \\n.", "file": "doc/util.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 105: }", "file": "doc/cmd_test.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 50: Long: \"Root long description\",", "file": "doc/cmd_test.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 30: t.Fatal(err)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 51: }", "file": "active_help.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 201: func assertNextLineEquals(scanner *bufio.Scanner, expectedLine string) error {", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2_test.go\nLine 28: output := buf.String()", "file": "bash_completionsV2_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 38: checkStringContains(t, output, rootCmd.Short)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 202: // check for subdirs_in_dir flags in a subcommand", "file": "bash_completions_test.go", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 177: if len(set) >= 1 {", "file": "flag_groups.go", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 102: }", "file": "active_help_test.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 166: if err := GenReSTCustom(cmd, f, linkHandler); err != nil {", "file": "doc/rest_docs.go", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 45: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 58: func activeHelpEnvVar(name string) string {", "file": "active_help.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 469: if c.HasParent() {", "file": "command.go", "symbol": "", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 240: // If a flag that is part of a group is present, we make all the other flags", "file": "flag_groups.go", "symbol": "", "line": 240, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "bash_completionsV2_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2283: ValidArgs: []string{\"one\", \"two\"},", "file": "completions_test.go", "symbol": "", "line": 2283, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 177: __%[1]s_handle_special_char \"$cur\" =", "file": "bash_completionsV2.go", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "bash_completions.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "验证扫描器读取的下一行文本是否等于指定字符串", "query": "scan line assert", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lang": "zh", "candidates": [{"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\ndefines assertNextLineEquals", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nelsewhere in the tree", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "验证扫描器读取的下一行文本是否等于指定字符串", "query": "scan line assert", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lang": "zh", "candidates": [{"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> os", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> fmt", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> path/filepath", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> testing", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> strings", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> github.com/spf13/cobra", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "验证扫描器读取的下一行文本是否等于指定字符串", "query": "scan line assert", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lang": "zh", "candidates": [{"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=327-350\nread err for detail", "file": "completions.go", "symbol": "err", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=113-136\nread TestChildCommand for detail", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=43-66\nread expected for detail", "file": "cobra_test.go", "symbol": "expected", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=103-126\nread compCmdNoDescFlagDefault for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDefault", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=44-67\nread TestGenMdDocWithNoLongOrSynopsis for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDocWithNoLongOrSynopsis", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1018-1041\nread getEnvConfig for detail", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=683-706\nread GenBashCompletion for detail", "file": "bash_completions.go", "symbol": "GenBashCompletion", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=363-386\nread TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=466-489\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=235-258\nread TestExecute_NoContext for detail", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=437-460\nread TestChildSameName for detail", "file": "command_test.go", "symbol": "TestChildSameName", "line": 437, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=307-330\nread TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=604-627\nread TestFlagInvalidInput for detail", "file": "command_test.go", "symbol": "TestFlagInvalidInput", "line": 604, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Le préfixe utilisé pour extraire les variables d'environnement globales via la bibliothèque de gestion de CLI semble être codé en dur, ce qui empêche toute personnalisation de la configuration via l'environnement.", "query": "cobra env prefix", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lang": "fr", "candidates": [{"text": "File: completions_test.go\nLine 681: return fmt.Sprintf(\"%v\", *s)", "file": "completions_test.go", "symbol": "", "line": 681, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 47: Run: emptyRun,", "file": "fish_completions_test.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 27: activeHelpGlobalEnvVar = configEnvVarGlobalPrefix + \"_\" + activeHelpEnvVarSuffix", "file": "active_help.go", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nLine 77: func MarkFlagCustom(flags *pflag.FlagSet, name string, f string) error {", "file": "shell_completions.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 108: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 15: package doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 15: package doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_win.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 41: if ($env:BASH_COMP_DEBUG_FILE) {", "file": "powershell_completions.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 32: continue", "file": "doc/util.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 997: configEnvVarGlobalPrefix = \"COBRA\"", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args_test.go\nLine 148: c := getCommand(MatchAll(OnlyValidArgs, NoArgs), true)", "file": "args_test.go", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 13: // limitations under the License.", "file": "doc/man_examples_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 51: func (s byName) Swap(i, j int) { s[i], s[j] = s[j], s[i] }", "file": "doc/util.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 213: keys[i] = k", "file": "flag_groups.go", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 372: __%[1]s_handle_word()", "file": "bash_completions.go", "symbol": "", "line": 372, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3836: globalDescriptionsEnvVar := configEnvVar(configEnvVarGlobalPrefix, configEnvVarSuffixDescriptions)", "file": "completions_test.go", "symbol": "", "line": 3836, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nLine 58: cmd.InitDefaultHelpCmd()", "file": "doc/md_docs.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/md_docs.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 76: buf.WriteString(\".. _\" + ref + \":\\n\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 78: Use: \"deprecated [can't do anything here]\",", "file": "doc/cmd_test.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1840: })", "file": "completions_test.go", "symbol": "", "line": 1840, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 74: output := buf.String()", "file": "doc/rest_docs_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "powershell_completions_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Le préfixe utilisé pour extraire les variables d'environnement globales via la bibliothèque de gestion de CLI semble être codé en dur, ce qui empêche toute personnalisation de la configuration via l'environnement.", "query": "cobra env prefix", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lang": "fr", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Le préfixe utilisé pour extraire les variables d'environnement globales via la bibliothèque de gestion de CLI semble être codé en dur, ce qui empêche toute personnalisation de la configuration via l'environnement.", "query": "cobra env prefix", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lang": "fr", "candidates": [{"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Le préfixe utilisé pour extraire les variables d'environnement globales via la bibliothèque de gestion de CLI semble être codé en dur, ce qui empêche toute personnalisation de la configuration via l'environnement.", "query": "cobra env prefix", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lang": "fr", "candidates": [{"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=27-50\nread assertNoErr for detail", "file": "cobra_test.go", "symbol": "assertNoErr", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=482-505\nread GenBashCompletionV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionV2", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completionsV2_test.go lines=23-46\nread TestBashCompletionV2WithActiveHelp for detail", "file": "bash_completionsV2_test.go", "symbol": "TestBashCompletionV2WithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=444-467\nread UsageFunc for detail", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=997-1020\nread configEnvVarGlobalPrefix for detail", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=438-461\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1821-1844\nread TestFlagCompletionWithNotInterspersedArgs for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWithNotInterspersedArgs", "line": 1821, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=80-103\nread genZshCompletion for detail", "file": "zsh_completions.go", "symbol": "genZshCompletion", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=133-156\nread GenMarkdownTreeCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTreeCustom", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=54-77\nread Command for detail", "file": "command.go", "symbol": "Command", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=529-552\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 529, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=55-78\nread EnablePrefixMatching for detail", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=308-331\nread aCmdArgs for detail", "file": "command_test.go", "symbol": "aCmdArgs", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=321-344\nread TestExactArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1624-1647\nread TestFlagCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGo", "line": 1624, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=43-66\nread TestGenRSTNoHiddenParents for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoHiddenParents", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "trouve la déclaration de la liste de paramètres de commande", "query": "cmd args slice", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lang": "fr", "candidates": [{"text": "File: cobra_test.go\nLine 113: // Assert", "file": "cobra_test.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 27: func TestGenYamlDoc(t *testing.T) {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 34: clean:", "file": "Makefile", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 16: // +build !windows", "file": "command_notwin.go", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 111: args: []string{\"--a=foo\", \"--f=foo\", \"--g=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "powershell_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 98: // Persistent filename.", "file": "bash_completions_test.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 273: output, err := executeCommand(c, \"a\", \"b\")", "file": "args_test.go", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 492: var cArgs []string", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nLine 89: if err := GenReSTTree(c, tmpdir); err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 27: assertNoErr(t, c.GenBashCompletionV2(buf, true))", "file": "bash_completionsV2_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 103: ignoreCase: true,", "file": "cobra_test.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 65: buf.WriteString(cmd.Short + \"\\n\\n\")", "file": "doc/md_docs.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 363: # Format the descriptions", "file": "bash_completionsV2.go", "symbol": "", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_notwin.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 34: clean:", "file": "Makefile", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 116: defer os.Remove(file.Name())", "file": "doc/md_docs_test.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 52: }", "file": "doc/cmd_test.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 54: // Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/md_docs_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 48: t.Fatal(err)", "file": "doc/man_docs_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 69: // SuggestFor is an array of command names for which this command will be suggested -", "file": "command.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 63: defer func() { f.Hidden = false }()", "file": "doc/md_docs_test.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "trouve la déclaration de la liste de paramètres de commande", "query": "cmd args slice", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lang": "fr", "candidates": [{"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "trouve la déclaration de la liste de paramètres de commande", "query": "cmd args slice", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lang": "fr", "candidates": [{"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "trouve la déclaration de la liste de paramètres de commande", "query": "cmd args slice", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lang": "fr", "candidates": [{"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1276-1299\nread TestValidArgsFuncCmdContext for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncCmdContext", "line": 1276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=464-487\nread getUsageTemplateFunc for detail", "file": "command.go", "symbol": "getUsageTemplateFunc", "line": 464, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=169-192\nread TestNoDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=57-80\nread TestGenYamlTree for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlTree", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=25-48\nread GenZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFile", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=932-955\nread findFlag for detail", "file": "completions.go", "symbol": "findFlag", "line": 932, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=59-82\nread TestProgWithDash for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithDash", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=253-276\nread dirname for detail", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=492-515\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=245-268\nread TestBashCompletionDeprecatedFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionDeprecatedFlag", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=580-603\nread minNamePadding for detail", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "대소문자 구분 여부 기본 설정값 찾아줘", "query": "case insensitive default", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lang": "ko", "candidates": [{"text": "File: flag_groups.go\nLine 171: var set []string", "file": "flag_groups.go", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 48: defaultCaseInsensitive = false", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nLine 350: }", "file": "powershell_completions.go", "symbol": "", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 230: fi", "file": "zsh_completions.go", "symbol": "", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1568: EnableCaseInsensitive = defaultCaseInsensitive", "file": "command_test.go", "symbol": "", "line": 1568, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nLine 336: # since we are in a loop.", "file": "bash_completionsV2.go", "symbol": "", "line": 336, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 64: if err != nil {", "file": "bash_completions_test.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 83: checkStringContains(t, output, \"usage: \"+rootCmd.Use)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/md_docs.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 26: )", "file": "command_win.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 97: b.Fatal(err)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_win.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 131: desc: \"Persistent flags utilize one-required and exclusive groups and can pass\",", "file": "flag_groups_test.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 2: SRC=$(shell find . -name \"*.go\")", "file": "Makefile", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 162: return choices, directive", "file": "completions.go", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 36: c.Println(\"Press return to continue...\")", "file": "command_win.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 291: t.Fatalf(\"could not compile test program: %s\", string(buf))", "file": "cobra_test.go", "symbol": "", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 30: ValidArgsFunction: validArgsFunc,", "file": "fish_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 30: nameForVar := name", "file": "powershell_completions.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 8: //", "file": "command_win.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 194: hasActiveHelp=1", "file": "zsh_completions.go", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 22: \"regexp\"", "file": "bash_completions_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 112: if flags.HasFlags() {", "file": "doc/yaml_docs.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "대소문자 구분 여부 기본 설정값 찾아줘", "query": "case insensitive default", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lang": "ko", "candidates": [{"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "대소문자 구분 여부 기본 설정값 찾아줘", "query": "case insensitive default", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lang": "ko", "candidates": [{"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "대소문자 구분 여부 기본 설정값 찾아줘", "query": "case insensitive default", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lang": "ko", "candidates": [{"text": "Next: read flag_groups.go lines=167-190\nread validateOneRequiredFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateOneRequiredFlagGroups", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=200-223\nread string for detail", "file": "completions.go", "symbol": "string", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=201-224\nread directives for detail", "file": "completions.go", "symbol": "directives", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=121-144\nread TestStringInSlice for detail", "file": "cobra_test.go", "symbol": "TestStringInSlice", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=186-209\nread GetFlagCompletionFunc for detail", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=579-602\nread comps for detail", "file": "completions.go", "symbol": "comps", "line": 579, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=257-280\nread TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completionsV2_test.go lines=23-46\nread TestBashCompletionV2WithActiveHelp for detail", "file": "bash_completionsV2_test.go", "symbol": "TestBashCompletionV2WithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=466-489\nread TestChildTakesArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=48-71\nread defaultCaseInsensitive for detail", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=2141-2164\nread wg for detail", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=38-61\nread AppendActiveHelp for detail", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=328-351\nread SetFlagErrorFunc for detail", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=320-343\nread genPowerShellCompletionFile for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletionFile", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "명령어 별칭이 전체 이름이 아니라 앞부분만 일치해도 실행되는지 확인하는 테스트 코드가 어디에 있나요? 특히 접두사 매칭 옵션을 켜고 테스트하는 부분을 찾고 싶습니다.", "query": "alias prefix matching", "file": "command_test.go", "symbol": "TestAliasPrefixMatching", "line": 334, "lang": "ko", "candidates": [{"text": "File: fish_completions.go\nLine 107: __%[1]s_debug \"Performed completions and set __%[1]s_perform_completion_once_result\"", "file": "fish_completions.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 219: if [ $hasActiveHelp -eq 1 ]; then", "file": "zsh_completions.go", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 28: richgo test -v $(GO_TEST_FLAGS) ./...", "file": "Makefile", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 106: rootCmd.Flags().String(\"custom\", \"\", \"Enter a filename (extension limited)\")", "file": "bash_completions_test.go", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 23: func TestBashCompletionV2WithActiveHelp(t *testing.T) {", "file": "bash_completionsV2_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 95: // limit completions for the named flag to directory names.", "file": "shell_completions.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 32: }", "file": "args.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 334: func TestAliasPrefixMatching(t *testing.T) {", "file": "command_test.go", "symbol": "TestAliasPrefixMatching", "line": 334, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2_test.go\nLine 17: import (", "file": "bash_completionsV2_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 55: check(t, output, ShellCompRequestCmd)", "file": "fish_completions_test.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "zsh_completions_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "zsh_completions_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 289: func TestMaximumNArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3044: \"apple\",", "file": "completions_test.go", "symbol": "", "line": 3044, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 23: func TestZshCompletionWithActiveHelp(t *testing.T) {", "file": "zsh_completions_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 84: return nil", "file": "doc/yaml_docs.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "flag_groups_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 145: func GenReSTTreeCustom(cmd *cobra.Command, dir string, filePrepender func(string) string, linkHandler func(string, string) string) error {", "file": "doc/rest_docs.go", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 62: checkStringOmits(t, output, deprecatedCmd.Short)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 22: )", "file": "doc/cmd_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 189: $_.Name -like \"$WordToComplete*\"", "file": "powershell_completions.go", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 21: \"os\"", "file": "doc/md_docs.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 114: if f == nil {", "file": "flag_groups.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "명령어 별칭이 전체 이름이 아니라 앞부분만 일치해도 실행되는지 확인하는 테스트 코드가 어디에 있나요? 특히 접두사 매칭 옵션을 켜고 테스트하는 부분을 찾고 싶습니다.", "query": "alias prefix matching", "file": "command_test.go", "symbol": "TestAliasPrefixMatching", "line": 334, "lang": "ko", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "명령어 별칭이 전체 이름이 아니라 앞부분만 일치해도 실행되는지 확인하는 테스트 코드가 어디에 있나요? 특히 접두사 매칭 옵션을 켜고 테스트하는 부분을 찾고 싶습니다.", "query": "alias prefix matching", "file": "command_test.go", "symbol": "TestAliasPrefixMatching", "line": 334, "lang": "ko", "candidates": [{"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "명령어 별칭이 전체 이름이 아니라 앞부분만 일치해도 실행되는지 확인하는 테스트 코드가 어디에 있나요? 특히 접두사 매칭 옵션을 켜고 테스트하는 부분을 찾고 싶습니다.", "query": "alias prefix matching", "file": "command_test.go", "symbol": "TestAliasPrefixMatching", "line": 334, "lang": "ko", "candidates": [{"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2896-2919\nread TestCompletionFuncCompatibility for detail", "file": "completions_test.go", "symbol": "TestCompletionFuncCompatibility", "line": 2896, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=174-197\nread rpad for detail", "file": "cobra.go", "symbol": "rpad", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=269-292\nread Context for detail", "file": "command.go", "symbol": "Context", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=48-71\nread defaultCaseInsensitive for detail", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=631-654\nread getVersionTemplateFunc for detail", "file": "command.go", "symbol": "getVersionTemplateFunc", "line": 631, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1717-1740\nread TestValidArgsFuncChildCmdsWithDesc for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmdsWithDesc", "line": 1717, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=235-258\nread CheckErr for detail", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=334-357\nread TestAliasPrefixMatching for detail", "file": "command_test.go", "symbol": "TestAliasPrefixMatching", "line": 334, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/man_docs.go lines=202-225\nread genMan for detail", "file": "doc/man_docs.go", "symbol": "genMan", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=94-117\nread GenManHeader for detail", "file": "doc/man_docs.go", "symbol": "GenManHeader", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=169-192\nread TestNoDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=105-128\nread OnFinalize for detail", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=449-472\nread TestChildTakesNoArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesNoArgs", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=91-114\nread AddTemplateFuncs for detail", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=221-244\nread TestMinimumNArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "帮我写一个测试用例,验证当命令参数中混入空字符串时,标志位(flag)是否能被正确解析并赋值给对应的变量,同时确保没有多余的输出或错误发生。", "query": "test flag parsing empty string", "file": "command_test.go", "symbol": "TestEmptyInputs", "line": 770, "lang": "zh", "candidates": [{"text": "File: fish_completions.go\nLine 34: }", "file": "fish_completions.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 62: requestComp=\"${words[0]} %[2]s ${args[*]}\"", "file": "bash_completionsV2.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 21: )", "file": "zsh_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 43: Title: \"MINE\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 445: // If we have not found any required flags, only then can we show regular flags", "file": "completions.go", "symbol": "", "line": 445, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 148: }", "file": "doc/md_docs.go", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 209: },", "file": "cobra_test.go", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "powershell_completions_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 6: github.com/cpuguy83/go-md2man/v2 v2.0.6", "file": "go.mod", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 135: // Run: Typically the actual work function. Most commands will only implement this.", "file": "command.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 25: )", "file": "cobra_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 251: # the existing completions will only be loaded if the program can be found.", "file": "fish_completions.go", "symbol": "", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 2: //", "file": "args.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 272: }", "file": "powershell_completions.go", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "fish_completions_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 147: if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {", "file": "doc/rest_docs.go", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 51: func (s byName) Swap(i, j int) { s[i], s[j] = s[j], s[i] }", "file": "doc/util.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/util.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 49: func TestLevenshteinDistance(t *testing.T) {", "file": "cobra_test.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 10: default: all", "file": "Makefile", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 117: assertNoErr(t, rootCmd.GenFishCompletionFile(tmpFile.Name(), false))", "file": "fish_completions_test.go", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 31: t.Fatal(err)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 770: func TestEmptyInputs(t *testing.T) {", "file": "command_test.go", "symbol": "TestEmptyInputs", "line": 770, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nLine 121: }", "file": "args.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "帮我写一个测试用例,验证当命令参数中混入空字符串时,标志位(flag)是否能被正确解析并赋值给对应的变量,同时确保没有多余的输出或错误发生。", "query": "test flag parsing empty string", "file": "command_test.go", "symbol": "TestEmptyInputs", "line": 770, "lang": "zh", "candidates": [{"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "帮我写一个测试用例,验证当命令参数中混入空字符串时,标志位(flag)是否能被正确解析并赋值给对应的变量,同时确保没有多余的输出或错误发生。", "query": "test flag parsing empty string", "file": "command_test.go", "symbol": "TestEmptyInputs", "line": 770, "lang": "zh", "candidates": [{"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "帮我写一个测试用例,验证当命令参数中混入空字符串时,标志位(flag)是否能被正确解析并赋值给对应的变量,同时确保没有多余的输出或错误发生。", "query": "test flag parsing empty string", "file": "command_test.go", "symbol": "TestEmptyInputs", "line": 770, "lang": "zh", "candidates": [{"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=58-81\nread ShellCompDirectiveError for detail", "file": "completions.go", "symbol": "ShellCompDirectiveError", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=229-252\nread TestBashCompletionHiddenFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionHiddenFlag", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=980-1003\nread CompDebugln for detail", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=580-603\nread minNamePadding for detail", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=31-54\nread genBashComp for detail", "file": "bash_completionsV2.go", "symbol": "genBashComp", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=770-793\nread TestEmptyInputs for detail", "file": "command_test.go", "symbol": "TestEmptyInputs", "line": 770, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read active_help_test.go lines=169-192\nread TestMultiActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestMultiActiveHelp", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=144-167\nread validateRequiredFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateRequiredFlagGroups", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=325-348\nread finalCmd for detail", "file": "completions.go", "symbol": "finalCmd", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=49-72\nread TestLevenshteinDistance for detail", "file": "cobra_test.go", "symbol": "TestLevenshteinDistance", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=407-430\nread TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 407, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=333-356\nread TestExactArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=55-78\nread EnablePrefixMatching for detail", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Es scheint ein Problem bei der Generierung der Umgebungsvariablen-Namen zu geben. Die Logik zur Umwandlung der Programmnamen in Großbuchstaben und der anschließende Ersatz von Nicht-ASCII-Alphanumerik-Zeichen durch Unterstriche scheint die Formatierung der Konfigurationsschlüssel zu steuern, aber ich muss sicherstellen, dass die Ersetzung korrekt nach der Großbuchstaben-Konvertierung erfolgt, damit das Schema konsistent bleibt.", "query": "config environment variable", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lang": "de", "candidates": [{"text": "File: doc/util.go\nLine 43: s += \"\\n\"", "file": "doc/util.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 33: }", "file": "bash_completionsV2_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 21: \"path/filepath\"", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 130: bCmd := &cobra.Command{Use: \"bbb\", Run: emptyRun}", "file": "doc/man_docs_test.go", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 37: timesCmd.Flags().BoolP(\"booltwo\", \"c\", false, \"help message for flag booltwo\")", "file": "doc/cmd_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 240: \"Complete\" {", "file": "powershell_completions.go", "symbol": "", "line": 240, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 633: return c.versionTemplate.fn", "file": "command.go", "symbol": "", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 186: func assertLineFound(scanner *bufio.Scanner, expectedLine string) error {", "file": "doc/man_docs_test.go", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 63: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 260: }", "file": "command.go", "symbol": "", "line": 260, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 59: return configEnvVar(name, activeHelpEnvVarSuffix)", "file": "active_help.go", "symbol": "", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nLine 308: # if you set a flag which only applies to this command, don't show subcommands", "file": "bash_completions.go", "symbol": "", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 825: }", "file": "command_test.go", "symbol": "", "line": 825, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 1006: func configEnvVar(name, suffix string) string {", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\nLine 2880: if err != nil {", "file": "completions_test.go", "symbol": "", "line": 2880, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 688: {", "file": "command_test.go", "symbol": "", "line": 688, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 2: //", "file": "powershell_completions_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 6: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 401: # if we are to align the descriptions.", "file": "bash_completionsV2.go", "symbol": "", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 37: }", "file": "doc/util.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3835: specificDescriptionsEnvVar := configEnvVar(rootCmd.Name(), configEnvVarSuffixDescriptions)", "file": "completions_test.go", "symbol": "", "line": 3835, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nLine 70: args: []string{\"--c=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 68: defer func() { rootCmd.DisableAutoGenTag = false }()", "file": "doc/rest_docs_test.go", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1041: got, err = executeCommand(rootCmd, \"child\", \"--help\")", "file": "command_test.go", "symbol": "", "line": 1041, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Es scheint ein Problem bei der Generierung der Umgebungsvariablen-Namen zu geben. Die Logik zur Umwandlung der Programmnamen in Großbuchstaben und der anschließende Ersatz von Nicht-ASCII-Alphanumerik-Zeichen durch Unterstriche scheint die Formatierung der Konfigurationsschlüssel zu steuern, aber ich muss sicherstellen, dass die Ersetzung korrekt nach der Großbuchstaben-Konvertierung erfolgt, damit das Schema konsistent bleibt.", "query": "config environment variable", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lang": "de", "candidates": [{"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Es scheint ein Problem bei der Generierung der Umgebungsvariablen-Namen zu geben. Die Logik zur Umwandlung der Programmnamen in Großbuchstaben und der anschließende Ersatz von Nicht-ASCII-Alphanumerik-Zeichen durch Unterstriche scheint die Formatierung der Konfigurationsschlüssel zu steuern, aber ich muss sicherstellen, dass die Ersetzung korrekt nach der Großbuchstaben-Konvertierung erfolgt, damit das Schema konsistent bleibt.", "query": "config environment variable", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lang": "de", "candidates": [{"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Es scheint ein Problem bei der Generierung der Umgebungsvariablen-Namen zu geben. Die Logik zur Umwandlung der Programmnamen in Großbuchstaben und der anschließende Ersatz von Nicht-ASCII-Alphanumerik-Zeichen durch Unterstriche scheint die Formatierung der Konfigurationsschlüssel zu steuern, aber ich muss sicherstellen, dass die Ersetzung korrekt nach der Großbuchstaben-Konvertierung erfolgt, damit das Schema konsistent bleibt.", "query": "config environment variable", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lang": "de", "candidates": [{"text": "Next: read flag_groups.go lines=171-194\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=113-136\nread TestChildCommand for detail", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=138-161\nread GenReSTTree for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTree", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1006-1029\nread configEnvVar for detail", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=465-488\nread TestGrandChildSameName for detail", "file": "command_test.go", "symbol": "TestGrandChildSameName", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=593-616\nread writeRequiredFlag for detail", "file": "bash_completions.go", "symbol": "writeRequiredFlag", "line": 593, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=773-796\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 773, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=307-330\nread TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help_test.go lines=26-49\nread activeHelpMessage2 for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=662-685\nread shortHasNoOptDefVal for detail", "file": "command.go", "symbol": "shortHasNoOptDefVal", "line": 662, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=209-232\nread sortedKeys for detail", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "완성 목록에 사용자 안내 문구를 추가하는 함수가 어디 있지?", "query": "append completion help", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lang": "ko", "candidates": [{"text": "File: cobra_test.go\nLine 108: for _, tt := range tests {", "file": "cobra_test.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 8: //", "file": "shell_completions.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 228: b.Fatal(err)", "file": "doc/man_docs_test.go", "symbol": "", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 34: }", "file": "fish_completions.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 86: // MinimumNArgs returns an error if there is not at least N args.", "file": "args.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 144: return err", "file": "doc/yaml_docs.go", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 70: [[ $w = \"$word\" ]] && return", "file": "bash_completions.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 36: comps := AppendActiveHelp(nil, activeHelpMessage)", "file": "active_help_test.go", "symbol": "", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nLine 1617: t.Errorf(\"Unexpected error: %v\", err)", "file": "command_test.go", "symbol": "", "line": 1617, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/rest_docs_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "powershell_completions.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 8: //", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 132: if (((directive & shellCompDirectiveNoFileComp) != 0)); then", "file": "bash_completionsV2.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 38: func AppendActiveHelp(compArray []Completion, activeHelpStr string) []Completion {", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_win.go\nLine 16: // +build windows", "file": "command_win.go", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 30: for _, c := range cmd.Commands() {", "file": "doc/util.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "bash_completionsV2_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 5: // You may obtain a copy of the License at", "file": "powershell_completions_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 308: }", "file": "zsh_completions.go", "symbol": "", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 94: b.ResetTimer()", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 22: func TestValidateFlagGroups(t *testing.T) {", "file": "flag_groups_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 123: # (We cannot use $CURSOR as its value does not work when a command is an alias.)", "file": "zsh_completions.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 167: assertNoErr(t, rootCmd.GenBashCompletion(buf))", "file": "bash_completions_test.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "완성 목록에 사용자 안내 문구를 추가하는 함수가 어디 있지?", "query": "append completion help", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lang": "ko", "candidates": [{"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "cobra", "task": "완성 목록에 사용자 안내 문구를 추가하는 함수가 어디 있지?", "query": "append completion help", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lang": "ko", "candidates": [{"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "완성 목록에 사용자 안내 문구를 추가하는 함수가 어디 있지?", "query": "append completion help", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lang": "ko", "candidates": [{"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=426-449\nread TestValidArgsFuncAndCmdCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAndCmdCompletionInGo", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=588-611\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 588, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=438-461\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=58-81\nread TestGenMdNoHiddenParents for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=363-386\nread TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=37-60\nread ExampleGenMan for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenMan", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=93-116\nread GenYamlCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlCustom", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=31-54\nread GenZshCompletion for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletion", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread left for detail", "file": "cobra.go", "symbol": "left", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=26-49\nread activeHelpEnvVarSuffix for detail", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=38-61\nread AppendActiveHelp for detail", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=338-361\nread SetHelpCommand for detail", "file": "command.go", "symbol": "SetHelpCommand", "line": 338, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=470-493\nread GenBashCompletionFileV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionFileV2", "line": 470, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1318-1341\nread TestValidArgsFuncSingleCmd for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=599-622\nread getFlagNameCompletions for detail", "file": "completions.go", "symbol": "getFlagNameCompletions", "line": 599, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=47-70\nread GetActiveHelpConfig for detail", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "特定のフラグに対する補完関数を取得するロジックを探して", "query": "flag completion function", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lang": "ja", "candidates": [{"text": "File: command_notwin.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_notwin.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 79: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 217: func BenchmarkGenManToFile(b *testing.B) {", "file": "doc/man_docs_test.go", "symbol": "", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 34: checkStringContains(t, output, echoCmd.Long)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 128: flagGroupsExclusive: []string{\"f g\"},", "file": "flag_groups_test.go", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 160: Run: emptyRun,", "file": "bash_completions_test.go", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 8: //", "file": "cobra_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 35: // MarkFlagRequired instructs the various shell completion implementations to", "file": "shell_completions.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 186: func (c *Command) GetFlagCompletionFunc(flagName string) (CompletionFunc, bool) {", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\nLine 3719: compFunc, exists := tc.cmd.GetFlagCompletionFunc(tc.flagName)", "file": "completions_test.go", "symbol": "", "line": 3719, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nLine 293: t.Errorf(\"Unexpected error: %v\", err)", "file": "active_help_test.go", "symbol": "", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 433: # Call _init_completion from the bash-completion package", "file": "bash_completionsV2.go", "symbol": "", "line": 433, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1469: return c.DisplayName()", "file": "command.go", "symbol": "", "line": 1469, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 13: // limitations under the License.", "file": "zsh_completions_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 121: }", "file": "args.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 69: func NoDuplicateArgs(cmd *Command, args []string) error {", "file": "args.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 350: }", "file": "completions_test.go", "symbol": "", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 25: // both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 68: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 54: }", "file": "doc/rest_docs.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 124: result = append(result, parent.CommandPath()+\" - \"+parent.Short)", "file": "doc/yaml_docs.go", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/man_docs_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 54: func (c *Command) MarkFlagCustom(name string, f string) error {", "file": "shell_completions.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 116: $PSNativeCommandArgumentPassing -eq 'Legacy')) {", "file": "powershell_completions.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "特定のフラグに対する補完関数を取得するロジックを探して", "query": "flag completion function", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lang": "ja", "candidates": [{"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "特定のフラグに対する補完関数を取得するロジックを探して", "query": "flag completion function", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lang": "ja", "candidates": [{"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "特定のフラグに対する補完関数を取得するロジックを探して", "query": "flag completion function", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lang": "ja", "candidates": [{"text": "Next: read command.go lines=631-654\nread getVersionTemplateFunc for detail", "file": "command.go", "symbol": "getVersionTemplateFunc", "line": 631, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=333-356\nread SetHelpFunc for detail", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=592-615\nread UsageTemplate for detail", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=232-255\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=716-739\nread TestDisableFlagParsing for detail", "file": "command_test.go", "symbol": "TestDisableFlagParsing", "line": 716, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=715-738\nread argsMinusFirstX for detail", "file": "command.go", "symbol": "argsMinusFirstX", "line": 715, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=22-45\nread test for detail", "file": "Makefile", "symbol": "test", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2123-2146\nread maxFlags for detail", "file": "completions_test.go", "symbol": "maxFlags", "line": 2123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=275-298\nread SetContext for detail", "file": "command.go", "symbol": "SetContext", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=186-209\nread GetFlagCompletionFunc for detail", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=372-395\nread TestPlugin for detail", "file": "command_test.go", "symbol": "TestPlugin", "line": 372, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=643-666\nread ErrPrefix for detail", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2163-2186\nread err for detail", "file": "completions_test.go", "symbol": "err", "line": 2163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=86-109\nread onetwo for detail", "file": "command_test.go", "symbol": "onetwo", "line": 86, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Onde está a função que valida se o número de argumentos passados excede um limite definido?", "query": "maximum arguments error", "file": "args.go", "symbol": "MaximumNArgs", "line": 97, "lang": "pt", "candidates": [{"text": "File: command_notwin.go\nLine 8: //", "file": "command_notwin.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 97: func MaximumNArgs(n int) PositionalArgs {", "file": "args.go", "symbol": "MaximumNArgs", "line": 97, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nLine 201: check(t, output, fmt.Sprintf(`flags_completion+=(\"__%s_handle_subdirs_in_dir_flag themes\")`, rootCmd.Name()))", "file": "bash_completions_test.go", "symbol": "", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 157: //", "file": "completions.go", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 48: buf := new(bytes.Buffer)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 80: }", "file": "args_test.go", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 68: separator = opts.CommandSeparator", "file": "doc/man_docs.go", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 666: flagWithEqual := false", "file": "completions.go", "symbol": "", "line": 666, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 78: // if the CLI is started from explorer.exe. Set to 0 to wait for the return key to be pressed.", "file": "cobra.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 46: }", "file": "shell_completions.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 664: WriteStringAndCheck(buf, fmt.Sprintf(\"_%s_root_command()\\n{\\n\", commandName))", "file": "bash_completions.go", "symbol": "", "line": 664, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 15: package doc_test", "file": "doc/man_examples_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 117: }", "file": "doc/md_docs.go", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 51: if !matched {", "file": "bash_completions_test.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 21: )", "file": "powershell_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_win.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 34: time.Sleep(MousetrapDisplayDuration)", "file": "command_win.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1462: }", "file": "completions_test.go", "symbol": "", "line": 1462, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/yaml_docs.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 124: expectErr: `if any flags in the group [f g] are set none of the others can be; [f g] were all set`,", "file": "flag_groups_test.go", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 54: var echoCmd = &cobra.Command{", "file": "doc/cmd_test.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 269: // MaximumNArgs", "file": "args_test.go", "symbol": "", "line": 269, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nLine 60: }", "file": "doc/man_docs.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Onde está a função que valida se o número de argumentos passados excede um limite definido?", "query": "maximum arguments error", "file": "args.go", "symbol": "MaximumNArgs", "line": 97, "lang": "pt", "candidates": [{"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Onde está a função que valida se o número de argumentos passados excede um limite definido?", "query": "maximum arguments error", "file": "args.go", "symbol": "MaximumNArgs", "line": 97, "lang": "pt", "candidates": [{"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Onde está a função que valida se o número de argumentos passados excede um limite definido?", "query": "maximum arguments error", "file": "args.go", "symbol": "MaximumNArgs", "line": 97, "lang": "pt", "candidates": [{"text": "Next: read args.go lines=22-45\nread PositionalArgs for detail", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=339-362\nread TestExactArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=160-183\nread FixedCompletions for detail", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=58-81\nread activeHelpEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=741-764\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 741, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=438-461\nread TestRootTakesArgs for detail", "file": "args_test.go", "symbol": "TestRootTakesArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=376-399\nread SetErrPrefix for detail", "file": "command.go", "symbol": "SetErrPrefix", "line": 376, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=257-280\nread TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=97-120\nread MaximumNArgs for detail", "file": "args.go", "symbol": "MaximumNArgs", "line": 97, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=407-430\nread TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 407, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=80-103\nread ShellCompDirectiveFilterDirs for detail", "file": "completions.go", "symbol": "ShellCompDirectiveFilterDirs", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=55-78\nread MarkZshCompPositionalArgumentFile for detail", "file": "zsh_completions.go", "symbol": "MarkZshCompPositionalArgumentFile", "line": 55, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "définir le modèle d'utilisation du commande", "query": "set usage template", "file": "command.go", "symbol": "SetUsageTemplate", "line": 318, "lang": "fr", "candidates": [{"text": "File: command_test.go\nLine 1134: rootCmd.SetUsageTemplate(\"WORKS {{.UseLine}}\")", "file": "command_test.go", "symbol": "", "line": 1134, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nLine 42: var initializers []func()", "file": "cobra.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 450: if !c.IsAvailableCommand() && c != cmd.helpCommand {", "file": "bash_completions.go", "symbol": "", "line": 450, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 8: //", "file": "doc/util.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2275: if output != expected {", "file": "completions_test.go", "symbol": "", "line": 2275, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 32: check(t, output, fmt.Sprintf(\"${env:%s}=0\", activeHelpVar))", "file": "powershell_completions_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 223: // - when a flag in a mutually exclusive group is present, other flags in the group will be marked as hidden", "file": "flag_groups.go", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 47: func GetActiveHelpConfig(cmd *Command) string {", "file": "active_help.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 18: \"bytes\"", "file": "zsh_completions_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 31: if MousetrapHelpText != \"\" && mousetrap.StartedByExplorer() {", "file": "command_win.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 41: c.SetUsageTemplate(`{{if t}}{{h}}{{end}}{{if f}}{{h}}{{end}} {{w}}`)", "file": "cobra_test.go", "symbol": "", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nLine 647: finalCmd.InheritedFlags().VisitAll(func(flag *pflag.Flag) {", "file": "completions.go", "symbol": "", "line": 647, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 302: _%[1]s", "file": "zsh_completions.go", "symbol": "", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 23: func TestBashCompletionV2WithActiveHelp(t *testing.T) {", "file": "bash_completionsV2_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 31: if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {", "file": "doc/util.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 58: panic(err)", "file": "flag_groups.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "powershell_completions.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 24: // Basically this is a test for a parent command or a subcommand which is", "file": "doc/util.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 594: return true", "file": "completions.go", "symbol": "", "line": 594, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 40: // Test that activeHelp can be added to a root command", "file": "active_help_test.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 92: if c.DisableAutoGenTag {", "file": "doc/md_docs.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 154: Use: \"times [# times] [string to echo]\",", "file": "bash_completions_test.go", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 318: func (c *Command) SetUsageTemplate(s string) {", "file": "command.go", "symbol": "SetUsageTemplate", "line": 318, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nLine 2269: // Related to https://github.com/spf13/cobra/issues/404.", "file": "command_test.go", "symbol": "", "line": 2269, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "définir le modèle d'utilisation du commande", "query": "set usage template", "file": "command.go", "symbol": "SetUsageTemplate", "line": 318, "lang": "fr", "candidates": [{"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "définir le modèle d'utilisation du commande", "query": "set usage template", "file": "command.go", "symbol": "SetUsageTemplate", "line": 318, "lang": "fr", "candidates": [{"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "définir le modèle d'utilisation du commande", "query": "set usage template", "file": "command.go", "symbol": "SetUsageTemplate", "line": 318, "lang": "fr", "candidates": [{"text": "Next: read flag_groups.go lines=81-104\nread ValidateFlagGroups for detail", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=105-128\nread OnFinalize for detail", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2850-2873\nread TestCompleteWithRootAndLegacyArgs for detail", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=318-341\nread SetUsageTemplate for detail", "file": "command.go", "symbol": "SetUsageTemplate", "line": 318, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=276-299\nread GenFishCompletion for detail", "file": "fish_completions.go", "symbol": "GenFishCompletion", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=305-328\nread TestEnablePrefixMatching for detail", "file": "command_test.go", "symbol": "TestEnablePrefixMatching", "line": 305, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=313-336\nread genPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletion", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=84-107\nread GenManTreeOptions for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeOptions", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2141-2164\nread wg for detail", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=77-100\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=32-55\nread printOptions for detail", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "셸 완성 시 결과 뒤에 공백을 추가하지 않도록 설정하는 상수가 어디에 정의되어 있나요?", "query": "shell completion no space", "file": "completions.go", "symbol": "ShellCompDirectiveNoSpace", "line": 62, "lang": "ko", "candidates": [{"text": "File: doc/man_docs_test.go\nLine 46: buf := new(bytes.Buffer)", "file": "doc/man_docs_test.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1182: return nil", "file": "command.go", "symbol": "", "line": 1182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 62: ShellCompDirectiveNoSpace", "file": "completions.go", "symbol": "ShellCompDirectiveNoSpace", "line": 62, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2.go\nLine 464: ShellCompDirectiveError, ShellCompDirectiveNoSpace, ShellCompDirectiveNoFileComp,", "file": "bash_completionsV2.go", "symbol": "", "line": 464, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nLine 117: echoCmd := &Command{", "file": "bash_completions_test.go", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 174: check(t, output, \"_root_cmd__colon\")", "file": "bash_completions_test.go", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 31: $(info ******************** downloading dependencies ********************)", "file": "Makefile", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 6: //", "file": "args.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 113: buf.WriteString(\"###### Auto generated by spf13/cobra on \" + time.Now().Format(\"2-Jan-2006\") + \"\\n\")", "file": "doc/md_docs.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 66: # Found an empty line, remove it", "file": "fish_completions.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 76: $ShellCompDirectiveNoSpace=%[5]d", "file": "powershell_completions.go", "symbol": "", "line": 76, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nLine 445: }", "file": "bash_completions.go", "symbol": "", "line": 445, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 400: ShellCompDirectiveError, ShellCompDirectiveNoSpace, ShellCompDirectiveNoFileComp,", "file": "bash_completions.go", "symbol": "", "line": 400, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nLine 5: // You may obtain a copy of the License at", "file": "flag_groups_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 56: return nil", "file": "zsh_completions.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 271: ShellCompDirectiveError, ShellCompDirectiveNoSpace, ShellCompDirectiveNoFileComp,", "file": "fish_completions.go", "symbol": "", "line": 271, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nLine 87: directive=${out##*:}", "file": "bash_completionsV2.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1647: return completions, ShellCompDirectiveNoSpace | ShellCompDirectiveNoFileComp", "file": "completions_test.go", "symbol": "", "line": 1647, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nLine 1230: _ = c.Flags().SetAnnotation(helpFlagName, FlagSetByCobraAnnotation, []string{\"true\"})", "file": "command.go", "symbol": "", "line": 1230, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "shell_completions.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 6: github.com/cpuguy83/go-md2man/v2 v2.0.6", "file": "go.mod", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 131: }", "file": "doc/man_docs.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 151: },", "file": "cobra_test.go", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 305: ShellCompDirectiveError, ShellCompDirectiveNoSpace, ShellCompDirectiveNoFileComp,", "file": "zsh_completions.go", "symbol": "", "line": 305, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "셸 완성 시 결과 뒤에 공백을 추가하지 않도록 설정하는 상수가 어디에 정의되어 있나요?", "query": "shell completion no space", "file": "completions.go", "symbol": "ShellCompDirectiveNoSpace", "line": 62, "lang": "ko", "candidates": [{"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "셸 완성 시 결과 뒤에 공백을 추가하지 않도록 설정하는 상수가 어디에 정의되어 있나요?", "query": "shell completion no space", "file": "completions.go", "symbol": "ShellCompDirectiveNoSpace", "line": 62, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "셸 완성 시 결과 뒤에 공백을 추가하지 않도록 설정하는 상수가 어디에 정의되어 있나요?", "query": "shell completion no space", "file": "completions.go", "symbol": "ShellCompDirectiveNoSpace", "line": 62, "lang": "ko", "candidates": [{"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=401-424\nread TestRangeArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=144-167\nread validateRequiredFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateRequiredFlagGroups", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=97-120\nread MaximumNArgs for detail", "file": "args.go", "symbol": "MaximumNArgs", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=111-134\nread BenchmarkGenMarkdownToFile for detail", "file": "doc/md_docs_test.go", "symbol": "BenchmarkGenMarkdownToFile", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=146-169\nread TestRootExecuteUnknownCommand for detail", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=283-306\nread TestMaximumNArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1276-1299\nread TestValidArgsFuncCmdContext for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncCmdContext", "line": 1276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=62-85\nread ShellCompDirectiveNoSpace for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoSpace", "line": 62, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=508-531\nread writeFlag for detail", "file": "bash_completions.go", "symbol": "writeFlag", "line": 508, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=683-706\nread GenBashCompletion for detail", "file": "bash_completions.go", "symbol": "GenBashCompletion", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=248-271\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=274-297\nread TestCommandAlias for detail", "file": "command_test.go", "symbol": "TestCommandAlias", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=159-182\nread trimRightSpace for detail", "file": "cobra.go", "symbol": "trimRightSpace", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=29-52\nread TestActiveHelpAlone for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2163-2186\nread err for detail", "file": "completions_test.go", "symbol": "err", "line": 2163, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Where is the logic that triggers the help text output when a user enters an incorrect argument?", "query": "usage error output", "file": "command.go", "symbol": "Usage", "line": 478, "lang": "en", "candidates": [{"text": "File: doc/md_docs_test.go\nLine 76: checkStringContains(t, output, echoSubCmd.Short)", "file": "doc/md_docs_test.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 478: func (c *Command) Usage() error {", "file": "command.go", "symbol": "Usage", "line": 478, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions_test.go\nLine 61: buf := new(bytes.Buffer)", "file": "fish_completions_test.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 131: if [[ $(type -t compopt) = \"builtin\" ]]; then", "file": "bash_completions.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 83: // AddTemplateFunc adds a template function that's available to Usage and Help", "file": "cobra.go", "symbol": "", "line": 83, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nLine 32: check(t, output, fmt.Sprintf(\"${env:%s}=0\", activeHelpVar))", "file": "powershell_completions_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 132: // with custom filePrepender and linkHandler.", "file": "doc/md_docs.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 608: completions = append(completions, CompletionWithDesc(flagName, flag.Usage))", "file": "completions.go", "symbol": "", "line": 608, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nLine 404: func writePostscript(buf io.StringWriter, name string) {", "file": "bash_completions.go", "symbol": "", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 156: expected: false,", "file": "cobra_test.go", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 183: cobra.WriteStringAndCheck(buf, fmt.Sprintf(format, flag.DefValue, flag.Usage))", "file": "doc/man_docs.go", "symbol": "", "line": 183, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nLine 44: func validOnlyWithInvalidArgs(err error, t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 140: os.Exit(1)", "file": "doc/yaml_docs.go", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/md_docs_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 28: activeHelpGlobalDisable = \"0\"", "file": "active_help.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 102: if err := validateOneRequiredFlagGroups(oneRequiredGroupStatus); err != nil {", "file": "flag_groups.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 48: defer func() { f.Hidden = false }()", "file": "doc/rest_docs_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "bash_completionsV2_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 349: return c.genPowerShellCompletion(w, true)", "file": "powershell_completions.go", "symbol": "", "line": 349, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "bash_completionsV2_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 34: Usage string `yaml:\",omitempty\"`", "file": "doc/yaml_docs.go", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nLine 935: got := childCmd.Flags().Lookup(\"help\").Usage", "file": "command_test.go", "symbol": "", "line": 935, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nLine 43: Title: \"MINE\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 283: func TestMaximumNArgs_WithValid_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 283, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Where is the logic that triggers the help text output when a user enters an incorrect argument?", "query": "usage error output", "file": "command.go", "symbol": "Usage", "line": 478, "lang": "en", "candidates": [{"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Where is the logic that triggers the help text output when a user enters an incorrect argument?", "query": "usage error output", "file": "command.go", "symbol": "Usage", "line": 478, "lang": "en", "candidates": [{"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Where is the logic that triggers the help text output when a user enters an incorrect argument?", "query": "usage error output", "file": "command.go", "symbol": "Usage", "line": 478, "lang": "en", "candidates": [{"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=689-712\nread Type for detail", "file": "completions_test.go", "symbol": "Type", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=478-501\nread Usage for detail", "file": "command.go", "symbol": "Usage", "line": 478, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=85-108\nread AddTemplateFunc for detail", "file": "cobra.go", "symbol": "AddTemplateFunc", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=741-764\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 741, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=394-417\nread TestPluginWithSubCommands for detail", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=284-307\nread GenFishCompletionFile for detail", "file": "fish_completions.go", "symbol": "GenFishCompletionFile", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=683-706\nread GenBashCompletion for detail", "file": "bash_completions.go", "symbol": "GenBashCompletion", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=69-92\nread timesCmd for detail", "file": "doc/cmd_test.go", "symbol": "timesCmd", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=171-194\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=95-118\nread checkStringContains for detail", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=22-45\nread test for detail", "file": "Makefile", "symbol": "test", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "매뉴얼 페이지 생성하는 로직 테스트하는 코드 어디 있어?", "query": "test man page", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lang": "ko", "candidates": [{"text": "File: powershell_completions.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "powershell_completions.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/cmd_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 39: func TestGenManDoc(t *testing.T) {", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nLine 2349: childCmd.Flags().String(\"str\", \"\", \"\")", "file": "command_test.go", "symbol": "", "line": 2349, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 28: output := buf.String()", "file": "powershell_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 71: }", "file": "flag_groups.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 49: if err := GenYaml(rootCmd, buf); err != nil {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 661: commandName = strings.ReplaceAll(commandName, \":\", \"__\")", "file": "bash_completions.go", "symbol": "", "line": 661, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 233: c.Flags().Bool(flagName, false, \"\")", "file": "bash_completions_test.go", "symbol": "", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 60: tmpdir, err := os.MkdirTemp(\"\", \"test-gen-yaml-tree\")", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 174: check(t, output, \"_root_cmd__colon\")", "file": "bash_completions_test.go", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 182: if test $compErr -eq 1", "file": "fish_completions.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 40: function __%[1]s_debug {", "file": "powershell_completions.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 234: c.Flags().VisitAll(func(pflag *flag.Flag) {", "file": "flag_groups.go", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 8: //", "file": "doc/man_docs.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1277: if e != nil {", "file": "command.go", "symbol": "", "line": 1277, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 31: nameForVar = strings.ReplaceAll(nameForVar, \"-\", \"_\")", "file": "powershell_completions.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 106: if _, err := os.Stat(filepath.Join(tmpdir, \"do.md\")); err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 8: //", "file": "doc/man_examples_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1128: c = cmd", "file": "command.go", "symbol": "", "line": 1128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "zsh_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1367: }", "file": "completions_test.go", "symbol": "", "line": 1367, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 157: }", "file": "cobra.go", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "zsh_completions.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "매뉴얼 페이지 생성하는 로직 테스트하는 코드 어디 있어?", "query": "test man page", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lang": "ko", "candidates": [{"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nelsewhere in the tree", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\ndefines TestGenManDoc", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "매뉴얼 페이지 생성하는 로직 테스트하는 코드 어디 있어?", "query": "test man page", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lang": "ko", "candidates": [{"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> testing", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> github.com/spf13/cobra", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> fmt", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> path/filepath", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> os", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> strings", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "매뉴얼 페이지 생성하는 로직 테스트하는 코드 어디 있어?", "query": "test man page", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lang": "ko", "candidates": [{"text": "Next: read args_test.go lines=307-330\nread TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=25-48\nread GenZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFile", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=592-615\nread UsageTemplate for detail", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=389-412\nread TestRangeArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2280-2303\nread TestValidArgsNotValidArgsFunc for detail", "file": "completions_test.go", "symbol": "TestValidArgsNotValidArgsFunc", "line": 2280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=44-67\nread TestGenYamlNoTag for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlNoTag", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread left for detail", "file": "cobra.go", "symbol": "left", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=127-150\nread TestGenManSeeAlso for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=32-55\nread printOptions for detail", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=980-1003\nread CompDebugln for detail", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=618-641\nread VersionTemplate for detail", "file": "command.go", "symbol": "VersionTemplate", "line": 618, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=83-106\nread TestBashCompletions for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletions", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=97-120\nread MaximumNArgs for detail", "file": "args.go", "symbol": "MaximumNArgs", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=818-841\nread TestPersistentFlagsOnChild for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnChild", "line": 818, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=403-426\nread ErrOrStderr for detail", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "명령줄 인자로 유효한 값 2개('a', 'b')를 전달할 때, MinimumNArgs 검증기가 에러 없이 성공적으로 실행되는지 확인하는 버그 리포트", "query": "MinimumNArgs valid args test", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lang": "ko", "candidates": [{"text": "File: doc/rest_docs.go\nLine 22: \"path/filepath\"", "file": "doc/rest_docs.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 97: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "fish_completions_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 41: func forceMultiLine(s string) string {", "file": "doc/util.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 233: func TestMinimumNArgs_WithValid__WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_examples_test.go\nLine 31: Title: \"MINE\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 744: // This function will do nothing if any of the following is true:", "file": "completions.go", "symbol": "", "line": 744, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 244: filter=\"\\*.$filter\"", "file": "zsh_completions.go", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 150: elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then", "file": "bash_completions.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/util.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 20: var preExecHookFn func(*Command)", "file": "command_notwin.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 290: __%[1]s_handle_flag()", "file": "bash_completions.go", "symbol": "", "line": 290, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_notwin.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 215: min = d[i-1][j-1]", "file": "cobra.go", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 421: local local_nonpersistent_flags=()", "file": "bash_completions.go", "symbol": "", "line": 421, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 166: if err := GenReSTCustom(cmd, f, linkHandler); err != nil {", "file": "doc/rest_docs.go", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 17: import (", "file": "powershell_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 16: @test -z $(shell gofmt -l $(SRC)) || (gofmt -d $(SRC); exit 1)", "file": "Makefile", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "zsh_completions_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 621: var flagValue int", "file": "command_test.go", "symbol": "", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 41: return c", "file": "flag_groups_test.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 46: return nil", "file": "args.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 104: local shellCompDirectiveKeepOrder=%[8]d", "file": "bash_completionsV2.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 26: cmd := &cobra.Command{", "file": "doc/man_examples_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "명령줄 인자로 유효한 값 2개('a', 'b')를 전달할 때, MinimumNArgs 검증기가 에러 없이 성공적으로 실행되는지 확인하는 버그 리포트", "query": "MinimumNArgs valid args test", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lang": "ko", "candidates": [{"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestMinimumNArgs_WithValid__WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "명령줄 인자로 유효한 값 2개('a', 'b')를 전달할 때, MinimumNArgs 검증기가 에러 없이 성공적으로 실행되는지 확인하는 버그 리포트", "query": "MinimumNArgs valid args test", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "명령줄 인자로 유효한 값 2개('a', 'b')를 전달할 때, MinimumNArgs 검증기가 에러 없이 성공적으로 실행되는지 확인하는 버그 리포트", "query": "MinimumNArgs valid args test", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lang": "ko", "candidates": [{"text": "Next: read active_help_test.go lines=84-107\nread TestActiveHelpWithComps for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpWithComps", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=53-76\nread GenYamlTree for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTree", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=279-302\nread TestBashCompletionNoActiveHelp for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionNoActiveHelp", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2381-2404\nread TestCompleteHelp for detail", "file": "completions_test.go", "symbol": "TestCompleteHelp", "line": 2381, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=844-867\nread TestRequiredFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestRequiredFlagNameCompletionInGo", "line": 844, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=90-113\nread dummyCmd for detail", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=583-606\nread TestFlagNameCompletionInGoWithDesc for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGoWithDesc", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=644-667\nread writeArgAliases for detail", "file": "bash_completions.go", "symbol": "writeArgAliases", "line": 644, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=202-225\nread genMan for detail", "file": "doc/man_docs.go", "symbol": "genMan", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=313-336\nread SetUsageFunc for detail", "file": "command.go", "symbol": "SetUsageFunc", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=37-60\nread ExampleGenMan for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenMan", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=233-256\nread TestMinimumNArgs_WithValid__WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=580-603\nread minNamePadding for detail", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=160-183\nread FixedCompletions for detail", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read powershell_completions.go lines=342-365\nread GenPowerShellCompletionFileWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFileWithDesc", "line": 342, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "引数に有効な値と無効な値を入れた時の挙動を確認するテストを見つけて", "query": "test arbitrary args", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lang": "ja", "candidates": [{"text": "File: doc/yaml_docs.go\nLine 124: result = append(result, parent.CommandPath()+\" - \"+parent.Short)", "file": "doc/yaml_docs.go", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 332: } else {", "file": "completions.go", "symbol": "", "line": 332, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 13: // limitations under the License.", "file": "completions.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 20: var preExecHookFn func(*Command)", "file": "command_notwin.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 152: return err", "file": "doc/md_docs.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/man_examples_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 56: Aliases: []string{\"say\"},", "file": "doc/cmd_test.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 541: }", "file": "completions.go", "symbol": "", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "flag_groups.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 18: \"strings\"", "file": "doc/util.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 204: return fmt.Errorf(\"if any flags in the group [%v] are set none of the others can be; %v were all set\", flagList, set)", "file": "flag_groups.go", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 211: set --global __%[1]s_comp_results $completions", "file": "fish_completions.go", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 103: // OnFinalize sets the passed functions to be run when each command's", "file": "cobra.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 113: __%[1]s_debug \"Activating no space\"", "file": "bash_completionsV2.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 640: }", "file": "bash_completions.go", "symbol": "", "line": 640, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 207: func TestArbitraryArgs_WithValid_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nLine 71: if cmd.Runnable() {", "file": "doc/md_docs.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 379: }", "file": "bash_completionsV2.go", "symbol": "", "line": 379, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 223: }", "file": "cobra.go", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 51: if err := GenReST(echoCmd, buf); err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 87: file, err := os.CreateTemp(\"\", \"\")", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 427: return c.parent.getErr(def)", "file": "command.go", "symbol": "", "line": 427, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "powershell_completions_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 61: func (c *Command) MarkPersistentFlagFilename(name string, extensions ...string) error {", "file": "shell_completions.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "引数に有効な値と無効な値を入れた時の挙動を確認するテストを見つけて", "query": "test arbitrary args", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lang": "ja", "candidates": [{"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestArbitraryArgs_WithValid_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "引数に有効な値と無効な値を入れた時の挙動を確認するテストを見つけて", "query": "test arbitrary args", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lang": "ja", "candidates": [{"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "引数に有効な値と無効な値を入れた時の挙動を確認するテストを見つけて", "query": "test arbitrary args", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lang": "ja", "candidates": [{"text": "Next: read command.go lines=526-549\nread UsageString for detail", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=207-230\nread TestArbitraryArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=741-764\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 741, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=493-516\nread TestFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGo", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=587-610\nread helpOrVersionFlagPresent for detail", "file": "completions.go", "symbol": "helpOrVersionFlagPresent", "line": 587, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=171-194\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=111-134\nread BenchmarkGenMarkdownToFile for detail", "file": "doc/md_docs_test.go", "symbol": "BenchmarkGenMarkdownToFile", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2141-2164\nread wg for detail", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=459-482\nread writeFlagHandler for detail", "file": "bash_completions.go", "symbol": "writeFlagHandler", "line": 459, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1560-1583\nread TestNoValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestNoValidArgsFuncInBashScript", "line": 1560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=632-655\nread completeRequireFlags for detail", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2850-2873\nread TestCompleteWithRootAndLegacyArgs for detail", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=583-606\nread TestFlagNameCompletionInGoWithDesc for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGoWithDesc", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=186-209\nread assertLineFound for detail", "file": "doc/man_docs_test.go", "symbol": "assertLineFound", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread right for detail", "file": "cobra.go", "symbol": "right", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=333-356\nread SetHelpFunc for detail", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "activehelp 전역 환경변수 명칭을 구성하는 상수 정의", "query": "active help env var", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lang": "ko", "candidates": [{"text": "File: bash_completionsV2_test.go\nLine 2: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2352: t.Errorf(\"Unexpected error: %v\", err)", "file": "completions_test.go", "symbol": "", "line": 2352, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 5: // You may obtain a copy of the License at", "file": "bash_completionsV2_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 220: $Values | ForEach-Object {", "file": "powershell_completions.go", "symbol": "", "line": 220, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 35: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 548: validOnlyWithInvalidArgs(err, t)", "file": "args_test.go", "symbol": "", "line": 548, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 27: activeHelpGlobalEnvVar = configEnvVarGlobalPrefix + \"_\" + activeHelpEnvVarSuffix", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2.go\nLine 412: # If there is enough space for any description text,", "file": "bash_completionsV2.go", "symbol": "", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 143: // GenReSTTreeCustom is the same as GenReSTTree, but", "file": "doc/rest_docs.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 38: checkStringContains(t, output, rootCmd.Short)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2188: cmd.Printf(\"Prin%s\", \"t\")", "file": "command_test.go", "symbol": "", "line": 2188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 13: // limitations under the License.", "file": "zsh_completions_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 378: }", "file": "completions.go", "symbol": "", "line": 378, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3340: case err == nil && output != tc.expectedOutput:", "file": "completions_test.go", "symbol": "", "line": 3340, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_win.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 201: check(t, output, fmt.Sprintf(`flags_completion+=(\"__%s_handle_subdirs_in_dir_flag themes\")`, rootCmd.Name()))", "file": "bash_completions_test.go", "symbol": "", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 361: os.Setenv(activeHelpGlobalEnvVar, \"0\")", "file": "active_help_test.go", "symbol": "", "line": 361, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nLine 6: //", "file": "doc/md_docs_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 12: // See the License for the specific language governing permissions and", "file": "doc/util.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 32: continue", "file": "doc/util.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 27: assertNoErr(t, c.GenBashCompletionV2(buf, true))", "file": "bash_completionsV2_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 32: check(t, output, fmt.Sprintf(\"${env:%s}=0\", activeHelpVar))", "file": "powershell_completions_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1985: fmt.Fprintf(w, \" %s\", c.NameAndAliases())", "file": "command.go", "symbol": "", "line": 1985, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "activehelp 전역 환경변수 명칭을 구성하는 상수 정의", "query": "active help env var", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lang": "ko", "candidates": [{"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "cobra", "task": "activehelp 전역 환경변수 명칭을 구성하는 상수 정의", "query": "active help env var", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lang": "ko", "candidates": [{"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "activehelp 전역 환경변수 명칭을 구성하는 상수 정의", "query": "active help env var", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lang": "ko", "candidates": [{"text": "Next: read shell_completions.go lines=24-47\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2451-2474\nread removeCompCmd for detail", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2187-2210\nread TestFlagCompletionInGoWithDesc for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGoWithDesc", "line": 2187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2926-2949\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2926, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=26-49\nread activeHelpEnvVarSuffix for detail", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completionsV2_test.go lines=23-46\nread TestBashCompletionV2WithActiveHelp for detail", "file": "bash_completionsV2_test.go", "symbol": "TestBashCompletionV2WithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=407-430\nread TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 407, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=484-507\nread HelpFunc for detail", "file": "command.go", "symbol": "HelpFunc", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=149-172\nread genFlagResult for detail", "file": "doc/yaml_docs.go", "symbol": "genFlagResult", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1006-1029\nread configEnvVar for detail", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=47-70\nread GetActiveHelpConfig for detail", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=38-61\nread AppendActiveHelp for detail", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=207-230\nread TestArbitraryArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=186-209\nread GetFlagCompletionFunc for detail", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read active_help_test.go lines=25-48\nread activeHelpMessage for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=684-707\nread Set for detail", "file": "completions_test.go", "symbol": "Set", "line": 684, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "コマンドライン引数で渡された値がフラグ(オプション)かどうかを判定する際に、2文字以上の引数で「--」で始まる場合、または1文字以上の引数で「-」で始まり「--」でない場合にフラグとして認識するようにしたい。ただし、フラグの値として解釈すべき通常の引数は除外されるようにしたい。", "query": "flag argument check", "file": "command.go", "symbol": "isFlagArg", "line": 750, "lang": "ja", "candidates": [{"text": "File: cobra_test.go\nLine 293: defer os.Remove(progname)", "file": "cobra_test.go", "symbol": "", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 6: github.com/cpuguy83/go-md2man/v2 v2.0.6", "file": "go.mod", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "powershell_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 1006: func configEnvVar(name, suffix string) string {", "file": "completions.go", "symbol": "", "line": 1006, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 5: // You may obtain a copy of the License at", "file": "bash_completionsV2_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 53: }", "file": "active_help.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 19: \"fmt\"", "file": "bash_completions_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 43: // ShellCompDirective is a bit map representing the different behaviors the shell", "file": "completions.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 750: func isFlagArg(arg string) bool {", "file": "command.go", "symbol": "isFlagArg", "line": 750, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 113: // Assert", "file": "cobra_test.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/man_examples_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 452: \"two\",", "file": "completions_test.go", "symbol": "", "line": 452, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 50: activeHelpCfg = os.Getenv(activeHelpEnvVar(cmd.Root().Name()))", "file": "active_help.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 85: Header *GenManHeader", "file": "doc/man_docs.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/md_docs.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 12: // See the License for the specific language governing permissions and", "file": "active_help.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/util.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 439: // a '-' we know it is a flag. We cannot use isFlagArg() here as it requires", "file": "completions.go", "symbol": "", "line": 439, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nLine 188: c := getCommand(MatchAll(OnlyValidArgs, NoDuplicateArgs), true)", "file": "args_test.go", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "active_help.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 15: package cobra", "file": "zsh_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 213: # If flag parsing is enabled, we have completed the flags and can return.", "file": "bash_completions.go", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 21: \"os/exec\"", "file": "bash_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "args.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "コマンドライン引数で渡された値がフラグ(オプション)かどうかを判定する際に、2文字以上の引数で「--」で始まる場合、または1文字以上の引数で「-」で始まり「--」でない場合にフラグとして認識するようにしたい。ただし、フラグの値として解釈すべき通常の引数は除外されるようにしたい。", "query": "flag argument check", "file": "command.go", "symbol": "isFlagArg", "line": 750, "lang": "ja", "candidates": [{"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "コマンドライン引数で渡された値がフラグ(オプション)かどうかを判定する際に、2文字以上の引数で「--」で始まる場合、または1文字以上の引数で「-」で始まり「--」でない場合にフラグとして認識するようにしたい。ただし、フラグの値として解釈すべき通常の引数は除外されるようにしたい。", "query": "flag argument check", "file": "command.go", "symbol": "isFlagArg", "line": 750, "lang": "ja", "candidates": [{"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "コマンドライン引数で渡された値がフラグ(オプション)かどうかを判定する際に、2文字以上の引数で「--」で始まる場合、または1文字以上の引数で「-」で始まり「--」でない場合にフラグとして認識するようにしたい。ただし、フラグの値として解釈すべき通常の引数は除外されるようにしたい。", "query": "flag argument check", "file": "command.go", "symbol": "isFlagArg", "line": 750, "lang": "ja", "candidates": [{"text": "Next: read completions_test.go lines=2916-2939\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2916, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=932-955\nread findFlag for detail", "file": "completions.go", "symbol": "findFlag", "line": 932, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=421-444\nread TestRootTakesNoArgs for detail", "file": "args_test.go", "symbol": "TestRootTakesNoArgs", "line": 421, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=37-60\nread ExampleGenMan for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenMan", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=271-294\nread TestMaximumNArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=499-522\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 499, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=750-773\nread isFlagArg for detail", "file": "command.go", "symbol": "isFlagArg", "line": 750, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=175-198\nread TestNoDuplicateArgs_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithDuplicateArgs", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=275-298\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=84-107\nread GenManTreeOptions for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeOptions", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=42-65\nread TestCompleteCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteCmdInFishScript", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=357-380\nread TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=49-72\nread TestLevenshteinDistance for detail", "file": "cobra_test.go", "symbol": "TestLevenshteinDistance", "line": 49, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Existe um erro na função que adiciona preenchimento à direita de uma string; ela parece estar usando um formato que pode não se comportar como esperado se o valor de preenchimento for menor que o tamanho da string original.", "query": "right string padding", "file": "cobra.go", "symbol": "rpad", "line": 174, "lang": "pt", "candidates": [{"text": "File: args.go\nLine 92: return nil", "file": "args.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 88: BashCompletionFunction: bashCompletionFunc,", "file": "bash_completions_test.go", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 73: }", "file": "doc/md_docs.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 121: // NoArgs", "file": "args_test.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 41: checkStringContains(t, output, \"Options inherited from parent commands\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 245: return 0", "file": "fish_completions.go", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 206: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 98: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 234: # 3) ResultType type of completion result", "file": "powershell_completions.go", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1953: {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{else}}{{range $group := .Groups}}", "file": "command.go", "symbol": "", "line": 1953, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nLine 6: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 108: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 139: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 360: exactArgsWithInvalidCount(err, t)", "file": "args_test.go", "symbol": "", "line": 360, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 78: output := buf.String()", "file": "fish_completions_test.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 310: commands=()", "file": "bash_completions.go", "symbol": "", "line": 310, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 174: func rpad(s string, padding int) string {", "file": "cobra.go", "symbol": "rpad", "line": 174, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nLine 147: return err", "file": "doc/md_docs.go", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 221: got := rpad(tt.inputString, tt.padding)", "file": "cobra_test.go", "symbol": "", "line": 221, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nLine 243: }", "file": "args_test.go", "symbol": "", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 243: # zsh requires a glob pattern to do file filtering", "file": "zsh_completions.go", "symbol": "", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 640: }", "file": "command.go", "symbol": "", "line": 640, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "powershell_completions_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 100: if ( $IsEqualFlag ) {", "file": "powershell_completions.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Existe um erro na função que adiciona preenchimento à direita de uma string; ela parece estar usando um formato que pode não se comportar como esperado se o valor de preenchimento for menor que o tamanho da string original.", "query": "right string padding", "file": "cobra.go", "symbol": "rpad", "line": 174, "lang": "pt", "candidates": [{"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Existe um erro na função que adiciona preenchimento à direita de uma string; ela parece estar usando um formato que pode não se comportar como esperado se o valor de preenchimento for menor que o tamanho da string original.", "query": "right string padding", "file": "cobra.go", "symbol": "rpad", "line": 174, "lang": "pt", "candidates": [{"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Existe um erro na função que adiciona preenchimento à direita de uma string; ela parece estar usando um formato que pode não se comportar como esperado se o valor de preenchimento for menor que o tamanho da string original.", "query": "right string padding", "file": "cobra.go", "symbol": "rpad", "line": 174, "lang": "pt", "candidates": [{"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=493-516\nread TestFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGo", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=629-652\nread writeCmdAliases for detail", "file": "bash_completions.go", "symbol": "writeCmdAliases", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=57-80\nread GenMarkdownCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownCustom", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=47-70\nread GetActiveHelpConfig for detail", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=741-764\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 741, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=327-350\nread err for detail", "file": "completions.go", "symbol": "err", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=121-144\nread TestStringInSlice for detail", "file": "cobra_test.go", "symbol": "TestStringInSlice", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=484-507\nread HelpFunc for detail", "file": "command.go", "symbol": "HelpFunc", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=84-107\nread ShellCompDirectiveKeepOrder for detail", "file": "completions.go", "symbol": "ShellCompDirectiveKeepOrder", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=631-654\nread getVersionTemplateFunc for detail", "file": "command.go", "symbol": "getVersionTemplateFunc", "line": 631, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=174-197\nread rpad for detail", "file": "cobra.go", "symbol": "rpad", "line": 174, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read fish_completions.go lines=276-299\nread GenFishCompletion for detail", "file": "fish_completions.go", "symbol": "GenFishCompletion", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=103-126\nread compCmdNoDescFlagDefault for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDefault", "line": 103, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "I'm working on the fuzzy matching logic for the command parser. Can you find the helper that calculates the edit distance between two strings, including an option to treat them as case-insensitive?", "query": "levenshtein distance", "file": "cobra.go", "symbol": "ld", "line": 192, "lang": "en", "candidates": [{"text": "File: completions_test.go\nLine 669: if output != expected {", "file": "completions_test.go", "symbol": "", "line": 669, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 101: }", "file": "args.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 430: var directive ShellCompDirective", "file": "completions.go", "symbol": "", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2633: PreRun: func(cmd *Command, args []string) {", "file": "command_test.go", "symbol": "", "line": 2633, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 58: c := &cobra.Command{Use: \"do [OPTIONS] arg1 arg2\"}", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 27: \"github.com/spf13/cobra\"", "file": "doc/rest_docs.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 461: switch key {", "file": "bash_completions.go", "symbol": "", "line": 461, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 45: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 449: for _, c := range cmd.Commands() {", "file": "bash_completions.go", "symbol": "", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2276: t.Errorf(\"expected: %q, got: %q\", expected, output)", "file": "completions_test.go", "symbol": "", "line": 2276, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 211: manPreamble(buf, header, cmd, dashCommandName)", "file": "doc/man_docs.go", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 8: //", "file": "doc/cmd_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 2: SRC=$(shell find . -name \"*.go\")", "file": "Makefile", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 41: Path: dir,", "file": "doc/man_docs.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 160: a: \"\",", "file": "cobra_test.go", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/yaml_docs.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 867: levenshteinDistance := ld(typedName, cmd.Name(), true)", "file": "command.go", "symbol": "", "line": 867, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nLine 1: BIN=\"./bin\"", "file": "Makefile", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 192: func ld(s, t string, ignoreCase bool) int {", "file": "cobra.go", "symbol": "ld", "line": 192, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 111: got := ld(tt.s, tt.t, tt.ignoreCase)", "file": "cobra_test.go", "symbol": "", "line": 111, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nLine 71: for _, arg := range args {", "file": "args.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 6: github.com/cpuguy83/go-md2man/v2 v2.0.6", "file": "go.mod", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 63: },", "file": "cobra_test.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "zsh_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "I'm working on the fuzzy matching logic for the command parser. Can you find the helper that calculates the edit distance between two strings, including an option to treat them as case-insensitive?", "query": "levenshtein distance", "file": "cobra.go", "symbol": "ld", "line": 192, "lang": "en", "candidates": [{"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "I'm working on the fuzzy matching logic for the command parser. Can you find the helper that calculates the edit distance between two strings, including an option to treat them as case-insensitive?", "query": "levenshtein distance", "file": "cobra.go", "symbol": "ld", "line": 192, "lang": "en", "candidates": [{"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "I'm working on the fuzzy matching logic for the command parser. Can you find the helper that calculates the edit distance between two strings, including an option to treat them as case-insensitive?", "query": "levenshtein distance", "file": "cobra.go", "symbol": "ld", "line": 192, "lang": "en", "candidates": [{"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=24-47\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=127-150\nread TestGenManSeeAlso for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=192-215\nread ld for detail", "file": "cobra.go", "symbol": "ld", "line": 192, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=102-125\nread compCmdNoDescFlagDesc for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDesc", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=87-110\nread genZshComp for detail", "file": "zsh_completions.go", "symbol": "genZshComp", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=67-90\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=90-113\nread MarkPersistentFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagDirname", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=206-229\nread TestExecuteContextC for detail", "file": "command_test.go", "symbol": "TestExecuteContextC", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2121-2144\nread TestFlagCompletionConcurrentRegistration for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionConcurrentRegistration", "line": 2121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=657-680\nread checkIfFlagCompletion for detail", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=632-655\nread completeRequireFlags for detail", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=680-703\nread String for detail", "file": "completions_test.go", "symbol": "String", "line": 680, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=80-103\nread checkStringOmits for detail", "file": "command_test.go", "symbol": "checkStringOmits", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=121-144\nread processFlagForGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1318-1341\nread TestValidArgsFuncSingleCmd for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Onde é definida a variável que armazena o slice de bytes da resposta?", "query": "[]byte response", "file": "doc/rest_docs.go", "symbol": "res", "line": 174, "lang": "pt", "candidates": [{"text": "File: zsh_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "zsh_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 252: const (", "file": "cobra_test.go", "symbol": "", "line": 252, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 61: // EnableCaseInsensitive allows case-insensitive commands names. (case sensitive by default)", "file": "cobra.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 174: var res []byte", "file": "doc/rest_docs.go", "symbol": "res", "line": 174, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nLine 175: __%[1]s_debug \"ShellCompDirectiveNoSpace is called\"", "file": "powershell_completions.go", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 47: }", "file": "doc/md_docs.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 193: })", "file": "flag_groups_test.go", "symbol": "", "line": 193, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 30: header := &doc.GenManHeader{", "file": "doc/man_examples_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 167: DefaultValue: forceMultiLine(flag.DefValue),", "file": "doc/yaml_docs.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 34: cobra.CheckErr(doc.GenManTree(cmd, header, \"/tmp\"))", "file": "doc/man_examples_test.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 2: //", "file": "doc/md_docs_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 176: defer flagCompletionMutex.Unlock()", "file": "completions.go", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 8: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 6: //", "file": "command_notwin.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 56: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 73: desc: \"Exclusive flag group not satisfied\",", "file": "flag_groups_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 50: activeHelpCfg = os.Getenv(activeHelpEnvVar(cmd.Root().Name()))", "file": "active_help.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1483: var useline string", "file": "command.go", "symbol": "", "line": 1483, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 86: # Extract the directive integer at the very end of the output following a colon (:)", "file": "bash_completionsV2.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 299: ;;", "file": "bash_completionsV2.go", "symbol": "", "line": 299, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 146: }", "file": "bash_completions_test.go", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "zsh_completions_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 85: args: []string{\"--c=foo\", \"--f=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 164: rootCmd.AddCommand(echoCmd, printCmd, deprecatedCmd, colonCmd)", "file": "bash_completions_test.go", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Onde é definida a variável que armazena o slice de bytes da resposta?", "query": "[]byte response", "file": "doc/rest_docs.go", "symbol": "res", "line": 174, "lang": "pt", "candidates": [{"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nelsewhere in the tree", "file": "Makefile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nsibling in doc", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Onde é definida a variável que armazena o slice de bytes da resposta?", "query": "[]byte response", "file": "doc/rest_docs.go", "symbol": "res", "line": 174, "lang": "pt", "candidates": [{"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> io", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> path/filepath", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> sort", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> os", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> strings", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> time", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Onde é definida a variável que armazena o slice de bytes da resposta?", "query": "[]byte response", "file": "doc/rest_docs.go", "symbol": "res", "line": 174, "lang": "pt", "candidates": [{"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=680-703\nread String for detail", "file": "completions_test.go", "symbol": "String", "line": 680, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=49-72\nread TestLevenshteinDistance for detail", "file": "cobra_test.go", "symbol": "TestLevenshteinDistance", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=311-334\nread SliceValue for detail", "file": "completions.go", "symbol": "SliceValue", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=138-161\nread GenReSTTree for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTree", "line": 138, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=30-53\nread printOptionsReST for detail", "file": "doc/rest_docs.go", "symbol": "printOptionsReST", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=58-81\nread TestGenMdNoHiddenParents for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=62-85\nread GenReSTCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTCustom", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=174-197\nread res for detail", "file": "doc/rest_docs.go", "symbol": "res", "line": 174, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=643-666\nread TestStripFlags for detail", "file": "command_test.go", "symbol": "TestStripFlags", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=376-399\nread SetErrPrefix for detail", "file": "command.go", "symbol": "SetErrPrefix", "line": 376, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=618-641\nread VersionTemplate for detail", "file": "command.go", "symbol": "VersionTemplate", "line": 618, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=573-596\nread CommandPathPadding for detail", "file": "command.go", "symbol": "CommandPathPadding", "line": 573, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=95-118\nread ShellCompDirectiveDefault for detail", "file": "completions.go", "symbol": "ShellCompDirectiveDefault", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2916-2939\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2916, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=331-354\nread GenPowerShellCompletionFile for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFile", "line": 331, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=57-80\nread GenReST for detail", "file": "doc/rest_docs.go", "symbol": "GenReST", "line": 57, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=49-72\nread defaultTraverseRunHooks for detail", "file": "cobra.go", "symbol": "defaultTraverseRunHooks", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=412-435\nread getOut for detail", "file": "command.go", "symbol": "getOut", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=295-318\nread TestMaximumNArgs_WithMoreArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs", "line": 295, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=55-78\nread EnablePrefixMatching for detail", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "trouve la méthode qui récupère le préfixe des messages d'erreur en remontant la hiérarchie", "query": "error prefix", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lang": "fr", "candidates": [{"text": "File: shell_completions.go\nLine 8: //", "file": "shell_completions.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 8: //", "file": "doc/man_docs.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 121: result := []string{}", "file": "doc/yaml_docs.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 53: }", "file": "active_help.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 147: }", "file": "powershell_completions.go", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 165: if len(flag.Shorthand) > 0 && len(flag.ShorthandDeprecated) == 0 {", "file": "doc/man_docs.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 2: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 67: checkOmit(t, output, \"__root-dash_perform_completion\")", "file": "fish_completions_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 45: return buf.String(), err", "file": "command_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 62: if header.Section != \"\" {", "file": "doc/man_docs.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 6: endif", "file": "Makefile", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 80: func (c *Command) genZshCompletion(w io.Writer, includeDesc bool) error {", "file": "zsh_completions.go", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 39: __%[1]s_debug()", "file": "bash_completionsV2.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 329: output, err := executeCommand(c, \"three\", \"one\", \"two\")", "file": "args_test.go", "symbol": "", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 149: defer f.Close()", "file": "doc/md_docs.go", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 192: cobra.WriteStringAndCheck(buf, \"\\n\")", "file": "doc/man_docs.go", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 99: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 101: for _, child := range children {", "file": "doc/md_docs.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 51: func OnlyValidArgs(cmd *Command, args []string) error {", "file": "args.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 212: manPrintOptions(buf, cmd)", "file": "doc/man_docs.go", "symbol": "", "line": 212, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 37: checkStringContains(t, output, \"boolone\")", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 643: func (c *Command) ErrPrefix() string {", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nLine 182: // check for custom completion function body", "file": "bash_completions_test.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 44: }", "file": "bash_completions_test.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "trouve la méthode qui récupère le préfixe des messages d'erreur en remontant la hiérarchie", "query": "error prefix", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lang": "fr", "candidates": [{"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "trouve la méthode qui récupère le préfixe des messages d'erreur en remontant la hiérarchie", "query": "error prefix", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lang": "fr", "candidates": [{"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "trouve la méthode qui récupère le préfixe des messages d'erreur en remontant la hiérarchie", "query": "error prefix", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lang": "fr", "candidates": [{"text": "Next: read args_test.go lines=251-274\nread TestMinimumNArgs_WithLessArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=55-78\nread EnablePrefixMatching for detail", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=159-182\nread TestSubcommandExecuteC for detail", "file": "command_test.go", "symbol": "TestSubcommandExecuteC", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2123-2146\nread maxFlags for detail", "file": "completions_test.go", "symbol": "maxFlags", "line": 2123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1591-1614\nread TestCompleteNoDesCmdInZshScript for detail", "file": "completions_test.go", "symbol": "TestCompleteNoDesCmdInZshScript", "line": 1591, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=181-204\nread TestNoDuplicateArgs_WithValid_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=932-955\nread findFlag for detail", "file": "completions.go", "symbol": "findFlag", "line": 932, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=102-125\nread compCmdNoDescFlagDesc for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDesc", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2899-2922\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2899, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=75-98\nread TestGenYamlDocRunnable for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDocRunnable", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=138-161\nread GenReSTTree for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTree", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=643-666\nread ErrPrefix for detail", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=187-210\nread TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=588-611\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 588, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Je travaille sur la génération des scripts d'autocomplétion. Peux-tu me montrer la logique qui écrit l'en-tête et les fonctions utilitaires de base au début du fichier généré ?", "query": "bash completion preamble", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lang": "fr", "candidates": [{"text": "File: bash_completions.go\nLine 36: func writePreamble(buf io.StringWriter, name string) {", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nLine 131: // GenMarkdownTreeCustom is the same as GenMarkdownTree, but", "file": "doc/md_docs.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 217: func BenchmarkGenManToFile(b *testing.B) {", "file": "doc/man_docs_test.go", "symbol": "", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 13: // limitations under the License.", "file": "doc/cmd_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 173: set -l shellCompDirectiveNoFileComp %[6]d", "file": "fish_completions.go", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 27: Use: \"test\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 20: var preExecHookFn func(*Command)", "file": "command_notwin.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "fish_completions_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 945: output, err := executeCommand(rootCmd, \"help\")", "file": "command_test.go", "symbol": "", "line": 945, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 822: #### macOS:", "file": "completions.go", "symbol": "", "line": 822, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_notwin.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 240: filteringCmd='_files'", "file": "zsh_completions.go", "symbol": "", "line": 240, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 115: else", "file": "bash_completionsV2.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 58: func activeHelpEnvVar(name string) string {", "file": "active_help.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 43: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 439: fi", "file": "bash_completionsV2.go", "symbol": "", "line": 439, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 31: if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {", "file": "doc/util.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 102: local shellCompDirectiveFilterFileExt=%[6]d", "file": "bash_completionsV2.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 170: rootCmd.AddCommand(childCmd1)", "file": "completions_test.go", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 6: //", "file": "shell_completions.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 2: //", "file": "command_win.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 93: function __%[1]s_perform_completion_once", "file": "fish_completions.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 15: $(info ******************** checking formatting ********************)", "file": "Makefile", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/md_docs.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Je travaille sur la génération des scripts d'autocomplétion. Peux-tu me montrer la logique qui écrit l'en-tête et les fonctions utilitaires de base au début du fichier généré ?", "query": "bash completion preamble", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lang": "fr", "candidates": [{"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Je travaille sur la génération des scripts d'autocomplétion. Peux-tu me montrer la logique qui écrit l'en-tête et les fonctions utilitaires de base au début du fichier généré ?", "query": "bash completion preamble", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lang": "fr", "candidates": [{"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> strings", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions.go -> os", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> io", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> github.com/spf13/pflag", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> sort", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Je travaille sur la génération des scripts d'autocomplétion. Peux-tu me montrer la logique qui écrit l'en-tête et les fonctions utilitaires de base au début du fichier généré ?", "query": "bash completion preamble", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lang": "fr", "candidates": [{"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=53-76\nread GenYamlTree for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTree", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=492-515\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=444-467\nread UsageFunc for detail", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=231-254\nread TestActiveHelpForFlag for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpForFlag", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=89-112\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2694-2717\nread TestMultipleShorthandFlagCompletion for detail", "file": "completions_test.go", "symbol": "TestMultipleShorthandFlagCompletion", "line": 2694, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=44-67\nread TestGenMdDocWithNoLongOrSynopsis for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDocWithNoLongOrSynopsis", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=159-182\nread trimRightSpace for detail", "file": "cobra.go", "symbol": "trimRightSpace", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=233-256\nread TestMinimumNArgs_WithValid__WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1357-1380\nread TestValidArgsFuncSingleCmdInvalidArg for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=30-53\nread BashCompFilenameExt for detail", "file": "bash_completions.go", "symbol": "BashCompFilenameExt", "line": 30, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "检查在执行带有数值区间范围参数的命令时,是否能够正确接收并处理后续传入的变长字符串参数,确保在指定起止范围后,外部输入的多个值不会导致执行失败。", "query": "range args test", "file": "args_test.go", "symbol": "TestRangeArgs", "line": 371, "lang": "zh", "candidates": [{"text": "File: doc/md_docs_test.go\nLine 8: //", "file": "doc/md_docs_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 66: // limit completions for the named flag to the specified file extensions.", "file": "shell_completions.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 115: buf := new(bytes.Buffer)", "file": "doc/man_docs_test.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 15: package doc", "file": "doc/cmd_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 13: // limitations under the License.", "file": "fish_completions_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/md_docs.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 18: \"bytes\"", "file": "doc/man_examples_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 424: done", "file": "bash_completionsV2.go", "symbol": "", "line": 424, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 480: // GenBashCompletionV2 generates Bash completion file version 2", "file": "bash_completionsV2.go", "symbol": "", "line": 480, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 73: checkStringContains(t, output, \"boolone\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_notwin.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 371: func TestRangeArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestRangeArgs", "line": 371, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: shell_completions.go\nLine 94: // MarkFlagDirname instructs the various shell completion implementations to", "file": "shell_completions.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 400: }", "file": "active_help_test.go", "symbol": "", "line": 400, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "active_help.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 140: return nil", "file": "doc/man_docs.go", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 165: c := getCmd()", "file": "flag_groups_test.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 36: // the array. Each time this function is called with the same array, the new", "file": "active_help.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 76: checkStringContains(t, output, echoSubCmd.Short)", "file": "doc/md_docs_test.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 215: check(t, output, `local_nonpersistent_flags+=(\"--two-w-default\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 33: if MousetrapDisplayDuration > 0 {", "file": "command_win.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 17: import (", "file": "doc/util.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1470: t.Errorf(\"expected: %q, got: %q\", expected, output)", "file": "completions_test.go", "symbol": "", "line": 1470, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 24: // The below values should not be changed: programs will be using them explicitly", "file": "active_help.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "检查在执行带有数值区间范围参数的命令时,是否能够正确接收并处理后续传入的变长字符串参数,确保在指定起止范围后,外部输入的多个值不会导致执行失败。", "query": "range args test", "file": "args_test.go", "symbol": "TestRangeArgs", "line": 371, "lang": "zh", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestRangeArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "检查在执行带有数值区间范围参数的命令时,是否能够正确接收并处理后续传入的变长字符串参数,确保在指定起止范围后,外部输入的多个值不会导致执行失败。", "query": "range args test", "file": "args_test.go", "symbol": "TestRangeArgs", "line": 371, "lang": "zh", "candidates": [{"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "检查在执行带有数值区间范围参数的命令时,是否能够正确接收并处理后续传入的变长字符串参数,确保在指定起止范围后,外部输入的多个值不会导致执行失败。", "query": "range args test", "file": "args_test.go", "symbol": "TestRangeArgs", "line": 371, "lang": "zh", "candidates": [{"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=482-505\nread GenBashCompletionV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionV2", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=102-125\nread compCmdNoDescFlagDesc for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDesc", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=101-124\nread compCmdNoDescFlagName for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagName", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=52-75\nread GenMarkdown for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdown", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=231-254\nread TestActiveHelpForFlag for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpForFlag", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2323-2346\nread TestArgAliasesCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestArgAliasesCompletionInGo", "line": 2323, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=173-196\nread indentString for detail", "file": "doc/rest_docs.go", "symbol": "indentString", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=693-716\nread GetSlice for detail", "file": "completions_test.go", "symbol": "GetSlice", "line": 693, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=188-211\nread validateExclusiveFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateExclusiveFlagGroups", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=97-120\nread MaximumNArgs for detail", "file": "args.go", "symbol": "MaximumNArgs", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=121-144\nread processFlagForGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=86-109\nread onetwo for detail", "file": "command_test.go", "symbol": "onetwo", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=55-78\nread EnablePrefixMatching for detail", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=371-394\nread TestRangeArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs", "line": 371, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "cmdルート名に基づいて各フラグにgoカスタム完了関数を設定する", "query": "custom completion annotations", "file": "bash_completions.go", "symbol": "prepareCustomAnnotationsForFlags", "line": 536, "lang": "ja", "candidates": [{"text": "File: zsh_completions_test.go\nLine 30: // check that active help is not being disabled", "file": "zsh_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 31: if MousetrapHelpText != \"\" && mousetrap.StartedByExplorer() {", "file": "command_win.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 264: // None of the flags of the group are set, mark all flags in the group", "file": "flag_groups.go", "symbol": "", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 45: // We generate on subcommand so we have both subcommands and parents.", "file": "doc/md_docs_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 212: for k := range m {", "file": "flag_groups.go", "symbol": "", "line": 212, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 18: \"fmt\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/md_docs.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 32: func printOptions(buf *bytes.Buffer, cmd *cobra.Command, name string) error {", "file": "doc/md_docs.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 98: t.Fatalf(\"Failed to create tmpdir: %v\", err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 85: Use: \"root\",", "file": "bash_completions_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 73: Long: `a slightly useless command for testing.`,", "file": "doc/cmd_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2971: cmd := Command{", "file": "completions_test.go", "symbol": "", "line": 2971, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 2: //", "file": "doc/man_examples_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 37: fmt.Scanln()", "file": "command_win.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "bash_completionsV2_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2282: }", "file": "command_test.go", "symbol": "", "line": 2282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 138: return left > right", "file": "cobra.go", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 190: printf \"\\n\"", "file": "bash_completionsV2.go", "symbol": "", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 105: if err != nil {", "file": "active_help_test.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 77: // MousetrapDisplayDuration controls how long the MousetrapHelpText message is displayed on Windows", "file": "cobra.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 184: comps := AppendActiveHelp(nil, activeHelpMessage)", "file": "active_help_test.go", "symbol": "", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 85: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 28: rootCmd.PersistentFlags().StringP(\"strtwo\", \"t\", \"two\", \"help message for parent flag strtwo\")", "file": "doc/cmd_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 536: func prepareCustomAnnotationsForFlags(cmd *Command) {", "file": "bash_completions.go", "symbol": "prepareCustomAnnotationsForFlags", "line": 536, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "cmdルート名に基づいて各フラグにgoカスタム完了関数を設定する", "query": "custom completion annotations", "file": "bash_completions.go", "symbol": "prepareCustomAnnotationsForFlags", "line": 536, "lang": "ja", "candidates": [{"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "cmdルート名に基づいて各フラグにgoカスタム完了関数を設定する", "query": "custom completion annotations", "file": "bash_completions.go", "symbol": "prepareCustomAnnotationsForFlags", "line": 536, "lang": "ja", "candidates": [{"text": "Import (outbound): bash_completions.go -> strings", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> github.com/spf13/pflag", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> os", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> io", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> sort", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "cmdルート名に基づいて各フラグにgoカスタム完了関数を設定する", "query": "custom completion annotations", "file": "bash_completions.go", "symbol": "prepareCustomAnnotationsForFlags", "line": 536, "lang": "ja", "candidates": [{"text": "Next: read completions.go lines=186-209\nread GetFlagCompletionFunc for detail", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=327-350\nread err for detail", "file": "completions.go", "symbol": "err", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1624-1647\nread TestFlagCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGo", "line": 1624, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=318-341\nread SetUsageTemplate for detail", "file": "command.go", "symbol": "SetUsageTemplate", "line": 318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=89-112\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=537-560\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=536-559\nread prepareCustomAnnotationsForFlags for detail", "file": "bash_completions.go", "symbol": "prepareCustomAnnotationsForFlags", "line": 536, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=570-593\nread minCommandPathPadding for detail", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=43-66\nread expected for detail", "file": "cobra_test.go", "symbol": "expected", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=342-365\nread GenPowerShellCompletionFileWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFileWithDesc", "line": 342, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=376-399\nread TestValidArgsAndCmdCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsAndCmdCompletionInGo", "line": 376, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=643-666\nread ErrPrefix for detail", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=201-224\nread TestArbitraryArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1160-1183\nread TestFlagDirFilterCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagDirFilterCompletionInGo", "line": 1160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=748-771\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 748, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=38-61\nread AppendActiveHelp for detail", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=54-77\nread Command for detail", "file": "command.go", "symbol": "Command", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=30-53\nread BashCompFilenameExt for detail", "file": "bash_completions.go", "symbol": "BashCompFilenameExt", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "¿Dónde está la función que valida que un string no contenga un substring específico en los tests?", "query": "contains unexpected error", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lang": "es", "candidates": [{"text": "File: zsh_completions_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "zsh_completions_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 20: )", "file": "flag_groups_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 612: }", "file": "command.go", "symbol": "", "line": 612, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 25: // both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 99: func OnInitialize(y ...func()) {", "file": "cobra.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 97: checkStringOmits(t, output, \"rootflag\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 56: checkOmit(t, output, ShellCompNoDescRequestCmd)", "file": "fish_completions_test.go", "symbol": "", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nLine 137: __%[1]s_debug \"This does require order preservation\"", "file": "fish_completions.go", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 208: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/rest_docs.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 6: //", "file": "doc/md_docs_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 27: func checkOmit(t *testing.T, found, unexpected string) {", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nLine 88: }", "file": "doc/cmd_test.go", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 6: //", "file": "doc/man_examples_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/rest_docs_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 32: checkOmit(t, output, fmt.Sprintf(\"%s=0\", activeHelpVar))", "file": "bash_completionsV2_test.go", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nLine 32: checkOmit(t, output, fmt.Sprintf(\"%s=0\", activeHelpVar))", "file": "zsh_completions_test.go", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nLine 151: if _, err := io.WriteString(f, filePrepender(filename)); err != nil {", "file": "doc/md_docs.go", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 41: func forceMultiLine(s string) string {", "file": "doc/util.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 160: flag.DefValue,", "file": "doc/yaml_docs.go", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1572: checkOmit(t, output, \"has_completion_function=1\")", "file": "completions_test.go", "symbol": "", "line": 1572, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nLine 43: }", "file": "powershell_completions.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 40: header := &GenManHeader{", "file": "doc/man_docs_test.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "doc/md_docs.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "¿Dónde está la función que valida que un string no contenga un substring específico en los tests?", "query": "contains unexpected error", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lang": "es", "candidates": [{"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "¿Dónde está la función que valida que un string no contenga un substring específico en los tests?", "query": "contains unexpected error", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lang": "es", "candidates": [{"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> strings", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> os/exec", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> os", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> testing", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> regexp", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "¿Dónde está la función que valida que un string no contenga un substring específico en los tests?", "query": "contains unexpected error", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lang": "es", "candidates": [{"text": "Next: read command_test.go lines=114-137\nread child1CmdArgs for detail", "file": "command_test.go", "symbol": "child1CmdArgs", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=56-79\nread runShellCheck for detail", "file": "bash_completions_test.go", "symbol": "runShellCheck", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=85-108\nread AddTemplateFunc for detail", "file": "cobra.go", "symbol": "AddTemplateFunc", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=115-138\nread right for detail", "file": "cobra.go", "symbol": "right", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=583-606\nread TestChildFlagWithParentLocalFlag for detail", "file": "command_test.go", "symbol": "TestChildFlagWithParentLocalFlag", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=34-57\nread clean for detail", "file": "Makefile", "symbol": "clean", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2381-2404\nread TestCompleteHelp for detail", "file": "completions_test.go", "symbol": "TestCompleteHelp", "line": 2381, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=500-523\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 500, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=45-68\nread Group for detail", "file": "command.go", "symbol": "Group", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2899-2922\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2899, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=47-70\nread GetActiveHelpConfig for detail", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=313-336\nread genPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletion", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=200-223\nread string for detail", "file": "completions.go", "symbol": "string", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=78-101\nread bashCompletionFunc for detail", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2902-2925\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2902, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=998-1021\nread configEnvVarSuffixDescriptions for detail", "file": "completions.go", "symbol": "configEnvVarSuffixDescriptions", "line": 998, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=101-124\nread compCmdNoDescFlagName for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagName", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=94-117\nread GenManHeader for detail", "file": "doc/man_docs.go", "symbol": "GenManHeader", "line": 94, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "trouve la variable qui gère l'activation du tri des commandes par défaut", "query": "command sorting", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lang": "fr", "candidates": [{"text": "File: powershell_completions.go\nLine 123: __%[1]s_debug \"Calling $RequestComp\"", "file": "powershell_completions.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 171: c.MarkFlagsOneRequired(strings.Split(flagGroup, \" \")...)", "file": "flag_groups_test.go", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 96: Section string", "file": "doc/man_docs.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 67: rootCmd.DisableAutoGenTag = true", "file": "doc/rest_docs_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1334: if EnableCommandSorting && !c.commandsAreSorted {", "file": "command.go", "symbol": "", "line": 1334, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nLine 2721: }", "file": "command_test.go", "symbol": "", "line": 2721, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 134: for _, name := range flagnames {", "file": "flag_groups.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 13: // limitations under the License.", "file": "command_win.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 137: final, err := yaml.Marshal(&yamlDoc)", "file": "doc/yaml_docs.go", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 90: // GenManHeader is a lot like the .TH header at the start of man pages. These", "file": "doc/man_docs.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 5: // You may obtain a copy of the License at", "file": "powershell_completions_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 59: var EnableCommandSorting = defaultCommandSorting", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nLine 1914: EnableCommandSorting = true", "file": "command_test.go", "symbol": "", "line": 1914, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 39: checkStringContains(t, output, rootCmd.Short)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 32: flags.SetOutput(buf)", "file": "doc/rest_docs.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 120: // descendants in the directory given. The header may be nil.", "file": "doc/md_docs.go", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 109: t.Run(tt.name, func(t *testing.T) {", "file": "cobra_test.go", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 149: return comps, ShellCompDirectiveDefault", "file": "active_help_test.go", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 66: if len(cmd.Long) > 0 {", "file": "doc/md_docs.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1017: }", "file": "command.go", "symbol": "", "line": 1017, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 173: if err := GenManTree(c, header, tmpdir); err != nil {", "file": "doc/man_docs_test.go", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 85: {", "file": "cobra_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 107: assertNoErr(t, rootCmd.MarkFlagCustom(\"custom\", \"__complete_custom\"))", "file": "bash_completions_test.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "trouve la variable qui gère l'activation du tri des commandes par défaut", "query": "command sorting", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lang": "fr", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "trouve la variable qui gère l'activation du tri des commandes par défaut", "query": "command sorting", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lang": "fr", "candidates": [{"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "trouve la variable qui gère l'activation du tri des commandes par défaut", "query": "command sorting", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lang": "fr", "candidates": [{"text": "Next: read doc/rest_docs_test.go lines=43-66\nread TestGenRSTNoHiddenParents for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoHiddenParents", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1357-1380\nread TestValidArgsFuncSingleCmdInvalidArg for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=326-349\nread finalArgs for detail", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=493-516\nread TestFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGo", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=605-628\nread HelpTemplate for detail", "file": "command.go", "symbol": "HelpTemplate", "line": 605, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=123-146\nread TestNoArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=750-773\nread isFlagArg for detail", "file": "command.go", "symbol": "isFlagArg", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=146-169\nread TestRootExecuteUnknownCommand for detail", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=464-487\nread getUsageTemplateFunc for detail", "file": "command.go", "symbol": "getUsageTemplateFunc", "line": 464, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=266-289\nread TestConfigActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestConfigActiveHelp", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=59-82\nread EnableCommandSorting for detail", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra_test.go lines=254-277\nread progname for detail", "file": "cobra_test.go", "symbol": "progname", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=449-472\nread TestChildTakesNoArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesNoArgs", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=31-54\nread MarkPersistentFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "查找验证禁用标志解析后自动补全功能的测试用例", "query": "disable flag parsing completion", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lang": "zh", "candidates": [{"text": "File: active_help.go\nLine 50: activeHelpCfg = os.Getenv(activeHelpEnvVar(cmd.Root().Name()))", "file": "active_help.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 131: list: []string{\"orange\", \"banana\", \"apple\", \"grape\"},", "file": "cobra_test.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 34: flags.SetOutput(buf)", "file": "doc/md_docs.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 105: func GenMan(cmd *cobra.Command, header *GenManHeader, w io.Writer) error {", "file": "doc/man_docs.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 167: // NoDuplicateArgs", "file": "args_test.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 6: github.com/cpuguy83/go-md2man/v2 v2.0.6", "file": "go.mod", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_win.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 23: func TestBashCompletionV2WithActiveHelp(t *testing.T) {", "file": "bash_completionsV2_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 27: }}", "file": "flag_groups_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 45: Use: \"child\",", "file": "fish_completions_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 48: Use: \"root\",", "file": "doc/cmd_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 5: // You may obtain a copy of the License at", "file": "zsh_completions_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 18: \"bytes\"", "file": "powershell_completions_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 36: // prioritize the named flag when performing completion,", "file": "shell_completions.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 165: if [[ -n $subdir ]]; then", "file": "bash_completionsV2.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 317: }", "file": "active_help_test.go", "symbol": "", "line": 317, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 671: },", "file": "command_test.go", "symbol": "", "line": 671, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 413: func TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 24: )", "file": "fish_completions_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 89: # we cannot use $WordToComplete because it", "file": "powershell_completions.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2787: func TestCompleteWithDisableFlagParsing(t *testing.T) {", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions.go\nLine 117: __%[1]s_debug \"\\n========= starting completion logic ==========\"", "file": "zsh_completions.go", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 124: expectErr: `if any flags in the group [f g] are set none of the others can be; [f g] were all set`,", "file": "flag_groups_test.go", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "查找验证禁用标志解析后自动补全功能的测试用例", "query": "disable flag parsing completion", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lang": "zh", "candidates": [{"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "查找验证禁用标志解析后自动补全功能的测试用例", "query": "disable flag parsing completion", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lang": "zh", "candidates": [{"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "查找验证禁用标志解析后自动补全功能的测试用例", "query": "disable flag parsing completion", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lang": "zh", "candidates": [{"text": "Next: read doc/md_docs.go lines=133-156\nread GenMarkdownTreeCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTreeCustom", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs_test.go lines=57-80\nread TestGenYamlTree for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlTree", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=393-416\nread OutOrStdout for detail", "file": "command.go", "symbol": "OutOrStdout", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=296-319\nread SetOut for detail", "file": "command.go", "symbol": "SetOut", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=80-103\nread TestGenRSTTree for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTTree", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups_test.go lines=22-45\nread TestValidateFlagGroups for detail", "file": "flag_groups_test.go", "symbol": "TestValidateFlagGroups", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2_test.go lines=23-46\nread TestBashCompletionV2WithActiveHelp for detail", "file": "bash_completionsV2_test.go", "symbol": "TestBashCompletionV2WithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=429-452\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 429, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=87-110\nread MinimumNArgs for detail", "file": "args.go", "symbol": "MinimumNArgs", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=407-430\nread TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 407, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2787-2810\nread TestCompleteWithDisableFlagParsing for detail", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=526-549\nread UsageString for detail", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=200-223\nread string for detail", "file": "completions.go", "symbol": "string", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "liste der verfügbaren vervollständigungen finden", "query": "completion slice", "file": "completions.go", "symbol": "completions", "line": 633, "lang": "de", "candidates": [{"text": "File: doc/cmd_test.go\nLine 22: )", "file": "doc/cmd_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 97: // Test that activeHelp can be added following other completions", "file": "active_help_test.go", "symbol": "", "line": 97, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\nLine 17: import (", "file": "doc/rest_docs.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 177: format += \"=%s\"", "file": "doc/man_docs.go", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 85: // ValidArgs is list of all valid non-flag arguments that are accepted in shell completions", "file": "command.go", "symbol": "", "line": 85, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nLine 76: defer f.Close()", "file": "doc/man_docs.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 82: # Prepare the command to request completions for the program.", "file": "powershell_completions.go", "symbol": "", "line": 82, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "zsh_completions_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 338: return c.genPowerShellCompletion(w, false)", "file": "powershell_completions.go", "symbol": "", "line": 338, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 330: // GenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 43: // limit completions for the named flag to the specified file extensions.", "file": "shell_completions.go", "symbol": "", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nLine 74: return cmd.Run()", "file": "bash_completions_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 611: }", "file": "bash_completions.go", "symbol": "", "line": 611, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 302: childCmd.Flags().String(flagname, \"\", \"A flag\")", "file": "active_help_test.go", "symbol": "", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 194: // check for filename extension flags", "file": "bash_completions_test.go", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 87: # Prepare the command to request completions for the program.", "file": "bash_completions.go", "symbol": "", "line": 87, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nLine 633: var completions []Completion", "file": "completions.go", "symbol": "completions", "line": 633, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nLine 136: continue", "file": "doc/md_docs.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 133: func GenMarkdownTreeCustom(cmd *cobra.Command, dir string, filePrepender, linkHandler func(string) string) error {", "file": "doc/md_docs.go", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 231: func TestActiveHelpForFlag(t *testing.T) {", "file": "active_help_test.go", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 161: func TestOnlyValidArgs_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 122: b.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 112: expectErr: `if any flags in the group [a e] are set they must all be set; missing [e]`,", "file": "flag_groups_test.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 115: local -a completions", "file": "zsh_completions.go", "symbol": "", "line": 115, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "liste der verfügbaren vervollständigungen finden", "query": "completion slice", "file": "completions.go", "symbol": "completions", "line": 633, "lang": "de", "candidates": [{"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "liste der verfügbaren vervollständigungen finden", "query": "completion slice", "file": "completions.go", "symbol": "completions", "line": 633, "lang": "de", "candidates": [{"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "liste der verfügbaren vervollständigungen finden", "query": "completion slice", "file": "completions.go", "symbol": "completions", "line": 633, "lang": "de", "candidates": [{"text": "Next: read zsh_completions.go lines=42-65\nread GenZshCompletionNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionNoDesc", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=175-198\nread TestNoDuplicateArgs_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithDuplicateArgs", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=633-656\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 633, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read flag_groups.go lines=144-167\nread validateRequiredFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateRequiredFlagGroups", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=412-435\nread getOut for detail", "file": "command.go", "symbol": "getOut", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1276-1299\nread TestValidArgsFuncCmdContext for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncCmdContext", "line": 1276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=401-424\nread TestRangeArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=207-230\nread TestArbitraryArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=693-716\nread GetSlice for detail", "file": "completions_test.go", "symbol": "GetSlice", "line": 693, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=99-122\nread OnInitialize for detail", "file": "cobra.go", "symbol": "OnInitialize", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=86-109\nread BenchmarkGenYamlToFile for detail", "file": "doc/yaml_docs_test.go", "symbol": "BenchmarkGenYamlToFile", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=283-306\nread TestMaximumNArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Ich habe einen Fehler in der Markdown-Dokumentationserzeugung gefunden. Die Funktion scheint zwar die langen Beschreibungen und Beispiele der Befehle zu übernehmen, aber sie berücksichtigt keine geerbten Optionen von Elternbefehlen. Konkret fehlt im generierten Output der Hinweis auf 'Options inherited from parent commands', obwohl solcher Text vorhanden sein sollte, um die Vererbung von Flags korrekt darzustellen. Bitte prüfe, warum dieser Abschnitt nicht im generierten Markdown erscheint und wie er korrekt eingebunden werden kann.", "query": "markdown inheritance docs", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lang": "de", "candidates": [{"text": "File: doc/cmd_test.go\nLine 85: Use: \"print [string to print]\",", "file": "doc/cmd_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1570: output := buf.String()", "file": "completions_test.go", "symbol": "", "line": 1570, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 73: Long: `a slightly useless command for testing.`,", "file": "doc/cmd_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 339: c.helpCommand = cmd", "file": "command.go", "symbol": "", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 548: validOnlyWithInvalidArgs(err, t)", "file": "args_test.go", "symbol": "", "line": 548, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 30: // check that active help is not being disabled", "file": "bash_completionsV2_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 57: // root command in upper case, with all non-ASCII-alphanumeric characters replaced by `_`.", "file": "active_help.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 29: buf := new(bytes.Buffer)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 231: func TestActiveHelpForFlag(t *testing.T) {", "file": "active_help_test.go", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 22: const (", "file": "active_help.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 32: checkOmit(t, output, fmt.Sprintf(\"%s=0\", activeHelpVar))", "file": "bash_completionsV2_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 156: while IFS='\\n' read -r line; do", "file": "zsh_completions.go", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 127: if epoch := os.Getenv(\"SOURCE_DATE_EPOCH\"); epoch != \"\" {", "file": "doc/man_docs.go", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2123: _, err := executeCommand(rootCmd, \"--help\")", "file": "command_test.go", "symbol": "", "line": 2123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 28: output := buf.String()", "file": "powershell_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1977: if c.Runnable() {", "file": "command.go", "symbol": "", "line": 1977, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "zsh_completions_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 26: func hasSeeAlso(cmd *cobra.Command) bool {", "file": "doc/util.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 30: // and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 190: if test $filefilter -eq 1; or test $dirfilter -eq 1", "file": "fish_completions.go", "symbol": "", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 92: Short: \"Performs a dummy action\",", "file": "doc/cmd_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 233: mutuallyExclusiveGroupStatus := map[string]map[string]bool{}", "file": "flag_groups.go", "symbol": "", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 26: func TestGenMdDoc(t *testing.T) {", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions_test.go\nLine 19: \"fmt\"", "file": "powershell_completions_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Ich habe einen Fehler in der Markdown-Dokumentationserzeugung gefunden. Die Funktion scheint zwar die langen Beschreibungen und Beispiele der Befehle zu übernehmen, aber sie berücksichtigt keine geerbten Optionen von Elternbefehlen. Konkret fehlt im generierten Output der Hinweis auf 'Options inherited from parent commands', obwohl solcher Text vorhanden sein sollte, um die Vererbung von Flags korrekt darzustellen. Bitte prüfe, warum dieser Abschnitt nicht im generierten Markdown erscheint und wie er korrekt eingebunden werden kann.", "query": "markdown inheritance docs", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lang": "de", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\ndefines TestGenMdDoc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nelsewhere in the tree", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Ich habe einen Fehler in der Markdown-Dokumentationserzeugung gefunden. Die Funktion scheint zwar die langen Beschreibungen und Beispiele der Befehle zu übernehmen, aber sie berücksichtigt keine geerbten Optionen von Elternbefehlen. Konkret fehlt im generierten Output der Hinweis auf 'Options inherited from parent commands', obwohl solcher Text vorhanden sein sollte, um die Vererbung von Flags korrekt darzustellen. Bitte prüfe, warum dieser Abschnitt nicht im generierten Markdown erscheint und wie er korrekt eingebunden werden kann.", "query": "markdown inheritance docs", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lang": "de", "candidates": [{"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> github.com/spf13/cobra", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> testing", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> path/filepath", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Ich habe einen Fehler in der Markdown-Dokumentationserzeugung gefunden. Die Funktion scheint zwar die langen Beschreibungen und Beispiele der Befehle zu übernehmen, aber sie berücksichtigt keine geerbten Optionen von Elternbefehlen. Konkret fehlt im generierten Output der Hinweis auf 'Options inherited from parent commands', obwohl solcher Text vorhanden sein sollte, um die Vererbung von Flags korrekt darzustellen. Bitte prüfe, warum dieser Abschnitt nicht im generierten Markdown erscheint und wie er korrekt eingebunden werden kann.", "query": "markdown inheritance docs", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lang": "de", "candidates": [{"text": "Next: read command.go lines=338-361\nread SetHelpCommand for detail", "file": "command.go", "symbol": "SetHelpCommand", "line": 338, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=22-45\nread test for detail", "file": "Makefile", "symbol": "test", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=403-426\nread ErrOrStderr for detail", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=169-192\nread TestMultiActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestMultiActiveHelp", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=367-390\nread SetVersionTemplate for detail", "file": "command.go", "symbol": "SetVersionTemplate", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=26-49\nread TestGenMdDoc for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/md_docs_test.go lines=111-134\nread BenchmarkGenMarkdownToFile for detail", "file": "doc/md_docs_test.go", "symbol": "BenchmarkGenMarkdownToFile", "line": 111, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=81-104\nread TestGenMdNoTag for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoTag", "line": 81, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=281-304\nread SetArgs for detail", "file": "command.go", "symbol": "SetArgs", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2079-2102\nread TestFlagCompletionForPersistentFlagsCalledFromSubCmd for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionForPersistentFlagsCalledFromSubCmd", "line": 2079, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=58-81\nread TestGenMdNoHiddenParents for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read powershell_completions.go lines=342-365\nread GenPowerShellCompletionFileWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFileWithDesc", "line": 342, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=233-256\nread TestMinimumNArgs_WithValid__WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=113-136\nread TestChildCommand for detail", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=493-516\nread TestFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGo", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=94-117\nread TestGenMdTree for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdTree", "line": 94, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=44-67\nread TestGenMdDocWithNoLongOrSynopsis for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDocWithNoLongOrSynopsis", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=57-80\nread GenReST for detail", "file": "doc/rest_docs.go", "symbol": "GenReST", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=289-312\nread SetOutput for detail", "file": "command.go", "symbol": "SetOutput", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2926-2949\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2926, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=77-100\nread maximumNArgsWithMoreArgs for detail", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "新しいシグネチャとの整合性を確認している補完用の関数はどこ?", "query": "completion signature test", "file": "completions_test.go", "symbol": "_", "line": 2916, "lang": "ja", "candidates": [{"text": "File: active_help.go\nLine 44: // case, with all non-ASCII-alphanumeric characters replaced by `_`.", "file": "active_help.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 144: }", "file": "args.go", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 70: if _, err := os.Stat(filepath.Join(tmpdir, \"do.yaml\")); err != nil {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 70, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nLine 309: }", "file": "active_help_test.go", "symbol": "", "line": 309, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 263: \"os\"", "file": "cobra_test.go", "symbol": "", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2916: var _ CompletionFunc = userComp //nolint:staticcheck // LHS type is needed for this use case", "file": "completions_test.go", "symbol": "_", "line": 2916, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nLine 89: link = strings.ReplaceAll(link, \" \", \"_\")", "file": "doc/md_docs.go", "symbol": "", "line": 89, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nLine 49: // default for every argument. One can disable file completion on a per-argument", "file": "zsh_completions.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 464: ShellCompDirectiveError, ShellCompDirectiveNoSpace, ShellCompDirectiveNoFileComp,", "file": "bash_completionsV2.go", "symbol": "", "line": 464, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 265: // as required", "file": "flag_groups.go", "symbol": "", "line": 265, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 56: for _, v := range cmd.ValidArgs {", "file": "args.go", "symbol": "", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nLine 33: _, output, err = executeCommandC(root, args...)", "file": "command_test.go", "symbol": "", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nLine 246: for _, fName := range strings.Split(flagList, \" \") {", "file": "flag_groups.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 53: return fmt.Sprintf(\"`%s <%s.rst>`_\", name, ref)", "file": "doc/rest_docs.go", "symbol": "", "line": 53, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nLine 330: // GenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 330, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 6: //", "file": "doc/md_docs_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_notwin.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 128: f, _ := os.OpenFile(filepath.Join(tmpDir, \"test\"), os.O_CREATE, 0400)", "file": "fish_completions_test.go", "symbol": "", "line": 128, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nLine 182: sort.Strings(set)", "file": "flag_groups.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1608: if len(c.Deprecated) != 0 || c.Hidden {", "file": "command.go", "symbol": "", "line": 1608, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 236: // linker will not always be able to prove that exported methods are", "file": "cobra_test.go", "symbol": "", "line": 236, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 247: done", "file": "zsh_completions.go", "symbol": "", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 108: yamlDoc.Example = cmd.Example", "file": "doc/yaml_docs.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "新しいシグネチャとの整合性を確認している補完用の関数はどこ?", "query": "completion signature test", "file": "completions_test.go", "symbol": "_", "line": 2916, "lang": "ja", "candidates": [{"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "新しいシグネチャとの整合性を確認している補完用の関数はどこ?", "query": "completion signature test", "file": "completions_test.go", "symbol": "_", "line": 2916, "lang": "ja", "candidates": [{"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "新しいシグネチャとの整合性を確認している補完用の関数はどこ?", "query": "completion signature test", "file": "completions_test.go", "symbol": "_", "line": 2916, "lang": "ja", "candidates": [{"text": "Next: read args_test.go lines=313-336\nread TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=429-452\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 429, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=101-124\nread TestGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=97-120\nread MaximumNArgs for detail", "file": "args.go", "symbol": "MaximumNArgs", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=93-116\nread GenYamlCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlCustom", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=42-65\nread GenZshCompletionNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionNoDesc", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=276-299\nread GenFishCompletion for detail", "file": "fish_completions.go", "symbol": "GenFishCompletion", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=604-627\nread TestFlagInvalidInput for detail", "file": "command_test.go", "symbol": "TestFlagInvalidInput", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=536-559\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=337-360\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=465-488\nread TestGrandChildSameName for detail", "file": "command_test.go", "symbol": "TestGrandChildSameName", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=339-362\nread TestExactArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2916-2939\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2916, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=716-739\nread TestDisableFlagParsing for detail", "file": "command_test.go", "symbol": "TestDisableFlagParsing", "line": 716, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=192-215\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "コマンドテスト用の引数スライスを定義して", "query": "test args slice", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lang": "ja", "candidates": [{"text": "File: doc/man_docs_test.go\nLine 154: buf := new(bytes.Buffer)", "file": "doc/man_docs_test.go", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/man_examples_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 2: //", "file": "cobra_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 28: \"time\"", "file": "cobra.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 435: // Note that we want to perform flagname completion even if finalCmd.DisableFlagParsing==true;", "file": "completions.go", "symbol": "", "line": 435, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 220: # able to check what the actual completion will be.", "file": "fish_completions.go", "symbol": "", "line": 220, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1177: }", "file": "command.go", "symbol": "", "line": 1177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 96: }", "file": "bash_completionsV2.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 466: var fooCmdArgs []string", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions_test.go\nLine 30: // check that active help is being disabled", "file": "powershell_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 76: }", "file": "args.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 6: //", "file": "doc/util.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 542: }", "file": "command.go", "symbol": "", "line": 542, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 2: //", "file": "doc/yaml_docs.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 31: $(info ******************** downloading dependencies ********************)", "file": "Makefile", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 119: b.ResetTimer()", "file": "doc/md_docs_test.go", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 148: continue", "file": "doc/rest_docs.go", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "cobra.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 17: import (", "file": "bash_completionsV2_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 272: checkOmit(t, output, `local_nonpersistent_flags+=(\"--string-flag\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 25: activeHelpMessage = \"This is an activeHelp message\"", "file": "active_help_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 89: ignoreCase: false,", "file": "cobra_test.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 12: // See the License for the specific language governing permissions and", "file": "doc/rest_docs.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 23: \"sort\"", "file": "doc/md_docs.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "コマンドテスト用の引数スライスを定義して", "query": "test args slice", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lang": "ja", "candidates": [{"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "コマンドテスト用の引数スライスを定義して", "query": "test args slice", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lang": "ja", "candidates": [{"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "コマンドテスト用の引数スライスを定義して", "query": "test args slice", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lang": "ja", "candidates": [{"text": "Next: read completions_test.go lines=2929-2952\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2929, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=143-166\nread manPreamble for detail", "file": "doc/man_docs.go", "symbol": "manPreamble", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=26-49\nread activeHelpEnvVarSuffix for detail", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=696-719\nread nonCompletableFlag for detail", "file": "bash_completions.go", "symbol": "nonCompletableFlag", "line": 696, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=345-368\nread TestExactArgs_WithInvalidCount for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=352-375\nread SetCompletionCommandGroupID for detail", "file": "command.go", "symbol": "SetCompletionCommandGroupID", "line": 352, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=444-467\nread UsageFunc for detail", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2902-2925\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2902, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=151-174\nread NoFileCompletions for detail", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=181-204\nread TestNoDuplicateArgs_WithValid_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=93-116\nread GenYamlCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlCustom", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=358-381\nread SetHelpTemplate for detail", "file": "command.go", "symbol": "SetHelpTemplate", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=129-152\nread TestNoArgs_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithArgs", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=114-137\nread Gt for detail", "file": "cobra.go", "symbol": "Gt", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=466-489\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "I'm trying to figure out how the different command groupings are organized. Can you show me where the list of available command categories is defined?", "query": "command group strings", "file": "flag_groups.go", "symbol": "set", "line": 171, "lang": "en", "candidates": [{"text": "File: powershell_completions_test.go\nLine 20: \"testing\"", "file": "powershell_completions_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 445: t.Errorf(\"Unexpected error: %v\", err)", "file": "args_test.go", "symbol": "", "line": 445, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 87: file, err := os.CreateTemp(\"\", \"\")", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 61: // { } delimits a set of mutually exclusive arguments when one of the arguments is required. If the arguments are", "file": "command.go", "symbol": "", "line": 61, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nLine 46: // is set to \"0\".", "file": "active_help.go", "symbol": "", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nLine 171: var set []string", "file": "flag_groups.go", "symbol": "set", "line": 171, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nLine 65: return err", "file": "bash_completions_test.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 5: // You may obtain a copy of the License at", "file": "command_notwin.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 861: expected := fmt.Sprintf(\"required flag(s) %q, %q not set\", \"foo1\", \"foo2\")", "file": "command_test.go", "symbol": "", "line": 861, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nLine 58: // To disable sorting, set it to false.", "file": "cobra.go", "symbol": "", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nLine 66: expectErr: \"if any flags in the group [a b c] are set they must all be set; missing [b c]\",", "file": "flag_groups_test.go", "symbol": "", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nLine 427: t.Errorf(\"Unexpected error: %v\", err)", "file": "command_test.go", "symbol": "", "line": 427, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 39: check(t, output, ShellCompNoDescRequestCmd)", "file": "fish_completions_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 384: Use: \"thechild\",", "file": "completions_test.go", "symbol": "", "line": 384, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "cobra.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 44: return fmt.Errorf(\"unknown command %q for %q\", args[0], cmd.CommandPath())", "file": "args.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 136: else", "file": "bash_completionsV2.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 154: a: \"\",", "file": "cobra_test.go", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 15: //go:build !windows", "file": "command_notwin.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 105: }", "file": "fish_completions_test.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 241: for filter in ${completions[@]}; do", "file": "zsh_completions.go", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 69: }", "file": "doc/man_docs.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 212: // Test that sub-command names are completed if a local non-persistent flag is present and TraverseChildren is set to true", "file": "completions_test.go", "symbol": "", "line": 212, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "bash_completionsV2_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "I'm trying to figure out how the different command groupings are organized. Can you show me where the list of available command categories is defined?", "query": "command group strings", "file": "flag_groups.go", "symbol": "set", "line": 171, "lang": "en", "candidates": [{"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "I'm trying to figure out how the different command groupings are organized. Can you show me where the list of available command categories is defined?", "query": "command group strings", "file": "flag_groups.go", "symbol": "set", "line": 171, "lang": "en", "candidates": [{"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> github.com/spf13/pflag", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> strings", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "I'm trying to figure out how the different command groupings are organized. Can you show me where the list of available command categories is defined?", "query": "command group strings", "file": "flag_groups.go", "symbol": "set", "line": 171, "lang": "en", "candidates": [{"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=773-796\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 773, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=403-426\nread ErrOrStderr for detail", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=372-395\nread TestPlugin for detail", "file": "command_test.go", "symbol": "TestPlugin", "line": 372, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2187-2210\nread TestFlagCompletionInGoWithDesc for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGoWithDesc", "line": 2187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=70-93\nread resetCommandLineFlagSet for detail", "file": "command_test.go", "symbol": "resetCommandLineFlagSet", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=157-180\nread TestNoCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=748-771\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 748, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=580-603\nread minNamePadding for detail", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=187-210\nread TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=31-54\nread genBashComp for detail", "file": "bash_completionsV2.go", "symbol": "genBashComp", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=171-194\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 171, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=980-1003\nread CompDebugln for detail", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=342-365\nread GenPowerShellCompletionFileWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFileWithDesc", "line": 342, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=316-339\nread getCompletions for detail", "file": "completions.go", "symbol": "getCompletions", "line": 316, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=334-357\nread TestAliasPrefixMatching for detail", "file": "command_test.go", "symbol": "TestAliasPrefixMatching", "line": 334, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "실행 가능한 명령어에 무효한 인자를 전달했을 때 오류가 올바르게 처리되는지 확인하는 테스트 케이스를 찾고 싶습니다. NoArgs 검증 로직에 대한 단위 테스트가 어디에 있는지 알 수 있을까요?", "query": "NoArgs validation test", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lang": "ko", "candidates": [{"text": "File: bash_completionsV2_test.go\nLine 17: import (", "file": "bash_completionsV2_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 128: f, _ := os.OpenFile(filepath.Join(tmpDir, \"test\"), os.O_CREATE, 0400)", "file": "fish_completions_test.go", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 90: expected: 0,", "file": "cobra_test.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 205: # To find out, we actually trigger the file completion ourselves;", "file": "bash_completionsV2.go", "symbol": "", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 168: if err != nil {", "file": "doc/man_docs_test.go", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 346: must_have_one_noun=()", "file": "bash_completions.go", "symbol": "", "line": 346, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 196: expected: \"Hello \",", "file": "cobra_test.go", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 145: keys := sortedKeys(data)", "file": "flag_groups.go", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 431: COMPREPLY=()", "file": "bash_completionsV2.go", "symbol": "", "line": 431, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 47: cobra.CheckErr(doc.GenMan(cmd, header, out))", "file": "doc/man_examples_test.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 135: func TestNoArgs_WithValid_WithArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Makefile\nLine 28: richgo test -v $(GO_TEST_FLAGS) ./...", "file": "Makefile", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 52: output := buf.String()", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 192: if output != expected {", "file": "completions_test.go", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 21: )", "file": "doc/util.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "bash_completionsV2_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 32: return MarkFlagRequired(c.PersistentFlags(), name)", "file": "shell_completions.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/util.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 39: Use: \"test\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 8: //", "file": "powershell_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3958: hasChildCmd: false,", "file": "completions_test.go", "symbol": "", "line": 3958, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "실행 가능한 명령어에 무효한 인자를 전달했을 때 오류가 올바르게 처리되는지 확인하는 테스트 케이스를 찾고 싶습니다. NoArgs 검증 로직에 대한 단위 테스트가 어디에 있는지 알 수 있을까요?", "query": "NoArgs validation test", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lang": "ko", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestNoArgs_WithValid_WithArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "실행 가능한 명령어에 무효한 인자를 전달했을 때 오류가 올바르게 처리되는지 확인하는 테스트 케이스를 찾고 싶습니다. NoArgs 검증 로직에 대한 단위 테스트가 어디에 있는지 알 수 있을까요?", "query": "NoArgs validation test", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "실행 가능한 명령어에 무효한 인자를 전달했을 때 오류가 올바르게 처리되는지 확인하는 테스트 케이스를 찾고 싶습니다. NoArgs 검증 로직에 대한 단위 테스트가 어디에 있는지 알 수 있을까요?", "query": "NoArgs validation test", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lang": "ko", "candidates": [{"text": "Next: read args_test.go lines=135-158\nread TestNoArgs_WithValid_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read Makefile lines=34-57\nread clean for detail", "file": "Makefile", "symbol": "clean", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=94-117\nread GenManHeader for detail", "file": "doc/man_docs.go", "symbol": "GenManHeader", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=245-268\nread TestDeadcodeElimination for detail", "file": "cobra_test.go", "symbol": "TestDeadcodeElimination", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=44-67\nread TestGenMdDocWithNoLongOrSynopsis for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDocWithNoLongOrSynopsis", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=305-328\nread TestEnablePrefixMatching for detail", "file": "command_test.go", "symbol": "TestEnablePrefixMatching", "line": 305, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=232-255\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=631-654\nread getVersionTemplateFunc for detail", "file": "command.go", "symbol": "getVersionTemplateFunc", "line": 631, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=758-781\nread innerfind for detail", "file": "command.go", "symbol": "innerfind", "line": 758, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=57-80\nread GenMarkdownCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownCustom", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=657-680\nread checkIfFlagCompletion for detail", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1560-1583\nread TestNoValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestNoValidArgsFuncInBashScript", "line": 1560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=683-706\nread GenBashCompletion for detail", "file": "bash_completions.go", "symbol": "GenBashCompletion", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "要素の位置を交換するスワップ処理を書いてください。", "query": "slice swap", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lang": "ja", "candidates": [{"text": "File: doc/yaml_docs.go\nLine 115: flags = cmd.InheritedFlags()", "file": "doc/yaml_docs.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 8: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 80: // Works only on Microsoft Windows.", "file": "cobra.go", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 162: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 133: }", "file": "args.go", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 35: // This function can be called multiple times before and/or after completions are added to", "file": "active_help.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 25: return MarkFlagRequired(c.Flags(), name)", "file": "shell_completions.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 80: buf.WriteString(\"Synopsis\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 144: noArgsWithArgs(err, t, \"a\")", "file": "args_test.go", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 86: printf \"%%s%%s\\n\" \"$flagPrefix\" \"$comp\"", "file": "fish_completions.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 51: func (s byName) Swap(i, j int) { s[i], s[j] = s[j], s[i] }", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions.go\nLine 102: fi", "file": "bash_completions.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 171: format += \"[\"", "file": "doc/man_docs.go", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 280: expectSuccess(output, err, t)", "file": "args_test.go", "symbol": "", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 136: }", "file": "fish_completions_test.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 200: }", "file": "doc/man_docs.go", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 143: return MatchAll(ExactArgs(n), OnlyValidArgs)", "file": "args.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1328: func (c commandSorterByName) Swap(i, j int) { c[i], c[j] = c[j], c[i] }", "file": "command.go", "symbol": "", "line": 1328, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nLine 12: // See the License for the specific language governing permissions and", "file": "shell_completions.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 171: Use: \"root\",", "file": "active_help_test.go", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 77: },", "file": "cobra_test.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 13: // limitations under the License.", "file": "zsh_completions.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 256: isSet := false", "file": "flag_groups.go", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 2: //", "file": "powershell_completions_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "要素の位置を交換するスワップ処理を書いてください。", "query": "slice swap", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lang": "ja", "candidates": [{"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nelsewhere in the tree", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "要素の位置を交換するスワップ処理を書いてください。", "query": "slice swap", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lang": "ja", "candidates": [{"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "要素の位置を交換するスワップ処理を書いてください。", "query": "slice swap", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lang": "ja", "candidates": [{"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=111-134\nread BenchmarkGenMarkdownToFile for detail", "file": "doc/md_docs_test.go", "symbol": "BenchmarkGenMarkdownToFile", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=318-341\nread SetUsageTemplate for detail", "file": "command.go", "symbol": "SetUsageTemplate", "line": 318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=367-390\nread SetVersionTemplate for detail", "file": "command.go", "symbol": "SetVersionTemplate", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read powershell_completions.go lines=348-371\nread GenPowerShellCompletionWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionWithDesc", "line": 348, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=664-687\nread flagName for detail", "file": "completions.go", "symbol": "flagName", "line": 664, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=44-67\nread TestGenYamlNoTag for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlNoTag", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=48-71\nread byName for detail", "file": "doc/util.go", "symbol": "byName", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=50-73\nread Len for detail", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=748-771\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 748, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=160-183\nread FixedCompletions for detail", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=484-507\nread HelpFunc for detail", "file": "command.go", "symbol": "HelpFunc", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=85-108\nread AddTemplateFunc for detail", "file": "cobra.go", "symbol": "AddTemplateFunc", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=192-215\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=54-77\nread Command for detail", "file": "command.go", "symbol": "Command", "line": 54, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "I'm trying to figure out how to access the lifecycle management object attached to this instruction runner. Can you show me how to retrieve the current execution environment that was passed in during the setup phase?", "query": "get command context", "file": "command.go", "symbol": "Context", "line": 269, "lang": "en", "candidates": [{"text": "File: args.go\nLine 27: // - subcommands will always accept arbitrary arguments", "file": "args.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 34: clean:", "file": "Makefile", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 20: \"testing\"", "file": "zsh_completions_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 70: Use: \"times [# times] [string to echo]\",", "file": "doc/cmd_test.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 311: # First, escape the completions to handle special characters", "file": "bash_completionsV2.go", "symbol": "", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1930: }", "file": "command_test.go", "symbol": "", "line": 1930, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 57: checkStringContains(t, output, expected)", "file": "doc/man_docs_test.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 40: Header: header,", "file": "doc/man_docs.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 62: checkStringContains(t, output, \"rootflag\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 311: })", "file": "active_help_test.go", "symbol": "", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 18: \"github.com/spf13/pflag\"", "file": "shell_completions.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 198: # we sort the values in ascending order by name if keep order isn't passed", "file": "powershell_completions.go", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1278: ctx := cmd.Context()", "file": "completions_test.go", "symbol": "", "line": 1278, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_notwin.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 243: end", "file": "fish_completions.go", "symbol": "", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 269: func (c *Command) Context() context.Context {", "file": "command.go", "symbol": "Context", "line": 269, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nLine 273: checkOmit(t, output, `local_nonpersistent_flags+=(\"--string-flag=\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 37: func executeCommandWithContext(ctx context.Context, root *Command, args ...string) (output string, err error) {", "file": "command_test.go", "symbol": "", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nLine 104: }", "file": "flag_groups.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 194: hasActiveHelp=1", "file": "zsh_completions.go", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 90: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "I'm trying to figure out how to access the lifecycle management object attached to this instruction runner. Can you show me how to retrieve the current execution environment that was passed in during the setup phase?", "query": "get command context", "file": "command.go", "symbol": "Context", "line": 269, "lang": "en", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "I'm trying to figure out how to access the lifecycle management object attached to this instruction runner. Can you show me how to retrieve the current execution environment that was passed in during the setup phase?", "query": "get command context", "file": "command.go", "symbol": "Context", "line": 269, "lang": "en", "candidates": [{"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "I'm trying to figure out how to access the lifecycle management object attached to this instruction runner. Can you show me how to retrieve the current execution environment that was passed in during the setup phase?", "query": "get command context", "file": "command.go", "symbol": "Context", "line": 269, "lang": "en", "candidates": [{"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=339-362\nread TestExactArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read powershell_completions.go lines=348-371\nread GenPowerShellCompletionWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionWithDesc", "line": 348, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=80-103\nread genZshCompletion for detail", "file": "zsh_completions.go", "symbol": "genZshCompletion", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=192-215\nread ld for detail", "file": "cobra.go", "symbol": "ld", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=87-110\nread genZshComp for detail", "file": "zsh_completions.go", "symbol": "genZshComp", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=269-292\nread Context for detail", "file": "command.go", "symbol": "Context", "line": 269, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=169-192\nread TestNoDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=342-365\nread GenPowerShellCompletionFileWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFileWithDesc", "line": 342, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=80-103\nread TestGenRSTTree for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTTree", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=394-417\nread TestPluginWithSubCommands for detail", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=955-978\nread CompDebug for detail", "file": "completions.go", "symbol": "CompDebug", "line": 955, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=716-739\nread TestDisableFlagParsing for detail", "file": "command_test.go", "symbol": "TestDisableFlagParsing", "line": 716, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=221-244\nread TestMinimumNArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=383-406\nread TestRangeArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Wie funktioniert die Logik, die Kompletionsvorschläge basierend auf den Argumenten und dem aktuellen Eingabestring generiert?", "query": "shell completion logic", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lang": "de", "candidates": [{"text": "File: doc/rest_docs_test.go\nLine 60: checkStringContains(t, output, rootCmd.Short)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 292: validOnlyWithInvalidArgs(err, t)", "file": "args_test.go", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "cobra.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 22: \"path/filepath\"", "file": "doc/man_docs_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 21: )", "file": "bash_completionsV2_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 27: func validArgsFunc(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) {", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nLine 51: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 116: }", "file": "flag_groups.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 82: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 168: if err != nil {", "file": "doc/man_docs_test.go", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1155: }", "file": "command.go", "symbol": "", "line": 1155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 17: import (", "file": "bash_completionsV2_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 24: )", "file": "doc/rest_docs_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 30: rootCmd := &Command{", "file": "active_help_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 40: }", "file": "fish_completions_test.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 328: }", "file": "powershell_completions.go", "symbol": "", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 163: # Remove the directive including the : and the newline", "file": "zsh_completions.go", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 16: @test -z $(shell gofmt -l $(SRC)) || (gofmt -d $(SRC); exit 1)", "file": "Makefile", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 30: ValidArgsFunction: validArgsFunc,", "file": "fish_completions_test.go", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "args.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 94: // Filename.", "file": "bash_completions_test.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 39: printCmd.PersistentFlags().StringP(\"strthree\", \"s\", \"three\", \"help message for flag strthree\")", "file": "doc/cmd_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Wie funktioniert die Logik, die Kompletionsvorschläge basierend auf den Argumenten und dem aktuellen Eingabestring generiert?", "query": "shell completion logic", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lang": "de", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Wie funktioniert die Logik, die Kompletionsvorschläge basierend auf den Argumenten und dem aktuellen Eingabestring generiert?", "query": "shell completion logic", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lang": "de", "candidates": [{"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Wie funktioniert die Logik, die Kompletionsvorschläge basierend auf den Argumenten und dem aktuellen Eingabestring generiert?", "query": "shell completion logic", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lang": "de", "candidates": [{"text": "Next: read completions.go lines=1018-1041\nread getEnvConfig for detail", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=327-350\nread err for detail", "file": "completions.go", "symbol": "err", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=389-412\nread TestRangeArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=412-435\nread getOut for detail", "file": "command.go", "symbol": "getOut", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=27-50\nread assertNoErr for detail", "file": "cobra_test.go", "symbol": "assertNoErr", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=316-339\nread getCompletions for detail", "file": "completions.go", "symbol": "getCompletions", "line": 316, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=157-180\nread TestNoCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=459-482\nread writeFlagHandler for detail", "file": "bash_completions.go", "symbol": "writeFlagHandler", "line": 459, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=466-489\nread TestChildTakesArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=90-113\nread MarkPersistentFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagDirname", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=741-764\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 741, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=169-192\nread TestMultiActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestMultiActiveHelp", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=83-106\nread TestBashCompletions for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletions", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=438-461\nread TestRootTakesArgs for detail", "file": "args_test.go", "symbol": "TestRootTakesArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Estoy revisando cómo se comporta el sistema cuando se pasan argumentos inválidos a un comando que solo debería aceptar valores válidos. ¿Podrías mostrarme la prueba que verifica que falle correctamente al recibir una mezcla de inputs válidos e inválidos bajo una configuración de rango específica?", "query": "test invalid args", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lang": "es", "candidates": [{"text": "File: powershell_completions.go\nLine 185: }", "file": "powershell_completions.go", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 389: func TestRangeArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\nLine 81: buf.WriteString(\"~~~~~~~~\\n\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 146: args: []string{\"subcmd\"},", "file": "flag_groups_test.go", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 30: // check that active help is not being disabled", "file": "zsh_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 84: if err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "doc/cmd_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 129: }", "file": "doc/md_docs.go", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 123: unexpected = translate(\"Auto generated by spf13/cobra\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 86: ArgAliases: []string{\"pods\", \"nodes\", \"services\", \"replicationcontrollers\", \"po\", \"no\", \"svc\", \"rc\"},", "file": "bash_completions_test.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 205: for j := 1; j <= len(t); j++ {", "file": "cobra.go", "symbol": "", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 232: oneRequiredGroupStatus := map[string]map[string]bool{}", "file": "flag_groups.go", "symbol": "", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 46: // MarkZshCompPositionalArgumentFile only worked for zsh and its behavior was", "file": "zsh_completions.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 535: // prepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 535, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 19: \"fmt\"", "file": "powershell_completions_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 37: output := buf.String()", "file": "fish_completions_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "fish_completions_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 74: func TestProgWithColon(t *testing.T) {", "file": "fish_completions_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 2: //", "file": "doc/util.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 92: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 143: }", "file": "command_test.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 85: Use: \"print [string to print]\",", "file": "doc/cmd_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 123: __%[1]s_perform_completion_once", "file": "fish_completions.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2228: got := err.Error()", "file": "command_test.go", "symbol": "", "line": 2228, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Estoy revisando cómo se comporta el sistema cuando se pasan argumentos inválidos a un comando que solo debería aceptar valores válidos. ¿Podrías mostrarme la prueba que verifica que falle correctamente al recibir una mezcla de inputs válidos e inválidos bajo una configuración de rango específica?", "query": "test invalid args", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lang": "es", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\ndefines TestRangeArgs_WithValidOnly_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Estoy revisando cómo se comporta el sistema cuando se pasan argumentos inválidos a un comando que solo debería aceptar valores válidos. ¿Podrías mostrarme la prueba que verifica que falle correctamente al recibir una mezcla de inputs válidos e inválidos bajo una configuración de rango específica?", "query": "test invalid args", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lang": "es", "candidates": [{"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Estoy revisando cómo se comporta el sistema cuando se pasan argumentos inválidos a un comando que solo debería aceptar valores válidos. ¿Podrías mostrarme la prueba que verifica que falle correctamente al recibir una mezcla de inputs válidos e inválidos bajo una configuración de rango específica?", "query": "test invalid args", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lang": "es", "candidates": [{"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=26-49\nread TestGenRSTDoc for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=43-66\nread TestGenRSTNoHiddenParents for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoHiddenParents", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=58-81\nread ShellCompDirectiveError for detail", "file": "completions.go", "symbol": "ShellCompDirectiveError", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=389-412\nread TestRangeArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=305-328\nread TestEnablePrefixMatching for detail", "file": "command_test.go", "symbol": "TestEnablePrefixMatching", "line": 305, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=465-488\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=985-1008\nread CompError for detail", "file": "completions.go", "symbol": "CompError", "line": 985, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=245-268\nread TestBashCompletionDeprecatedFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionDeprecatedFlag", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=174-197\nread res for detail", "file": "doc/rest_docs.go", "symbol": "res", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2916-2939\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2916, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "查找用于存储自定义命令提示结果的切片", "query": "custom completion slice", "file": "completions.go", "symbol": "comps", "line": 579, "lang": "zh", "candidates": [{"text": "File: fish_completions.go\nLine 33: compCmd = ShellCompNoDescRequestCmd", "file": "fish_completions.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 135: header := &GenManHeader{}", "file": "doc/man_docs_test.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 13: // limitations under the License.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 36: comps := AppendActiveHelp(nil, activeHelpMessage)", "file": "active_help_test.go", "symbol": "", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nLine 246: for _, fName := range strings.Split(flagList, \" \") {", "file": "flag_groups.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 190: cobra.WriteStringAndCheck(buf, \"# OPTIONS\\n\")", "file": "doc/man_docs.go", "symbol": "", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 243: completions+=(\"${must_have_one_flag[@]}\")", "file": "bash_completions.go", "symbol": "", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 71: if err := GenReST(rootCmd, buf); err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 219: seealsos := make([]string, 0)", "file": "doc/man_docs.go", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3974: {", "file": "completions_test.go", "symbol": "", "line": 3974, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 96: if !strings.Contains(got, expected) {", "file": "doc/cmd_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 74: set -l comps $results[1..-2]", "file": "fish_completions.go", "symbol": "", "line": 74, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nLine 34: flags.SetOutput(buf)", "file": "doc/md_docs.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 605: func (c *Command) HelpTemplate() string {", "file": "command.go", "symbol": "", "line": 605, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 41: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1563: if c.commandCalledAs.called {", "file": "command.go", "symbol": "", "line": 1563, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 60: }", "file": "active_help.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 579: var comps []Completion", "file": "completions.go", "symbol": "comps", "line": 579, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 155: list: []string{\"orange\", \"banana\", \"apple\", \"grape\"},", "file": "cobra_test.go", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 15: $(info ******************** checking formatting ********************)", "file": "Makefile", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 30: func preExecHook(c *Command) {", "file": "command_win.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 41: Path: dir,", "file": "doc/man_docs.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 28: output := buf.String()", "file": "zsh_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3674: comps []string", "file": "completions_test.go", "symbol": "", "line": 3674, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "查找用于存储自定义命令提示结果的切片", "query": "custom completion slice", "file": "completions.go", "symbol": "comps", "line": 579, "lang": "zh", "candidates": [{"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "查找用于存储自定义命令提示结果的切片", "query": "custom completion slice", "file": "completions.go", "symbol": "comps", "line": 579, "lang": "zh", "candidates": [{"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "查找用于存储自定义命令提示结果的切片", "query": "custom completion slice", "file": "completions.go", "symbol": "comps", "line": 579, "lang": "zh", "candidates": [{"text": "Next: read flag_groups.go lines=111-134\nread hasAllFlags for detail", "file": "flag_groups.go", "symbol": "hasAllFlags", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=491-514\nread TestFlagLong for detail", "file": "command_test.go", "symbol": "TestFlagLong", "line": 491, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=120-143\nread TestFailGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestFailGenFishCompletionFile", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=141-164\nread TestNoArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=579-602\nread comps for detail", "file": "completions.go", "symbol": "comps", "line": 579, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read zsh_completions.go lines=36-59\nread GenZshCompletionFileNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFileNoDesc", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=328-351\nread SetFlagErrorFunc for detail", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=693-716\nread GetSlice for detail", "file": "completions_test.go", "symbol": "GetSlice", "line": 693, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=261-284\nread TestBashCompletionTraverseChildren for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionTraverseChildren", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread left for detail", "file": "cobra.go", "symbol": "left", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=58-81\nread activeHelpEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "encontra o valor de preenchimento para o caminho do comando", "query": "command path padding", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lang": "pt", "candidates": [{"text": "File: powershell_completions.go\nLine 327: return c.genPowerShellCompletion(outFile, includeDesc)", "file": "powershell_completions.go", "symbol": "", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 123: Run: emptyRun,", "file": "bash_completions_test.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 6: //", "file": "command_notwin.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 21: \"path/filepath\"", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 85: fmt.Fprintf(buf, \"::\\n\\n %s\\n\\n\", cmd.UseLine())", "file": "doc/rest_docs.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 30: // check that active help is not being disabled", "file": "zsh_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 35: checkStringContains(t, output, echoCmd.Long)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 102: return nil", "file": "args.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 363: # Format the descriptions", "file": "bash_completionsV2.go", "symbol": "", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 189: padding int", "file": "cobra_test.go", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 35: }", "file": "doc/util.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 280: expectSuccess(output, err, t)", "file": "args_test.go", "symbol": "", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/rest_docs.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 54: output := buf.String()", "file": "doc/rest_docs_test.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 6: //", "file": "doc/man_examples_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 53: if f == nil {", "file": "flag_groups.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2926: helpText := \"Long description\"", "file": "command_test.go", "symbol": "", "line": 2926, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "bash_completionsV2_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 35: if !includeDesc {", "file": "powershell_completions.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 570: const minCommandPathPadding = 11", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2_test.go\nLine 5: // You may obtain a copy of the License at", "file": "bash_completionsV2_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 43: Title: \"MINE\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 56: // variable. It has the format _ACTIVE_HELP where is the name of the", "file": "active_help.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "encontra o valor de preenchimento para o caminho do comando", "query": "command path padding", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lang": "pt", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "encontra o valor de preenchimento para o caminho do comando", "query": "command path padding", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lang": "pt", "candidates": [{"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "encontra o valor de preenchimento para o caminho do comando", "query": "command path padding", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lang": "pt", "candidates": [{"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=50-73\nread Len for detail", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=389-412\nread TestRangeArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=289-312\nread TestMaximumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValidOnly_WithInvalidArgs", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=271-294\nread TestMaximumNArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=150-173\nread result for detail", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1318-1341\nread TestValidArgsFuncSingleCmd for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=283-306\nread TestMaximumNArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1624-1647\nread TestFlagCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGo", "line": 1624, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=121-144\nread processFlagForGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2902-2925\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2902, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=570-593\nread minCommandPathPadding for detail", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/util.go lines=48-71\nread byName for detail", "file": "doc/util.go", "symbol": "byName", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=129-152\nread TestNoArgs_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithArgs", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=87-110\nread genZshComp for detail", "file": "zsh_completions.go", "symbol": "genZshComp", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=56-79\nread runShellCheck for detail", "file": "bash_completions_test.go", "symbol": "runShellCheck", "line": 56, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "zeige die slice für die argumente des zeitbefehls", "query": "cmd args slice", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lang": "de", "candidates": [{"text": "File: doc/yaml_docs_test.go\nLine 40: checkStringContains(t, output, echoSubCmd.Short)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 170: }", "file": "doc/rest_docs.go", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1321: c.parentsPflags = nil", "file": "command.go", "symbol": "", "line": 1321, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 91: checkStringOmits(t, output, \"Auto generated\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 81: expectErr: `if any flags in the group [a b c] are set they must all be set; missing [a b]`,", "file": "flag_groups_test.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 329: for compline in \"${completions[@]}\"; do", "file": "bash_completionsV2.go", "symbol": "", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 57: // root command in upper case, with all non-ASCII-alphanumeric characters replaced by `_`.", "file": "active_help.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 260: break", "file": "flag_groups.go", "symbol": "", "line": 260, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 6: //", "file": "zsh_completions_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "bash_completionsV2_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 953: // Note that completion printouts should never be on stdout as they would", "file": "completions.go", "symbol": "", "line": 953, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 260: break", "file": "flag_groups.go", "symbol": "", "line": 260, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "powershell_completions_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 66: if err := GenYamlTree(c, tmpdir); err != nil {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 41: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 37: checkStringContains(t, output, \"rootflag\")", "file": "doc/rest_docs_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 337: var timesCmdArgs []string", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "zsh_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 164: t.Run(tc.desc, func(t *testing.T) {", "file": "flag_groups_test.go", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 143: func manPreamble(buf io.StringWriter, header *GenManHeader, cmd *cobra.Command, dashedName string) {", "file": "doc/man_docs.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 138: if err != nil {", "file": "doc/yaml_docs.go", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 2: //", "file": "fish_completions_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 112: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "zeige die slice für die argumente des zeitbefehls", "query": "cmd args slice", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lang": "de", "candidates": [{"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "zeige die slice für die argumente des zeitbefehls", "query": "cmd args slice", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lang": "de", "candidates": [{"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "zeige die slice für die argumente des zeitbefehls", "query": "cmd args slice", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lang": "de", "candidates": [{"text": "Next: read completions.go lines=985-1008\nread CompError for detail", "file": "completions.go", "symbol": "CompError", "line": 985, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1821-1844\nread TestFlagCompletionWithNotInterspersedArgs for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWithNotInterspersedArgs", "line": 1821, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=60-83\nread GenYamlTreeCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTreeCustom", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=932-955\nread findFlag for detail", "file": "completions.go", "symbol": "findFlag", "line": 932, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=42-65\nread TestCompleteCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteCmdInFishScript", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_notwin.go lines=20-43\nread preExecHookFn for detail", "file": "command_notwin.go", "symbol": "preExecHookFn", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=337-360\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=111-134\nread hasAllFlags for detail", "file": "flag_groups.go", "symbol": "hasAllFlags", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=37-60\nread ExampleGenMan for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenMan", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1018-1041\nread getEnvConfig for detail", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=103-126\nread compCmdNoDescFlagDefault for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDefault", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions_test.go lines=23-46\nread TestPwshCompletionNoActiveHelp for detail", "file": "powershell_completions_test.go", "symbol": "TestPwshCompletionNoActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread left for detail", "file": "cobra.go", "symbol": "left", "line": 115, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "¿Dónde se define el valor para desactivar globalmente la ayuda activa?", "query": "active help disable", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lang": "es", "candidates": [{"text": "File: cobra_test.go\nLine 246: if runtime.GOOS == \"windows\" {", "file": "cobra_test.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 62: t.Fatalf(\"Failed to create tmpdir: %s\", err.Error())", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 327: return c.genPowerShellCompletion(outFile, includeDesc)", "file": "powershell_completions.go", "symbol": "", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1290: checkStringContains(t, output, \"root error prefix: unknown flag: --unknown-root-flag\")", "file": "command_test.go", "symbol": "", "line": 1290, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 101: local shellCompDirectiveNoFileComp=%[5]d", "file": "bash_completionsV2.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 17: import (", "file": "powershell_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 77: checkStringOmits(t, output, unexpected)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "zsh_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 257: noActiveHelp := GetActiveHelpConfig(finalCmd) == activeHelpGlobalDisable", "file": "completions.go", "symbol": "", "line": 257, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\nLine 53: return fmt.Sprintf(\"`%s <%s.rst>`_\", name, ref)", "file": "doc/rest_docs.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 13: // limitations under the License.", "file": "doc/util.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 28: output := buf.String()", "file": "zsh_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 120: Short: \"Echo anything to the screen\",", "file": "bash_completions_test.go", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 31: Title: \"MINE\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 254: # Add the proper number of spaces to align the descriptions", "file": "powershell_completions.go", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 36: c.Println(\"Press return to continue...\")", "file": "command_win.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 103: if cmd.Runnable() {", "file": "doc/yaml_docs.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 8: //", "file": "command_notwin.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 28: activeHelpGlobalDisable = \"0\"", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nLine 56: }", "file": "doc/man_docs.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 95: return err", "file": "doc/rest_docs.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 184: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "zsh_completions_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "¿Dónde se define el valor para desactivar globalmente la ayuda activa?", "query": "active help disable", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lang": "es", "candidates": [{"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "¿Dónde se define el valor para desactivar globalmente la ayuda activa?", "query": "active help disable", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lang": "es", "candidates": [{"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "¿Dónde se define el valor para desactivar globalmente la ayuda activa?", "query": "active help disable", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lang": "es", "candidates": [{"text": "Next: read completions.go lines=932-955\nread findFlag for detail", "file": "completions.go", "symbol": "findFlag", "line": 932, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=45-68\nread Group for detail", "file": "command.go", "symbol": "Group", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=432-455\nread getIn for detail", "file": "command.go", "symbol": "getIn", "line": 432, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=678-701\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=38-61\nread AppendActiveHelp for detail", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=321-344\nread TestExactArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=56-79\nread runShellCheck for detail", "file": "bash_completions_test.go", "symbol": "runShellCheck", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=693-716\nread GetSlice for detail", "file": "completions_test.go", "symbol": "GetSlice", "line": 693, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=86-109\nread BenchmarkGenYamlToFile for detail", "file": "doc/yaml_docs_test.go", "symbol": "BenchmarkGenYamlToFile", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=225-248\nread stringInSlice for detail", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=26-49\nread activeHelpEnvVarSuffix for detail", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=225-248\nread enforceFlagGroupsForCompletion for detail", "file": "flag_groups.go", "symbol": "enforceFlagGroupsForCompletion", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=338-361\nread SetHelpCommand for detail", "file": "command.go", "symbol": "SetHelpCommand", "line": 338, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read active_help.go lines=47-70\nread GetActiveHelpConfig for detail", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=32-55\nread printOptions for detail", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=105-128\nread GenMan for detail", "file": "doc/man_docs.go", "symbol": "GenMan", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=644-667\nread writeArgAliases for detail", "file": "bash_completions.go", "symbol": "writeArgAliases", "line": 644, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=337-360\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "get the method that generates the help description by temporarily capturing the output buffers", "query": "usage string buffer", "file": "command.go", "symbol": "UsageString", "line": 526, "lang": "en", "candidates": [{"text": "File: doc/man_docs_test.go\nLine 47: if err := GenMan(echoCmd, header, buf); err != nil {", "file": "doc/man_docs_test.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 495: const cbn = \"\\\")\\n\"", "file": "bash_completions.go", "symbol": "", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 71: // Works only on Microsoft Windows.", "file": "cobra.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 75: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 369: {", "file": "bash_completionsV2.go", "symbol": "", "line": 369, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_win.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 8: //", "file": "flag_groups.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 155: cobra.WriteStringAndCheck(buf, \"# DESCRIPTION\\n\")", "file": "doc/man_docs.go", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 25: const (", "file": "flag_groups.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2172: if got := c.UsageString(); got != expected {", "file": "command_test.go", "symbol": "", "line": 2172, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nLine 107: t.Fatalf(\"Expected file 'do.md' to exist\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 290: if err != nil {", "file": "cobra_test.go", "symbol": "", "line": 290, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 138: header.Source = \"Auto generated by spf13/cobra\"", "file": "doc/man_docs.go", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 60: }", "file": "flag_groups.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 526: func (c *Command) UsageString() string {", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 44: if got := c.UsageString(); got != expected {", "file": "cobra_test.go", "symbol": "", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nLine 90: end", "file": "fish_completions.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 240: // Since cobra can use text/template templates this test checks that in its", "file": "cobra_test.go", "symbol": "", "line": 240, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 8: //", "file": "powershell_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/util.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 116: }", "file": "cobra_test.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 158: if err != nil {", "file": "doc/rest_docs.go", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 36: // subcmds, `sub` and `sub-third`, and `sub` has a subcommand called `third`", "file": "doc/man_docs.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/md_docs.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "get the method that generates the help description by temporarily capturing the output buffers", "query": "usage string buffer", "file": "command.go", "symbol": "UsageString", "line": 526, "lang": "en", "candidates": [{"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "get the method that generates the help description by temporarily capturing the output buffers", "query": "usage string buffer", "file": "command.go", "symbol": "UsageString", "line": 526, "lang": "en", "candidates": [{"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "get the method that generates the help description by temporarily capturing the output buffers", "query": "usage string buffer", "file": "command.go", "symbol": "UsageString", "line": 526, "lang": "en", "candidates": [{"text": "Next: read args_test.go lines=147-170\nread TestNoArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValidOnly_WithInvalidArgs", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread left for detail", "file": "cobra.go", "symbol": "left", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=66-89\nread TestGenRSTNoTag for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoTag", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=998-1021\nread configEnvVarSuffixDescriptions for detail", "file": "completions.go", "symbol": "configEnvVarSuffixDescriptions", "line": 998, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=83-106\nread MarkFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=177-200\nread TestExecuteContext for detail", "file": "command_test.go", "symbol": "TestExecuteContext", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=105-128\nread GenMan for detail", "file": "doc/man_docs.go", "symbol": "GenMan", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=31-54\nread GenZshCompletion for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletion", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=101-124\nread checkStringOmits for detail", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=59-82\nread EnableCommandSorting for detail", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=122-145\nread comps for detail", "file": "active_help_test.go", "symbol": "comps", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=526-549\nread UsageString for detail", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=34-57\nread clean for detail", "file": "Makefile", "symbol": "clean", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=174-197\nread rpad for detail", "file": "cobra.go", "symbol": "rpad", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=206-229\nread TestExecuteContextC for detail", "file": "command_test.go", "symbol": "TestExecuteContextC", "line": 206, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Se detectó un error en la gestión de flags: cuando un comando hijo define una opción con el mismo nombre que una opción persistente del comando padre, la opción heredada aparece erróneamente dentro del conjunto de flags heredados en lugar de ser correctamente omitida por la colisión.", "query": "shadowed persistent flags", "file": "command_test.go", "symbol": "TestChildFlagShadowsParentPersistentFlag", "line": 789, "lang": "es", "candidates": [{"text": "File: zsh_completions.go\nLine 293: # last command, or else we must store its result to return it.", "file": "zsh_completions.go", "symbol": "", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "command_win.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 28: buf := new(bytes.Buffer)", "file": "doc/md_docs_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 112: expectErr: `if any flags in the group [a e] are set they must all be set; missing [e]`,", "file": "flag_groups_test.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 100: if [[ -n ${file} ]]; then", "file": "zsh_completions.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 123: __%[1]s_debug \"Calling $RequestComp\"", "file": "powershell_completions.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 532: }", "file": "bash_completions.go", "symbol": "", "line": 532, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 61: for _, c := range cmd.Commands() {", "file": "doc/yaml_docs.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 39: checkStringContains(t, output, echoSubCmd.Short)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 581: completions = append(completions, comps...)", "file": "completions.go", "symbol": "", "line": 581, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 2: //", "file": "command_win.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 789: func TestChildFlagShadowsParentPersistentFlag(t *testing.T) {", "file": "command_test.go", "symbol": "TestChildFlagShadowsParentPersistentFlag", "line": 789, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions.go\nLine 73: ShellCompDirectiveFilterFileExt", "file": "completions.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 40: }", "file": "command_win.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 107: defer os.Remove(tmpFile.Name())", "file": "fish_completions_test.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 118: return true", "file": "flag_groups.go", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "shell_completions.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 102: t: \"\",", "file": "cobra_test.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 227: set -l lastChar (string sub -s -1 -- $split)", "file": "fish_completions.go", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 33: }", "file": "zsh_completions_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 176: return fmt.Sprintf(formattedString, s)", "file": "cobra.go", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 147: func TestNoArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 2: //", "file": "doc/md_docs_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Se detectó un error en la gestión de flags: cuando un comando hijo define una opción con el mismo nombre que una opción persistente del comando padre, la opción heredada aparece erróneamente dentro del conjunto de flags heredados en lugar de ser correctamente omitida por la colisión.", "query": "shadowed persistent flags", "file": "command_test.go", "symbol": "TestChildFlagShadowsParentPersistentFlag", "line": 789, "lang": "es", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Se detectó un error en la gestión de flags: cuando un comando hijo define una opción con el mismo nombre que una opción persistente del comando padre, la opción heredada aparece erróneamente dentro del conjunto de flags heredados en lugar de ser correctamente omitida por la colisión.", "query": "shadowed persistent flags", "file": "command_test.go", "symbol": "TestChildFlagShadowsParentPersistentFlag", "line": 789, "lang": "es", "candidates": [{"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Se detectó un error en la gestión de flags: cuando un comando hijo define una opción con el mismo nombre que una opción persistente del comando padre, la opción heredada aparece erróneamente dentro del conjunto de flags heredados en lugar de ser correctamente omitida por la colisión.", "query": "shadowed persistent flags", "file": "command_test.go", "symbol": "TestChildFlagShadowsParentPersistentFlag", "line": 789, "lang": "es", "candidates": [{"text": "Next: read args_test.go lines=401-424\nread TestRangeArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=618-641\nread VersionTemplate for detail", "file": "command.go", "symbol": "VersionTemplate", "line": 618, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=398-421\nread OutOrStderr for detail", "file": "command.go", "symbol": "OutOrStderr", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=750-773\nread isFlagArg for detail", "file": "command.go", "symbol": "isFlagArg", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=147-170\nread TestNoArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValidOnly_WithInvalidArgs", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=592-615\nread UsageTemplate for detail", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1560-1583\nread TestNoValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestNoValidArgsFuncInBashScript", "line": 1560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=674-697\nread stripFlags for detail", "file": "command.go", "symbol": "stripFlags", "line": 674, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=201-224\nread directives for detail", "file": "completions.go", "symbol": "directives", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=652-675\nread gen for detail", "file": "bash_completions.go", "symbol": "gen", "line": 652, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=789-812\nread TestChildFlagShadowsParentPersistentFlag for detail", "file": "command_test.go", "symbol": "TestChildFlagShadowsParentPersistentFlag", "line": 789, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=426-449\nread TestValidArgsFuncAndCmdCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAndCmdCompletionInGo", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=563-586\nread UsagePadding for detail", "file": "command.go", "symbol": "UsagePadding", "line": 563, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=103-126\nread compCmdNoDescFlagDefault for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDefault", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=327-350\nread TestExactArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=505-528\nread getHelpTemplateFunc for detail", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Comment l'endroit où sont gérées les règles de groupes de flags (exclusivité mutuelle ou présence obligatoire) ?", "query": "validate flag groups", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lang": "fr", "candidates": [{"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 24: )", "file": "doc/rest_docs_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 134: buf := new(bytes.Buffer)", "file": "doc/man_docs_test.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 63: Use: \"echosub [string to print]\",", "file": "doc/cmd_test.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 41: func forceMultiLine(s string) string {", "file": "doc/util.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1010: if err := c.ValidateFlagGroups(); err != nil {", "file": "command.go", "symbol": "", "line": 1010, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nLine 37: // it is undefined which help output will be in the file `cmd-sub-third.1`.", "file": "doc/man_docs.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 83: desc: \"Multiple one-required flag group not satisfied returns first error\",", "file": "flag_groups_test.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1533: },", "file": "command_test.go", "symbol": "", "line": 1533, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 169: __%[1]s_debug \"Listing directories in .\"", "file": "bash_completionsV2.go", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 162: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/rest_docs_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 113: yamlDoc.Options = genFlagResult(flags)", "file": "doc/yaml_docs.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 32: func printOptions(buf *bytes.Buffer, cmd *cobra.Command, name string) error {", "file": "doc/md_docs.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 131: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 32: return c.genZshCompletion(w, true)", "file": "zsh_completions.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 141: // FIXME Eq is unused by cobra and should be removed in a version 2. It exists only for compatibility with users of cobra.", "file": "cobra.go", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 121: }", "file": "powershell_completions.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 20: \"path/filepath\"", "file": "doc/rest_docs_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "powershell_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 117: continue", "file": "doc/rest_docs.go", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 81: func (c *Command) ValidateFlagGroups() error {", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Comment l'endroit où sont gérées les règles de groupes de flags (exclusivité mutuelle ou présence obligatoire) ?", "query": "validate flag groups", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lang": "fr", "candidates": [{"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "cobra", "task": "Comment l'endroit où sont gérées les règles de groupes de flags (exclusivité mutuelle ou présence obligatoire) ?", "query": "validate flag groups", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lang": "fr", "candidates": [{"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> github.com/spf13/pflag", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> strings", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Comment l'endroit où sont gérées les règles de groupes de flags (exclusivité mutuelle ou présence obligatoire) ?", "query": "validate flag groups", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lang": "fr", "candidates": [{"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=235-258\nread TestExecute_NoContext for detail", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=616-639\nread TestFlagBeforeCommand for detail", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=206-229\nread TestExecuteContextC for detail", "file": "command_test.go", "symbol": "TestExecuteContextC", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=302-325\nread SetErr for detail", "file": "command.go", "symbol": "SetErr", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=465-488\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=289-312\nread SetOutput for detail", "file": "command.go", "symbol": "SetOutput", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=80-103\nread ShellCompDirectiveFilterDirs for detail", "file": "completions.go", "symbol": "ShellCompDirectiveFilterDirs", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=499-522\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 499, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=141-164\nread TestNoArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=24-47\nread genBashCompletion for detail", "file": "bash_completionsV2.go", "symbol": "genBashCompletion", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help_test.go lines=169-192\nread TestMultiActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestMultiActiveHelp", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2_test.go lines=23-46\nread TestBashCompletionV2WithActiveHelp for detail", "file": "bash_completionsV2_test.go", "symbol": "TestBashCompletionV2WithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=81-104\nread ValidateFlagGroups for detail", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "Ich arbeite gerade an der Implementierung der CLI-Parameter. Kannst du mir zeigen, welches Typ-Definition verwendet wird, um festzulegen, welche Fehler beim Parsen der Flags ignoriert werden sollen?", "query": "ignore flag parse errors", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lang": "de", "candidates": [{"text": "File: doc/man_docs.go\nLine 220: if cmd.HasParent() {", "file": "doc/man_docs.go", "symbol": "", "line": 220, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 114: // We generate on a subcommand so we have both subcommands and parents", "file": "doc/man_docs_test.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 240: if strings.Contains(output, flagName) {", "file": "bash_completions_test.go", "symbol": "", "line": 240, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 59: // Test that activeHelp can be added to a child command", "file": "active_help_test.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 387: local i ci", "file": "bash_completionsV2.go", "symbol": "", "line": 387, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 15: //go:build !windows", "file": "command_notwin.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 286: if err != nil {", "file": "cobra_test.go", "symbol": "", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 104: }", "file": "powershell_completions.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 19: \"fmt\"", "file": "zsh_completions_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 206: // something like `rootcmd-subcmd1-subcmd2`", "file": "doc/man_docs.go", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 42: type FParseErrWhitelist flag.ParseErrorsAllowlist", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nLine 49: Short: \"Root short description\",", "file": "doc/cmd_test.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 40: }", "file": "active_help.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 26: // - root commands with subcommands will do subcommand validity checking", "file": "args.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 236: flagname := \"flag\"", "file": "active_help_test.go", "symbol": "", "line": 236, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2513: FParseErrWhitelist: FParseErrWhitelist{", "file": "command_test.go", "symbol": "", "line": 2513, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nLine 174: # remove the space here", "file": "powershell_completions.go", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 234: keepOrder=\"-V\"", "file": "zsh_completions.go", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 15: package cobra", "file": "zsh_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 384: local comp desc maxdesclength", "file": "bash_completionsV2.go", "symbol": "", "line": 384, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 48: defer func() { f.Hidden = false }()", "file": "doc/rest_docs_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 155: if len(unset) == len(flagnameAndStatus) || len(unset) == 0 {", "file": "flag_groups.go", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 140: $Out = $Out | Where-Object { $_ -ne $Out[-1] }", "file": "powershell_completions.go", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Ich arbeite gerade an der Implementierung der CLI-Parameter. Kannst du mir zeigen, welches Typ-Definition verwendet wird, um festzulegen, welche Fehler beim Parsen der Flags ignoriert werden sollen?", "query": "ignore flag parse errors", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lang": "de", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Ich arbeite gerade an der Implementierung der CLI-Parameter. Kannst du mir zeigen, welches Typ-Definition verwendet wird, um festzulegen, welche Fehler beim Parsen der Flags ignoriert werden sollen?", "query": "ignore flag parse errors", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lang": "de", "candidates": [{"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Ich arbeite gerade an der Implementierung der CLI-Parameter. Kannst du mir zeigen, welches Typ-Definition verwendet wird, um festzulegen, welche Fehler beim Parsen der Flags ignoriert werden sollen?", "query": "ignore flag parse errors", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lang": "de", "candidates": [{"text": "Next: read command.go lines=45-68\nread Group for detail", "file": "command.go", "symbol": "Group", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=73-96\nread ShellCompDirectiveFilterFileExt for detail", "file": "completions.go", "symbol": "ShellCompDirectiveFilterFileExt", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=97-120\nread MaximumNArgs for detail", "file": "args.go", "symbol": "MaximumNArgs", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=283-306\nread TestMaximumNArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=447-470\nread writeCommands for detail", "file": "bash_completions.go", "symbol": "writeCommands", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=491-514\nread TestFlagLong for detail", "file": "command_test.go", "symbol": "TestFlagLong", "line": 491, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=308-331\nread aCmdArgs for detail", "file": "command_test.go", "symbol": "aCmdArgs", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=149-172\nread genFlagResult for detail", "file": "doc/yaml_docs.go", "symbol": "genFlagResult", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=90-113\nread dummyCmd for detail", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=225-248\nread stringInSlice for detail", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=254-277\nread progname for detail", "file": "cobra_test.go", "symbol": "progname", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=932-955\nread findFlag for detail", "file": "completions.go", "symbol": "findFlag", "line": 932, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=616-639\nread TestFlagBeforeCommand for detail", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=83-106\nread TestBashCompletions for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletions", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1575-1598\nread TestCompleteCmdInBashScript for detail", "file": "completions_test.go", "symbol": "TestCompleteCmdInBashScript", "line": 1575, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=143-166\nread manPreamble for detail", "file": "doc/man_docs.go", "symbol": "manPreamble", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "¿Dónde se gestionan las funciones de limpieza que se ejecutan al terminar?", "query": "cleanup functions", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lang": "es", "candidates": [{"text": "File: fish_completions.go\nLine 178: set directive 0", "file": "fish_completions.go", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 304: `, name, compCmd,", "file": "zsh_completions.go", "symbol": "", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 107: for i := 0; i < b.N; i++ {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1054: for _, x := range finalizers {", "file": "command.go", "symbol": "", "line": 1054, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/md_docs_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 90: childCmd := &Command{", "file": "active_help_test.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_notwin.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 70: basename := strings.ReplaceAll(cmd.CommandPath(), \" \", \"_\") + \".yaml\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 413: # truncate the descriptions that are too long for the shell width", "file": "bash_completionsV2.go", "symbol": "", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 126: identity := func(s string) string { return s }", "file": "doc/md_docs.go", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2318: if output != expected {", "file": "completions_test.go", "symbol": "", "line": 2318, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 18: package cobra", "file": "command_win.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 59: // We generate on subcommand so we have both subcommands and parents.", "file": "doc/md_docs_test.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 51: }", "file": "active_help.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 43: var finalizers []func()", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups.go\nLine 123: if found {", "file": "flag_groups.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2651: // Test sub-commands of the completion command", "file": "completions_test.go", "symbol": "", "line": 2651, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 226: if c.DisableAutoGenTag {", "file": "doc/man_docs.go", "symbol": "", "line": 226, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 37: func ExampleGenMan() {", "file": "doc/man_examples_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 150: # Use eval to handle any environment variables and such", "file": "zsh_completions.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 289: IFS=$'\\n' read -ra COMPREPLY -d '' < <(IFS=$'\\n'; compgen -W \"${completions[*]}\" -- \"${cur}\")", "file": "bash_completionsV2.go", "symbol": "", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 344: output, err := executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"thechild\", \"\")", "file": "active_help_test.go", "symbol": "", "line": 344, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 46: buf := new(bytes.Buffer)", "file": "doc/man_docs_test.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 13: // limitations under the License.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "¿Dónde se gestionan las funciones de limpieza que se ejecutan al terminar?", "query": "cleanup functions", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lang": "es", "candidates": [{"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "¿Dónde se gestionan las funciones de limpieza que se ejecutan al terminar?", "query": "cleanup functions", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lang": "es", "candidates": [{"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "¿Dónde se gestionan las funciones de limpieza que se ejecutan al terminar?", "query": "cleanup functions", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lang": "es", "candidates": [{"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=142-165\nread CompletionWithDesc for detail", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=302-325\nread SetErr for detail", "file": "command.go", "symbol": "SetErr", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=757-780\nread Find for detail", "file": "command.go", "symbol": "Find", "line": 757, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=398-421\nread OutOrStderr for detail", "file": "command.go", "symbol": "OutOrStderr", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=616-639\nread TestFlagBeforeCommand for detail", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=819-842\nread childCmdArgs for detail", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=980-1003\nread CompDebugln for detail", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=48-71\nread defaultCaseInsensitive for detail", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=129-152\nread TestNoArgs_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithArgs", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=38-61\nread GenManTree for detail", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=42-65\nread TestCompleteCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteCmdInFishScript", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "유효한 인자만 허용할 때 잘못된 인자가 들어오는 경우의 테스트 코드 찾아줘", "query": "test invalid args", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lang": "ko", "candidates": [{"text": "File: bash_completions.go\nLine 167: }", "file": "bash_completions.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 52: func defaultLinkHandler(name, ref string) string {", "file": "doc/rest_docs.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 134: for _, c := range cmd.Commands() {", "file": "doc/md_docs.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 99: file, err := os.CreateTemp(\"\", \"\")", "file": "doc/rest_docs_test.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 105: }", "file": "doc/cmd_test.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 238: })", "file": "flag_groups.go", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 75: rootCmd := &Command{Use: \"root:colon\", Args: NoArgs, Run: emptyRun}", "file": "fish_completions_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 92: return nil", "file": "args.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 23: func TestBashCompletionV2WithActiveHelp(t *testing.T) {", "file": "bash_completionsV2_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 272: if eval _describe $keepOrder \"completions\" completions $flagPrefix $noSpace; then", "file": "zsh_completions.go", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 64: buf.WriteString(\"## \" + name + \"\\n\\n\")", "file": "doc/md_docs.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 2: //", "file": "powershell_completions.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 169: }", "file": "powershell_completions.go", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 339: func TestExactArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions.go\nLine 124: if test -z \"$__%[1]s_perform_completion_once_result\"", "file": "fish_completions.go", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 458: }", "file": "completions_test.go", "symbol": "", "line": 458, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 97: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "fish_completions_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 588: var intFlagValue int", "file": "command_test.go", "symbol": "", "line": 588, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "bash_completionsV2_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 90: buf.WriteString(\"~~~~~~~~\\n\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 19: \"fmt\"", "file": "zsh_completions_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 255: )", "file": "cobra_test.go", "symbol": "", "line": 255, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 15: package cobra", "file": "zsh_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 291: t.Fatalf(\"could not compile test program: %s\", string(buf))", "file": "cobra_test.go", "symbol": "", "line": 291, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "유효한 인자만 허용할 때 잘못된 인자가 들어오는 경우의 테스트 코드 찾아줘", "query": "test invalid args", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lang": "ko", "candidates": [{"text": "File: args_test.go\ndefines TestExactArgs_WithValidOnly_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "유효한 인자만 허용할 때 잘못된 인자가 들어오는 경우의 테스트 코드 찾아줘", "query": "test invalid args", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lang": "ko", "candidates": [{"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "유효한 인자만 허용할 때 잘못된 인자가 들어오는 경우의 테스트 코드 찾아줘", "query": "test invalid args", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lang": "ko", "candidates": [{"text": "Next: read command.go lines=788-811\nread sb for detail", "file": "command.go", "symbol": "sb", "line": 788, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=643-666\nread TestStripFlags for detail", "file": "command_test.go", "symbol": "TestStripFlags", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=160-183\nread FixedCompletions for detail", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=202-225\nread genMan for detail", "file": "doc/man_docs.go", "symbol": "genMan", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=1001-1024\nread configEnvVarPrefixSubstRegexp for detail", "file": "completions.go", "symbol": "configEnvVarPrefixSubstRegexp", "line": 1001, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=75-98\nread TestGenYamlDocRunnable for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDocRunnable", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=757-780\nread Find for detail", "file": "command.go", "symbol": "Find", "line": 757, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=171-194\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=121-144\nread TestStringInSlice for detail", "file": "cobra_test.go", "symbol": "TestStringInSlice", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=43-66\nread TestGenRSTNoHiddenParents for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoHiddenParents", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=121-144\nread processFlagForGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=66-89\nread TestGenRSTNoTag for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoTag", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=470-493\nread GenBashCompletionFileV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionFileV2", "line": 470, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=604-627\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=339-362\nread TestExactArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=30-53\nread printOptionsReST for detail", "file": "doc/rest_docs.go", "symbol": "printOptionsReST", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=30-53\nread BashCompFilenameExt for detail", "file": "bash_completions.go", "symbol": "BashCompFilenameExt", "line": 30, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Ich arbeite gerade an den CLI-Tests. Kannst du mir zeigen, wie die Generierung der Autovervollständigungs-Dateien für die Shell überprüft wird?", "query": "fish completion test", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lang": "de", "candidates": [{"text": "File: completions.go\nLine 574: completionFn = finalCmd.ValidArgsFunction", "file": "completions.go", "symbol": "", "line": 574, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 15: //go:build !windows", "file": "command_notwin.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 321: }", "file": "command_test.go", "symbol": "", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 25: // both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 6: github.com/cpuguy83/go-md2man/v2 v2.0.6", "file": "go.mod", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 286: t.Errorf(\"expected activeHelpConfig: %q, but got: %q\", activeHelpCfg, receivedActiveHelpCfg)", "file": "active_help_test.go", "symbol": "", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 18: \"os\"", "file": "cobra_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 29: }", "file": "doc/util.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 179: // check for custom completion function with both qualified and unqualified name", "file": "bash_completions_test.go", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 2: SRC=$(shell find . -name \"*.go\")", "file": "Makefile", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 464: finalCmd.InheritedFlags().VisitAll(func(flag *pflag.Flag) {", "file": "completions.go", "symbol": "", "line": 464, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 16: // +build !windows", "file": "command_notwin.go", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 25: \"github.com/inconshreveable/mousetrap\"", "file": "command_win.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 224: // This allows the standard completion logic to behave appropriately for flag groups", "file": "flag_groups.go", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "doc/man_docs_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 249: # so we can properly delete any completions provided by another script.", "file": "fish_completions.go", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1774: t.Errorf(\"Unexpected error: %v\", err)", "file": "command_test.go", "symbol": "", "line": 1774, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/man_examples_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 223: // Assert", "file": "cobra_test.go", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 26: richtest: install_deps", "file": "Makefile", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 50: //", "file": "shell_completions.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 101: func TestGenFishCompletionFile(t *testing.T) {", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Makefile\nLine 30: install_deps:", "file": "Makefile", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 40: }", "file": "shell_completions.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Ich arbeite gerade an den CLI-Tests. Kannst du mir zeigen, wie die Generierung der Autovervollständigungs-Dateien für die Shell überprüft wird?", "query": "fish completion test", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lang": "de", "candidates": [{"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\ndefines TestGenFishCompletionFile", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Ich arbeite gerade an den CLI-Tests. Kannst du mir zeigen, wie die Generierung der Autovervollständigungs-Dateien für die Shell überprüft wird?", "query": "fish completion test", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lang": "de", "candidates": [{"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> os", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> path/filepath", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> fmt", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> testing", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Ich arbeite gerade an den CLI-Tests. Kannst du mir zeigen, wie die Generierung der Autovervollständigungs-Dateien für die Shell überprüft wird?", "query": "fish completion test", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lang": "de", "candidates": [{"text": "Next: read command_test.go lines=74-97\nread checkStringContains for detail", "file": "command_test.go", "symbol": "checkStringContains", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=235-258\nread TestExecute_NoContext for detail", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=18-41\nread lint for detail", "file": "Makefile", "symbol": "lint", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=147-170\nread TestNoArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValidOnly_WithInvalidArgs", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=232-255\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=74-97\nread TestProgWithColon for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithColon", "line": 74, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=89-112\nread TestFishCompletionNoActiveHelp for detail", "file": "fish_completions_test.go", "symbol": "TestFishCompletionNoActiveHelp", "line": 89, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=337-360\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=101-124\nread TestGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read fish_completions_test.go lines=59-82\nread TestProgWithDash for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithDash", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=243-266\nread WriteStringAndCheck for detail", "file": "cobra.go", "symbol": "WriteStringAndCheck", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=605-628\nread HelpTemplate for detail", "file": "command.go", "symbol": "HelpTemplate", "line": 605, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=741-764\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 741, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=508-531\nread writeFlag for detail", "file": "bash_completions.go", "symbol": "writeFlag", "line": 508, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=149-172\nread TestManPrintFlagsHidesShortDeprecated for detail", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=701-724\nread GenBashCompletionFile for detail", "file": "bash_completions.go", "symbol": "GenBashCompletionFile", "line": 701, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=42-65\nread TestCompleteCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteCmdInFishScript", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=997-1020\nread configEnvVarGlobalPrefix for detail", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=382-405\nread SetGlobalNormalizationFunc for detail", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=170-193\nread RegisterFlagCompletionFunc for detail", "file": "completions.go", "symbol": "RegisterFlagCompletionFunc", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=318-341\nread SetUsageTemplate for detail", "file": "command.go", "symbol": "SetUsageTemplate", "line": 318, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Die Liste der Argumente für den Zeitbefehl wird nicht korrekt für die Testabläufe vorbereitet und scheint die erwarteten Parameter zu verpassen.", "query": "command time args", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lang": "de", "candidates": [{"text": "File: doc/cmd_test.go\nLine 30: echoCmd.PersistentFlags().StringP(\"strone\", \"s\", \"one\", \"help message for flag strone\")", "file": "doc/cmd_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 139: fmt.Println(err)", "file": "doc/yaml_docs.go", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 271: }", "file": "flag_groups.go", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 48: buf := new(bytes.Buffer)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 61: buf := new(bytes.Buffer)", "file": "doc/md_docs.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 18: \"strings\"", "file": "flag_groups_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 208: __%[1]s_debug \"prefix: $prefix\"", "file": "fish_completions.go", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 35: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 266: # If this doesn't require order preservation, we don't use the -k flag", "file": "fish_completions.go", "symbol": "", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 27: func TestGenYamlDoc(t *testing.T) {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 275: var timesCmdArgs []string", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\nLine 63: cmd.InitDefaultHelpCmd()", "file": "doc/rest_docs.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 18: \"bytes\"", "file": "doc/man_docs.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 118: return func(cmd *Command, args []string) error {", "file": "args.go", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 54: $CursorPosition", "file": "powershell_completions.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 138: // ExactValidArgs returns an error if there are not exactly N positional args OR", "file": "args.go", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 38: checkStringContains(t, output, rootCmd.Short)", "file": "doc/md_docs_test.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 340: comps = AppendActiveHelp(comps, activeHelpMessage)", "file": "active_help_test.go", "symbol": "", "line": 340, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 493: }", "file": "bash_completions.go", "symbol": "", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 98: checkStringContains(t, output, translate(rootCmd.Name()))", "file": "doc/man_docs_test.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 188: set -l filefilter (math (math --scale 0 $directive / $shellCompDirectiveFilterFileExt) %% 2)", "file": "fish_completions.go", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 57: Short: \"Echo anything to the screen\",", "file": "doc/cmd_test.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 105: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 86: // MinimumNArgs returns an error if there is not at least N args.", "file": "args.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Die Liste der Argumente für den Zeitbefehl wird nicht korrekt für die Testabläufe vorbereitet und scheint die erwarteten Parameter zu verpassen.", "query": "command time args", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lang": "de", "candidates": [{"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Die Liste der Argumente für den Zeitbefehl wird nicht korrekt für die Testabläufe vorbereitet und scheint die erwarteten Parameter zu verpassen.", "query": "command time args", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lang": "de", "candidates": [{"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Die Liste der Argumente für den Zeitbefehl wird nicht korrekt für die Testabläufe vorbereitet und scheint die erwarteten Parameter zu verpassen.", "query": "command time args", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lang": "de", "candidates": [{"text": "Next: read completions_test.go lines=2694-2717\nread TestMultipleShorthandFlagCompletion for detail", "file": "completions_test.go", "symbol": "TestMultipleShorthandFlagCompletion", "line": 2694, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=80-103\nread TestGenRSTTree for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTTree", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=275-298\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=568-591\nread completionFn for detail", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=696-719\nread nonCompletableFlag for detail", "file": "bash_completions.go", "symbol": "nonCompletableFlag", "line": 696, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=412-435\nread getOut for detail", "file": "command.go", "symbol": "getOut", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2926-2949\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2926, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1006-1029\nread configEnvVar for detail", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=171-194\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=105-128\nread GenMan for detail", "file": "doc/man_docs.go", "symbol": "GenMan", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=271-294\nread TestMaximumNArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=748-771\nread InitDefaultCompletionCmd for detail", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completionsV2.go lines=24-47\nread genBashCompletion for detail", "file": "bash_completionsV2.go", "symbol": "genBashCompletion", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=107-130\nread CompletionOptions for detail", "file": "completions.go", "symbol": "CompletionOptions", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Der Wert für die Unterbefehl-Option wird nicht korrekt an die Testumgebung übergeben oder bleibt in einem undefinierten Zustand.", "query": "child flag value", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lang": "de", "candidates": [{"text": "File: doc/cmd_test.go\nLine 22: )", "file": "doc/cmd_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 12: // See the License for the specific language governing permissions and", "file": "flag_groups.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 246: filteringCmd+=\" -g $filter\"", "file": "zsh_completions.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 8: //", "file": "doc/rest_docs.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 2058: if c.Runnable() || c.HasSubCommands() {", "file": "command.go", "symbol": "", "line": 2058, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 21: )", "file": "powershell_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1994: fmt.Fprintf(w, \"\\n\\nAvailable Commands:\")", "file": "command.go", "symbol": "", "line": 1994, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 121: Long: \"an utterly useless command for testing.\",", "file": "bash_completions_test.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 30: // check that active help is not being disabled", "file": "bash_completionsV2_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "shell_completions.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 296: // Test active help config for a flag", "file": "active_help_test.go", "symbol": "", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 238: # File extension filtering", "file": "zsh_completions.go", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 22: \"github.com/spf13/cobra/doc\"", "file": "doc/man_examples_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 91: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 79: COMPREPLY=( \"hello\" )", "file": "bash_completions_test.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "powershell_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 829: var childFlagValue int", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions.go\nLine 301: if [ \"$funcstack[1]\" = \"_%[1]s\" ]; then", "file": "zsh_completions.go", "symbol": "", "line": 301, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 180: allflags=(\"${must_have_one_flag[@]}\")", "file": "bash_completions.go", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 194: if isSet {", "file": "flag_groups.go", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 272: c := getCommand(MaximumNArgs(3), false)", "file": "args_test.go", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 213: if len(cmd.Example) > 0 {", "file": "doc/man_docs.go", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 112: file, err := os.CreateTemp(\"\", \"\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/md_docs.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Der Wert für die Unterbefehl-Option wird nicht korrekt an die Testumgebung übergeben oder bleibt in einem undefinierten Zustand.", "query": "child flag value", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lang": "de", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Der Wert für die Unterbefehl-Option wird nicht korrekt an die Testumgebung übergeben oder bleibt in einem undefinierten Zustand.", "query": "child flag value", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lang": "de", "candidates": [{"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Der Wert für die Unterbefehl-Option wird nicht korrekt an die Testumgebung übergeben oder bleibt in einem undefinierten Zustand.", "query": "child flag value", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lang": "de", "candidates": [{"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups_test.go lines=22-45\nread TestValidateFlagGroups for detail", "file": "flag_groups_test.go", "symbol": "TestValidateFlagGroups", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=980-1003\nread CompDebugln for detail", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=170-193\nread RegisterFlagCompletionFunc for detail", "file": "completions.go", "symbol": "RegisterFlagCompletionFunc", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=200-223\nread string for detail", "file": "completions.go", "symbol": "string", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=277-300\nread TestMaximumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=78-101\nread bashCompletionFunc for detail", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=80-103\nread genZshCompletion for detail", "file": "zsh_completions.go", "symbol": "genZshCompletion", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions.go lines=536-559\nread prepareCustomAnnotationsForFlags for detail", "file": "bash_completions.go", "symbol": "prepareCustomAnnotationsForFlags", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=169-192\nread TestNoDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=122-145\nread comps for detail", "file": "active_help_test.go", "symbol": "comps", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=157-180\nread TestNoCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=689-712\nread Type for detail", "file": "completions_test.go", "symbol": "Type", "line": 689, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "모든 플래그와 하위 명령에 적용될 전역 정규화 함수 설정하는 부분 찾아줘", "query": "global flag normalization", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lang": "ko", "candidates": [{"text": "File: cobra_test.go\nLine 20: \"path/filepath\"", "file": "cobra_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1798: rootCmd.SetGlobalNormalizationFunc(normFunc)", "file": "command_test.go", "symbol": "", "line": 1798, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\nLine 1991: output, err = executeCommand(rootCmd, ShellCompRequestCmd, \"child\", \"arg\", \"--validarg\", \"\")", "file": "completions_test.go", "symbol": "", "line": 1991, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 217: func BenchmarkGenManToFile(b *testing.B) {", "file": "doc/man_docs_test.go", "symbol": "", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 6: github.com/cpuguy83/go-md2man/v2 v2.0.6", "file": "go.mod", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 33: }", "file": "args_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 150: var result []cmdOption", "file": "doc/yaml_docs.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 5: // You may obtain a copy of the License at", "file": "args.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 59: Example: \"Just run cobra-test echo\",", "file": "doc/cmd_test.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 48: }", "file": "fish_completions_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 115: DisableDescriptions bool", "file": "completions.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/md_docs_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_win.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 382: func (c *Command) SetGlobalNormalizationFunc(n func(f *flag.FlagSet, name string) flag.NormalizedName) {", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nLine 42: // GetActiveHelpConfig returns the value of the ActiveHelp environment variable", "file": "active_help.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3367: Run: emptyRun,", "file": "completions_test.go", "symbol": "", "line": 3367, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 137: }", "file": "bash_completions_test.go", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 48: }", "file": "powershell_completions.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2699: root.SetArgs([]string{\"child\"})", "file": "command_test.go", "symbol": "", "line": 2699, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 20: \"github.com/spf13/cobra\"", "file": "doc/util.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 31: Use: \"root\",", "file": "active_help_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 20: \"path/filepath\"", "file": "doc/md_docs_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 143: for filter in ${out}; do", "file": "bash_completions.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 228: __%[1]s_debug \"Activating nospace.\"", "file": "zsh_completions.go", "symbol": "", "line": 228, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "모든 플래그와 하위 명령에 적용될 전역 정규화 함수 설정하는 부분 찾아줘", "query": "global flag normalization", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lang": "ko", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "모든 플래그와 하위 명령에 적용될 전역 정규화 함수 설정하는 부분 찾아줘", "query": "global flag normalization", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "모든 플래그와 하위 명령에 적용될 전역 정규화 함수 설정하는 부분 찾아줘", "query": "global flag normalization", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lang": "ko", "candidates": [{"text": "Next: read args_test.go lines=389-412\nread TestRangeArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=225-248\nread stringInSlice for detail", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2_test.go lines=23-46\nread TestBashCompletionV2WithActiveHelp for detail", "file": "bash_completionsV2_test.go", "symbol": "TestBashCompletionV2WithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=52-75\nread Error for detail", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=87-110\nread genZshComp for detail", "file": "zsh_completions.go", "symbol": "genZshComp", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completionsV2.go lines=24-47\nread genBashCompletion for detail", "file": "bash_completionsV2.go", "symbol": "genBashCompletion", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=50-73\nread Len for detail", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=101-124\nread TestGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=773-796\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 773, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=998-1021\nread configEnvVarSuffixDescriptions for detail", "file": "completions.go", "symbol": "configEnvVarSuffixDescriptions", "line": 998, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=59-82\nread EnableCommandSorting for detail", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=748-771\nread InitDefaultCompletionCmd for detail", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=819-842\nread childCmdArgs for detail", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=89-112\nread TestFishCompletionNoActiveHelp for detail", "file": "fish_completions_test.go", "symbol": "TestFishCompletionNoActiveHelp", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=382-405\nread SetGlobalNormalizationFunc for detail", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "사용자 문서와 환경 변수 설정에서 명시적으로 참조하도록 고정된 ActiveHelp 관련 환경 변수 접미사를 찾고 있어요. 이 값은 프로그램 문서에서 직접 언급되므로 변경하지 않고 사용하는 방법을 확인해야 합니다.", "query": "active help env suffix", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lang": "ko", "candidates": [{"text": "File: fish_completions.go\nLine 197: set -l nofiles (math (math --scale 0 $directive / $shellCompDirectiveNoFileComp) %% 2)", "file": "fish_completions.go", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 701: func (c *Command) GenBashCompletionFile(filename string) error {", "file": "bash_completions.go", "symbol": "", "line": 701, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 87: }", "file": "cobra.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 149: list: []string{},", "file": "cobra_test.go", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 231: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 23: $(info ******************** running tests ********************)", "file": "Makefile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 18: \"bytes\"", "file": "zsh_completions_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 225: func stringInSlice(a string, list []string) bool {", "file": "cobra.go", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 156: __%[1]s_debug \"Listing directories in $subdir\"", "file": "bash_completions.go", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_win.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 33: }", "file": "zsh_completions_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 6: //", "file": "zsh_completions_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 5: // You may obtain a copy of the License at", "file": "bash_completionsV2.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 145: t.Fatalf(\"Second line after SEE ALSO wasn't correct: %v\", err)", "file": "doc/man_docs_test.go", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 5: // You may obtain a copy of the License at", "file": "fish_completions.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 313: _, err = executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"thechild\", \"--flag\", \"\")", "file": "active_help_test.go", "symbol": "", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 19: \"fmt\"", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 600: if _, ok := flag.Annotations[BashCompOneRequiredFlag]; ok {", "file": "bash_completions.go", "symbol": "", "line": 600, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 110: }", "file": "command_test.go", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 85: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 31: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 26: activeHelpEnvVarSuffix = \"ACTIVE_HELP\"", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command.go\nLine 54: type Command struct {", "file": "command.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 78: const bashCompletionFunc = `__root_custom_func() {", "file": "bash_completions_test.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "사용자 문서와 환경 변수 설정에서 명시적으로 참조하도록 고정된 ActiveHelp 관련 환경 변수 접미사를 찾고 있어요. 이 값은 프로그램 문서에서 직접 언급되므로 변경하지 않고 사용하는 방법을 확인해야 합니다.", "query": "active help env suffix", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lang": "ko", "candidates": [{"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "사용자 문서와 환경 변수 설정에서 명시적으로 참조하도록 고정된 ActiveHelp 관련 환경 변수 접미사를 찾고 있어요. 이 값은 프로그램 문서에서 직접 언급되므로 변경하지 않고 사용하는 방법을 확인해야 합니다.", "query": "active help env suffix", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lang": "ko", "candidates": [{"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "사용자 문서와 환경 변수 설정에서 명시적으로 참조하도록 고정된 ActiveHelp 관련 환경 변수 접미사를 찾고 있어요. 이 값은 프로그램 문서에서 직접 언급되므로 변경하지 않고 사용하는 방법을 확인해야 합니다.", "query": "active help env suffix", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lang": "ko", "candidates": [{"text": "Next: read completions_test.go lines=1544-1567\nread TestValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncInBashScript", "line": 1544, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=47-70\nread GetActiveHelpConfig for detail", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=633-656\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2899-2922\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2899, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=65-88\nread MarkFlagsMutuallyExclusive for detail", "file": "flag_groups.go", "symbol": "MarkFlagsMutuallyExclusive", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=997-1020\nread configEnvVarGlobalPrefix for detail", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=251-274\nread TestMinimumNArgs_WithLessArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=696-719\nread nonCompletableFlag for detail", "file": "bash_completions.go", "symbol": "nonCompletableFlag", "line": 696, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=135-158\nread TestNoArgs_WithValid_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=568-591\nread completionFn for detail", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=351-374\nread TestExactArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=94-117\nread GenManHeader for detail", "file": "doc/man_docs.go", "symbol": "GenManHeader", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=38-61\nread AppendActiveHelp for detail", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=788-811\nread sb for detail", "file": "command.go", "symbol": "sb", "line": 788, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=30-53\nread install_deps for detail", "file": "Makefile", "symbol": "install_deps", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=59-82\nread TestProgWithDash for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithDash", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=26-49\nread activeHelpEnvVarSuffix for detail", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=693-716\nread GetSlice for detail", "file": "completions_test.go", "symbol": "GetSlice", "line": 693, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "コマンドラインオプションの処理結果として、解析されたオプション情報(コマンド名、短いフラグ、長いフラグ、ヘルプメッセージ、デフォルト値、型、必須フラグなど)を保持する変数を確認してください。", "query": "cmdOption result", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lang": "ja", "candidates": [{"text": "File: active_help_test.go\nLine 152: output, err = executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"thechild\", \"\")", "file": "active_help_test.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 141: t.Errorf(\"got: %s, want: %s\", got.Error(), os.ErrPermission.Error())", "file": "fish_completions_test.go", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 35: // This function can be called multiple times before and/or after completions are added to", "file": "active_help.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 1: BIN=\"./bin\"", "file": "Makefile", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/md_docs.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1865: t.Error(\"Normalizing flag names should not result in duplicate flags\")", "file": "command_test.go", "symbol": "", "line": 1865, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nLine 86: parent := cmd.Parent()", "file": "doc/md_docs.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 119: }", "file": "args_test.go", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 29: }", "file": "bash_completionsV2.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 150: var result []cmdOption", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nLine 188: # filter the result", "file": "powershell_completions.go", "symbol": "", "line": 188, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/man_examples_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 263: local result", "file": "zsh_completions.go", "symbol": "", "line": 263, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nLine 17: import (", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 39: return append(compArray, fmt.Sprintf(\"%s%s\", activeHelpMarker, activeHelpStr))", "file": "active_help.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 125: list []string", "file": "cobra_test.go", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 40: }", "file": "active_help.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 146: description = cmd.Short", "file": "doc/man_docs.go", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 96: // MaximumNArgs returns an error if there are more than N args.", "file": "args.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1052: // it falls back to the default", "file": "command_test.go", "symbol": "", "line": 1052, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 18: \"strings\"", "file": "doc/util.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 237: }", "file": "args_test.go", "symbol": "", "line": 237, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 92: # this function limits calls to __%[1]s_perform_completion, by caching the result behind $__%[1]s_perform_completion_once_result", "file": "fish_completions.go", "symbol": "", "line": 92, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\nLine 3721: t.Errorf(\"Unexpected result looking for flag completion function\")", "file": "completions_test.go", "symbol": "", "line": 3721, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "コマンドラインオプションの処理結果として、解析されたオプション情報(コマンド名、短いフラグ、長いフラグ、ヘルプメッセージ、デフォルト値、型、必須フラグなど)を保持する変数を確認してください。", "query": "cmdOption result", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lang": "ja", "candidates": [{"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nsibling in doc", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nelsewhere in the tree", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "コマンドラインオプションの処理結果として、解析されたオプション情報(コマンド名、短いフラグ、長いフラグ、ヘルプメッセージ、デフォルト値、型、必須フラグなど)を保持する変数を確認してください。", "query": "cmdOption result", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lang": "ja", "candidates": [{"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> sort", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> github.com/spf13/pflag", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> github.com/spf13/cobra", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> strings", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> path/filepath", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> os", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "コマンドラインオプションの処理結果として、解析されたオプション情報(コマンド名、短いフラグ、長いフラグ、ヘルプメッセージ、デフォルト値、型、必須フラグなど)を保持する変数を確認してください。", "query": "cmdOption result", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lang": "ja", "candidates": [{"text": "Next: read command_notwin.go lines=20-43\nread preExecHookFn for detail", "file": "command_notwin.go", "symbol": "preExecHookFn", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=37-60\nread cmdDoc for detail", "file": "doc/yaml_docs.go", "symbol": "cmdDoc", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=53-76\nread GenYamlTree for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTree", "line": 53, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=398-421\nread OutOrStderr for detail", "file": "command.go", "symbol": "OutOrStderr", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=150-173\nread result for detail", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read flag_groups.go lines=188-211\nread validateExclusiveFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateExclusiveFlagGroups", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=333-356\nread TestExactArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=302-325\nread SetErr for detail", "file": "command.go", "symbol": "SetErr", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=90-113\nread shellCompDirectiveMaxValue for detail", "file": "completions.go", "symbol": "shellCompDirectiveMaxValue", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=217-240\nread BenchmarkGenManToFile for detail", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=60-83\nread GenYamlTreeCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTreeCustom", "line": 60, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=321-344\nread TestExactArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=313-336\nread genPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletion", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=84-107\nread printCmd for detail", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=408-431\nread InOrStdin for detail", "file": "command.go", "symbol": "InOrStdin", "line": 408, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "suche die konstante für das deaktivieren der beschreibungen bei der vervollständigung", "query": "disable completion descriptions", "file": "completions.go", "symbol": "compCmdNoDescFlagDesc", "line": 102, "lang": "de", "candidates": [{"text": "File: completions.go\nLine 102: compCmdNoDescFlagDesc = \"disable completion descriptions\"", "file": "completions.go", "symbol": "compCmdNoDescFlagDesc", "line": 102, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\nLine 2276: t.Errorf(\"expected: %q, got: %q\", expected, output)", "file": "completions_test.go", "symbol": "", "line": 2276, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 98: func BenchmarkGenReSTToFile(b *testing.B) {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 656: }", "file": "bash_completions.go", "symbol": "", "line": 656, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "zsh_completions_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 32: go get -v ./...", "file": "Makefile", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 5: // You may obtain a copy of the License at", "file": "powershell_completions_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 52: // It is recommended to instead use c.RegisterFlagCompletionFunc(...) which allows", "file": "shell_completions.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/util.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 48: // MarkFlagCustom adds the BashCompCustom annotation to the named flag, if it exists.", "file": "shell_completions.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 55: }{", "file": "flag_groups_test.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1070: }", "file": "command_test.go", "symbol": "", "line": 1070, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 28: buf := new(bytes.Buffer)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 15: package cobra", "file": "bash_completionsV2.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 486: }", "file": "args_test.go", "symbol": "", "line": 486, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 881: }", "file": "command.go", "symbol": "", "line": 881, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 246: for _, fName := range strings.Split(flagList, \" \") {", "file": "flag_groups.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "fish_completions_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 74: return cmd.Run()", "file": "bash_completions_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1470: }", "file": "command.go", "symbol": "", "line": 1470, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 8: //", "file": "zsh_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 85: buf := new(bytes.Buffer)", "file": "doc/md_docs_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 24: )", "file": "doc/rest_docs_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 182: format += \"\\n\\t%s\\n\\n\"", "file": "doc/man_docs.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "suche die konstante für das deaktivieren der beschreibungen bei der vervollständigung", "query": "disable completion descriptions", "file": "completions.go", "symbol": "compCmdNoDescFlagDesc", "line": 102, "lang": "de", "candidates": [{"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "suche die konstante für das deaktivieren der beschreibungen bei der vervollständigung", "query": "disable completion descriptions", "file": "completions.go", "symbol": "compCmdNoDescFlagDesc", "line": 102, "lang": "de", "candidates": [{"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "suche die konstante für das deaktivieren der beschreibungen bei der vervollständigung", "query": "disable completion descriptions", "file": "completions.go", "symbol": "compCmdNoDescFlagDesc", "line": 102, "lang": "de", "candidates": [{"text": "Next: read completions_test.go lines=426-449\nread TestValidArgsFuncAndCmdCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAndCmdCompletionInGo", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help_test.go lines=231-254\nread TestActiveHelpForFlag for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpForFlag", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=169-192\nread TestNoDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=308-331\nread SetIn for detail", "file": "command.go", "symbol": "SetIn", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=327-350\nread TestExactArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=95-118\nread checkStringContains for detail", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=181-204\nread TestNoDuplicateArgs_WithValid_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=77-100\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=28-51\nread genPowerShellComp for detail", "file": "powershell_completions.go", "symbol": "genPowerShellComp", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=464-487\nread getUsageTemplateFunc for detail", "file": "command.go", "symbol": "getUsageTemplateFunc", "line": 464, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=520-543\nread Help for detail", "file": "command.go", "symbol": "Help", "line": 520, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=328-351\nread SetFlagErrorFunc for detail", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=174-197\nread rpad for detail", "file": "cobra.go", "symbol": "rpad", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=80-103\nread genZshCompletion for detail", "file": "zsh_completions.go", "symbol": "genZshCompletion", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=102-125\nread compCmdNoDescFlagDesc for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDesc", "line": 102, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "find logic that writes the header and description for manual pages", "query": "man preamble description", "file": "doc/man_docs.go", "symbol": "manPreamble", "line": 143, "lang": "en", "candidates": [{"text": "File: doc/yaml_docs_test.go\nLine 48: buf := new(bytes.Buffer)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 52: func (s byName) Less(i, j int) bool { return s[i].Name() < s[j].Name() }", "file": "doc/util.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 256: if [ -n \"$subdir\" ]; then", "file": "zsh_completions.go", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 3: go 1.15", "file": "go.mod", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 767: hasSubCommands = true", "file": "completions.go", "symbol": "", "line": 767, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 6: github.com/cpuguy83/go-md2man/v2 v2.0.6", "file": "go.mod", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 15: //go:build !windows", "file": "command_notwin.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 39: return append(compArray, fmt.Sprintf(\"%s%s\", activeHelpMarker, activeHelpStr))", "file": "active_help.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 139: return err", "file": "doc/md_docs.go", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 85: buf := new(bytes.Buffer)", "file": "doc/md_docs_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 68: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 18: \"strings\"", "file": "doc/util.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 82: return err", "file": "doc/yaml_docs.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 47: // MarkFlagsOneRequired marks the given flags with annotations so that Cobra errors", "file": "flag_groups.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 143: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 133: set -l keeporder (math (math --scale 0 $directive / $shellCompDirectiveKeepOrder) %% 2)", "file": "fish_completions.go", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 269: output := buf.String()", "file": "bash_completions_test.go", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 13: // limitations under the License.", "file": "doc/yaml_docs.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 114: }", "file": "doc/md_docs.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 143: func manPreamble(buf io.StringWriter, header *GenManHeader, cmd *cobra.Command, dashedName string) {", "file": "doc/man_docs.go", "symbol": "manPreamble", "line": 143, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 114: if got != tt.expected {", "file": "cobra_test.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 18: \"strings\"", "file": "flag_groups_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 12: // See the License for the specific language governing permissions and", "file": "fish_completions.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2153: func TestSetIn(t *testing.T) {", "file": "command_test.go", "symbol": "", "line": 2153, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "find logic that writes the header and description for manual pages", "query": "man preamble description", "file": "doc/man_docs.go", "symbol": "manPreamble", "line": 143, "lang": "en", "candidates": [{"text": "File: doc/man_docs_test.go\nsibling in doc", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "find logic that writes the header and description for manual pages", "query": "man preamble description", "file": "doc/man_docs.go", "symbol": "manPreamble", "line": 143, "lang": "en", "candidates": [{"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> sort", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> os", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> path/filepath", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> strconv", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> io", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> strings", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "find logic that writes the header and description for manual pages", "query": "man preamble description", "file": "doc/man_docs.go", "symbol": "manPreamble", "line": 143, "lang": "en", "candidates": [{"text": "Next: read args.go lines=127-150\nread MatchAll for detail", "file": "args.go", "symbol": "MatchAll", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=38-61\nread GenManTree for detail", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=421-444\nread TestRootTakesNoArgs for detail", "file": "args_test.go", "symbol": "TestRootTakesNoArgs", "line": 421, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=105-128\nread GenMan for detail", "file": "doc/man_docs.go", "symbol": "GenMan", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=980-1003\nread CompDebugln for detail", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2926-2949\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2926, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=36-59\nread GenZshCompletionFileNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFileNoDesc", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=499-522\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 499, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=605-628\nread HelpTemplate for detail", "file": "command.go", "symbol": "HelpTemplate", "line": 605, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=60-83\nread GenYamlTreeCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTreeCustom", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=683-706\nread GenBashCompletion for detail", "file": "bash_completions.go", "symbol": "GenBashCompletion", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=142-165\nread CompletionWithDesc for detail", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=358-381\nread SetHelpTemplate for detail", "file": "command.go", "symbol": "SetHelpTemplate", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2141-2164\nread wg for detail", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=161-184\nread TestOnlyValidArgs_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs_WithInvalidArgs", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=84-107\nread GenManTreeOptions for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeOptions", "line": 84, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completionsV2.go lines=31-54\nread genBashComp for detail", "file": "bash_completionsV2.go", "symbol": "genBashComp", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=149-172\nread TestManPrintFlagsHidesShortDeprecated for detail", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=269-292\nread Context for detail", "file": "command.go", "symbol": "Context", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=143-166\nread manPreamble for detail", "file": "doc/man_docs.go", "symbol": "manPreamble", "line": 143, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=393-416\nread OutOrStdout for detail", "file": "command.go", "symbol": "OutOrStdout", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=94-117\nread GenManHeader for detail", "file": "doc/man_docs.go", "symbol": "GenManHeader", "line": 94, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "vérifier que les noms de sous-commandes ne sont pas complétés lorsqu'un argument est déjà présent", "query": "completion argument subcommand", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lang": "fr", "candidates": [{"text": "File: doc/rest_docs.go\nLine 33: if flags.HasAvailableFlags() {", "file": "doc/rest_docs.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 99: }", "file": "doc/cmd_test.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "powershell_completions_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 277: else", "file": "zsh_completions.go", "symbol": "", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 232: completeCmd := &Command{", "file": "completions.go", "symbol": "", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 157: func TestNoCmdNameCompletionInGo(t *testing.T) {", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Makefile\nLine 28: richgo test -v $(GO_TEST_FLAGS) ./...", "file": "Makefile", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 238: output := buf.String()", "file": "bash_completions_test.go", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 61: checkStringContains(t, output, \"boolone\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 110: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 17: import (", "file": "powershell_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 49: header := opts.Header", "file": "doc/man_docs.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 22: // prioritize the named flag when performing completion,", "file": "shell_completions.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1740: }", "file": "command.go", "symbol": "", "line": 1740, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 194: }", "file": "flag_groups_test.go", "symbol": "", "line": 194, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/man_examples_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 275: # zsh like", "file": "powershell_completions.go", "symbol": "", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 26: func hasSeeAlso(cmd *cobra.Command) bool {", "file": "doc/util.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 22: \"github.com/spf13/cobra/doc\"", "file": "doc/man_examples_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 112: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 2025: fmt.Fprint(w, trimRightSpace(c.InheritedFlags().FlagUsages()))", "file": "command.go", "symbol": "", "line": 2025, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 17: import (", "file": "zsh_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "zsh_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 25: // both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "vérifier que les noms de sous-commandes ne sont pas complétés lorsqu'un argument est déjà présent", "query": "completion argument subcommand", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lang": "fr", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "vérifier que les noms de sous-commandes ne sont pas complétés lorsqu'un argument est déjà présent", "query": "completion argument subcommand", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lang": "fr", "candidates": [{"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "vérifier que les noms de sous-commandes ne sont pas complétés lorsqu'un argument est déjà présent", "query": "completion argument subcommand", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lang": "fr", "candidates": [{"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=91-114\nread AddTemplateFuncs for detail", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=281-304\nread SetArgs for detail", "file": "command.go", "symbol": "SetArgs", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=741-764\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 741, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=149-172\nread TestManPrintFlagsHidesShortDeprecated for detail", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=157-180\nread TestNoCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args.go lines=127-150\nread MatchAll for detail", "file": "args.go", "symbol": "MatchAll", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=45-68\nread Group for detail", "file": "command.go", "symbol": "Group", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=654-677\nread hasNoOptDefVal for detail", "file": "command.go", "symbol": "hasNoOptDefVal", "line": 654, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=520-543\nread Help for detail", "file": "command.go", "symbol": "Help", "line": 520, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=271-294\nread TestMaximumNArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=231-254\nread initCompleteCmd for detail", "file": "completions.go", "symbol": "initCompleteCmd", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=87-110\nread genZshComp for detail", "file": "zsh_completions.go", "symbol": "genZshComp", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=207-230\nread TestArbitraryArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=403-426\nread ErrOrStderr for detail", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "コマンドのエイリアス(別名)を使用した場合に、その配下にあるサブコマンドが正しく実行されない、あるいは引数が正しく渡されない問題があります。エイリアス経由で実行しても、子コマンドの処理が正常に呼び出されるか確認したいです。", "query": "command alias execute", "file": "command_test.go", "symbol": "TestCommandAlias", "line": 274, "lang": "ja", "candidates": [{"text": "File: bash_completions.go\nLine 475: if len(value) > 0 {", "file": "bash_completions.go", "symbol": "", "line": 475, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 2: //", "file": "completions.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 13: // limitations under the License.", "file": "active_help.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "powershell_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/man_examples_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 95: return err", "file": "doc/rest_docs.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 231: // TestDeadcodeElimination checks that a simple program using cobra in its", "file": "cobra_test.go", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 32: Shorthand string `yaml:\",omitempty\"`", "file": "doc/yaml_docs.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 231: // TestDeadcodeElimination checks that a simple program using cobra in its", "file": "cobra_test.go", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 109: expected := strings.Join([]string{", "file": "active_help_test.go", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 38: return nil", "file": "args.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 263: complete -c %[2]s -n '__%[1]s_clear_perform_completion_once_result'", "file": "fish_completions.go", "symbol": "", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 59: }", "file": "flag_groups.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 81: return err", "file": "doc/md_docs.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 43: // limit completions for the named flag to the specified file extensions.", "file": "shell_completions.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 35: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 76: }", "file": "flag_groups.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 74: output := buf.String()", "file": "doc/rest_docs_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 42: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 17: import (", "file": "zsh_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 2: //", "file": "cobra.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 94: func TestGenMdTree(t *testing.T) {", "file": "doc/md_docs_test.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 274: func TestCommandAlias(t *testing.T) {", "file": "command_test.go", "symbol": "TestCommandAlias", "line": 274, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "コマンドのエイリアス(別名)を使用した場合に、その配下にあるサブコマンドが正しく実行されない、あるいは引数が正しく渡されない問題があります。エイリアス経由で実行しても、子コマンドの処理が正常に呼び出されるか確認したいです。", "query": "command alias execute", "file": "command_test.go", "symbol": "TestCommandAlias", "line": 274, "lang": "ja", "candidates": [{"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "コマンドのエイリアス(別名)を使用した場合に、その配下にあるサブコマンドが正しく実行されない、あるいは引数が正しく渡されない問題があります。エイリアス経由で実行しても、子コマンドの処理が正常に呼び出されるか確認したいです。", "query": "command alias execute", "file": "command_test.go", "symbol": "TestCommandAlias", "line": 274, "lang": "ja", "candidates": [{"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "コマンドのエイリアス(別名)を使用した場合に、その配下にあるサブコマンドが正しく実行されない、あるいは引数が正しく渡されない問題があります。エイリアス経由で実行しても、子コマンドの処理が正常に呼び出されるか確認したいです。", "query": "command alias execute", "file": "command_test.go", "symbol": "TestCommandAlias", "line": 274, "lang": "ja", "candidates": [{"text": "Next: read command.go lines=403-426\nread ErrOrStderr for detail", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=135-158\nread TestNoArgs_WithValid_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=235-258\nread CheckErr for detail", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=263-286\nread TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=99-122\nread rangeArgsWithInvalidCount for detail", "file": "args_test.go", "symbol": "rangeArgsWithInvalidCount", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=225-248\nread stringInSlice for detail", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=633-656\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=26-49\nread activeHelpMessage2 for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=274-297\nread TestCommandAlias for detail", "file": "command_test.go", "symbol": "TestCommandAlias", "line": 274, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=80-103\nread genZshCompletion for detail", "file": "zsh_completions.go", "symbol": "genZshCompletion", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=523-546\nread writeLocalNonPersistentFlag for detail", "file": "bash_completions.go", "symbol": "writeLocalNonPersistentFlag", "line": 523, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=144-167\nread validateRequiredFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateRequiredFlagGroups", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "我需要验证当传入的参数数量超过限制时,程序是否能正确识别这种情况。请帮我找到处理该场景的测试用例。", "query": "max args validation", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid", "line": 301, "lang": "zh", "candidates": [{"text": "File: shell_completions.go\nLine 77: func MarkFlagCustom(flags *pflag.FlagSet, name string, f string) error {", "file": "shell_completions.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 84: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 689: return nil, args, lastArg, nil", "file": "completions.go", "symbol": "", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 95: # zsh completion for %-36[1]s -*- shell-script -*-", "file": "zsh_completions.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 24: c := &Command{", "file": "flag_groups_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 15: package cobra", "file": "zsh_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 165: c := &cobra.Command{Use: \"do [OPTIONS] arg1 arg2\"}", "file": "doc/man_docs_test.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 386: }", "file": "command_test.go", "symbol": "", "line": 386, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 23: // Test to see if we have a reason to print See Also information in docs", "file": "doc/util.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 234: # 3) ResultType type of completion result", "file": "powershell_completions.go", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 8: //", "file": "doc/man_docs.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 49: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 28: buf := new(bytes.Buffer)", "file": "doc/md_docs_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 19: \"fmt\"", "file": "bash_completionsV2_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 12: all: fmt test", "file": "Makefile", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2876: t.Fatalf(\"Wrong args\\nExpected: %v\\nGot: %v\", tc.expectedFoundArgs, foundArgs)", "file": "command_test.go", "symbol": "", "line": 2876, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 139: emptyStr := func(s string) string { return \"\" }", "file": "doc/rest_docs.go", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "powershell_completions_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 121: }", "file": "doc/man_docs.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 42: // GetActiveHelpConfig returns the value of the ActiveHelp environment variable", "file": "active_help.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 29: // prioritize the named persistent flag when performing completion,", "file": "shell_completions.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 301: func TestMaximumNArgs_WithMoreArgs_WithValid(t *testing.T) {", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid", "line": 301, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nLine 213: }", "file": "powershell_completions.go", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 61: // { } delimits a set of mutually exclusive arguments when one of the arguments is required. If the arguments are", "file": "command.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "我需要验证当传入的参数数量超过限制时,程序是否能正确识别这种情况。请帮我找到处理该场景的测试用例。", "query": "max args validation", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid", "line": 301, "lang": "zh", "candidates": [{"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\ndefines TestMaximumNArgs_WithMoreArgs_WithValid", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "我需要验证当传入的参数数量超过限制时,程序是否能正确识别这种情况。请帮我找到处理该场景的测试用例。", "query": "max args validation", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid", "line": 301, "lang": "zh", "candidates": [{"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "我需要验证当传入的参数数量超过限制时,程序是否能正确识别这种情况。请帮我找到处理该场景的测试用例。", "query": "max args validation", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid", "line": 301, "lang": "zh", "candidates": [{"text": "Next: read completions.go lines=1018-1041\nread getEnvConfig for detail", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=505-528\nread getHelpTemplateFunc for detail", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=289-312\nread SetOutput for detail", "file": "command.go", "symbol": "SetOutput", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=301-324\nread TestMaximumNArgs_WithMoreArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid", "line": 301, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=105-128\nread GenMan for detail", "file": "doc/man_docs.go", "symbol": "GenMan", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=1006-1029\nread configEnvVar for detail", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2079-2102\nread TestFlagCompletionForPersistentFlagsCalledFromSubCmd for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionForPersistentFlagsCalledFromSubCmd", "line": 2079, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1560-1583\nread TestNoValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestNoValidArgsFuncInBashScript", "line": 1560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=149-172\nread TestManPrintFlagsHidesShortDeprecated for detail", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=616-639\nread TestFlagBeforeCommand for detail", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=170-193\nread RegisterFlagCompletionFunc for detail", "file": "completions.go", "symbol": "RegisterFlagCompletionFunc", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=209-232\nread sortedKeys for detail", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=120-143\nread TestFailGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestFailGenFishCompletionFile", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=537-560\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=279-302\nread TestBashCompletionNoActiveHelp for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionNoActiveHelp", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=819-842\nread childCmdArgs for detail", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=741-764\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 741, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=91-114\nread AddTemplateFuncs for detail", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs_test.go lines=44-67\nread TestGenYamlNoTag for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlNoTag", "line": 44, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "como eu crio um item de autocompletar que inclua uma descrição usando tabulação?", "query": "completion tab description", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lang": "pt", "candidates": [{"text": "File: zsh_completions_test.go\nLine 19: \"fmt\"", "file": "zsh_completions_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 77: $ShellCompDirectiveNoFileComp=%[6]d", "file": "powershell_completions.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 26: richtest: install_deps", "file": "Makefile", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "bash_completionsV2_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 107: # If the last parameter is complete (there is a space following it)", "file": "powershell_completions.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 276: }", "file": "active_help_test.go", "symbol": "", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 89: Run: emptyRun,", "file": "bash_completions_test.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 13: // limitations under the License.", "file": "command_notwin.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 29: if err := GenReST(echoCmd, buf); err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 183: check(t, output, `COMPREPLY=( \"hello\" )`)", "file": "bash_completions_test.go", "symbol": "", "line": 183, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 270: else", "file": "zsh_completions.go", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 237: seealso := fmt.Sprintf(\"**%s-%s(%s)**\", dashCommandName, c.Name(), header.Section)", "file": "doc/man_docs.go", "symbol": "", "line": 237, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 51: // subcmds, `sub` and `sub-third`, and `sub` has a subcommand called `third`", "file": "doc/yaml_docs.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3009: // here we are mixing string, [Completion] and [CompletionWithDesc]", "file": "completions_test.go", "symbol": "", "line": 3009, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\nLine 163: if _, err := io.WriteString(f, filePrepender(filename)); err != nil {", "file": "doc/rest_docs.go", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 142: func CompletionWithDesc(choice string, description string) Completion {", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args_test.go\nLine 468: childCmd := &Command{Use: \"child\", Args: ArbitraryArgs, Run: emptyRun}", "file": "args_test.go", "symbol": "", "line": 468, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 76: // to register a Go function which will work across all shells.", "file": "shell_completions.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1287: completions = append(completions, CompletionWithDesc(subCmd.Name(), subCmd.Short))", "file": "command.go", "symbol": "", "line": 1287, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nLine 2: //", "file": "shell_completions.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 28: richgo test -v $(GO_TEST_FLAGS) ./...", "file": "Makefile", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 58: func activeHelpEnvVar(name string) string {", "file": "active_help.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 107: # Error code. No completion.", "file": "bash_completionsV2.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 114: if f == nil {", "file": "flag_groups.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "como eu crio um item de autocompletar que inclua uma descrição usando tabulação?", "query": "completion tab description", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lang": "pt", "candidates": [{"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "como eu crio um item de autocompletar que inclua uma descrição usando tabulação?", "query": "completion tab description", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lang": "pt", "candidates": [{"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "como eu crio um item de autocompletar que inclua uma descrição usando tabulação?", "query": "completion tab description", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lang": "pt", "candidates": [{"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1821-1844\nread TestFlagCompletionWithNotInterspersedArgs for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWithNotInterspersedArgs", "line": 1821, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=188-211\nread validateExclusiveFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateExclusiveFlagGroups", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=142-165\nread CompletionWithDesc for detail", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=44-67\nread TestGenMdDocWithNoLongOrSynopsis for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDocWithNoLongOrSynopsis", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=52-75\nread GenMarkdown for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdown", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=289-312\nread SetOutput for detail", "file": "command.go", "symbol": "SetOutput", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=717-740\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 717, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=328-351\nread SetFlagErrorFunc for detail", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "帮我找一下测试命令参数验证失败时返回错误指令的那个单元测试。", "query": "Test valid args error", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lang": "zh", "candidates": [{"text": "File: command_win.go\nLine 20: import (", "file": "command_win.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 75: }", "file": "args_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1357: func TestValidArgsFuncSingleCmdInvalidArg(t *testing.T) {", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 62: expected: 0,", "file": "cobra_test.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 2: //", "file": "zsh_completions_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 20: import (", "file": "command_win.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 41: func forceMultiLine(s string) string {", "file": "doc/util.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 2: //", "file": "doc/rest_docs_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 624: if cmd.ValidArgsFunction != nil {", "file": "bash_completions.go", "symbol": "", "line": 624, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 147: flagnameAndStatus := data[flagList]", "file": "flag_groups.go", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 289: # Perform file completion", "file": "zsh_completions.go", "symbol": "", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 33: flags := cmd.NonInheritedFlags()", "file": "doc/md_docs.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 92: }", "file": "shell_completions.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 8: //", "file": "command_notwin.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 174: func rpad(s string, padding int) string {", "file": "cobra.go", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 46: // is set to \"0\".", "file": "active_help.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/cmd_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_notwin.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 21: )", "file": "powershell_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 251: // linked with deadcode elimination enabled.", "file": "cobra_test.go", "symbol": "", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 39: checkStringContains(t, output, rootCmd.Short)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 71: checkStringContains(t, output, echoCmd.Long)", "file": "doc/md_docs_test.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 79: t.Fatal(err)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "帮我找一下测试命令参数验证失败时返回错误指令的那个单元测试。", "query": "Test valid args error", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lang": "zh", "candidates": [{"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "帮我找一下测试命令参数验证失败时返回错误指令的那个单元测试。", "query": "Test valid args error", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lang": "zh", "candidates": [{"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "帮我找一下测试命令参数验证失败时返回错误指令的那个单元测试。", "query": "Test valid args error", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lang": "zh", "candidates": [{"text": "Next: read args_test.go lines=371-394\nread TestRangeArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=84-107\nread GenManTreeOptions for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeOptions", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_notwin.go lines=20-43\nread preExecHookFn for detail", "file": "command_notwin.go", "symbol": "preExecHookFn", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=302-325\nread SetErr for detail", "file": "command.go", "symbol": "SetErr", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=30-53\nread printOptionsReST for detail", "file": "doc/rest_docs.go", "symbol": "printOptionsReST", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=31-54\nread GenZshCompletion for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletion", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=150-173\nread result for detail", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=26-49\nread activeHelpEnvVarSuffix for detail", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=932-955\nread findFlag for detail", "file": "completions.go", "symbol": "findFlag", "line": 932, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=275-298\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1357-1380\nread TestValidArgsFuncSingleCmdInvalidArg for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=376-399\nread SetErrPrefix for detail", "file": "command.go", "symbol": "SetErrPrefix", "line": 376, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=49-72\nread defaultTraverseRunHooks for detail", "file": "cobra.go", "symbol": "defaultTraverseRunHooks", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=741-764\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 741, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=643-666\nread TestStripFlags for detail", "file": "command_test.go", "symbol": "TestStripFlags", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read powershell_completions_test.go lines=23-46\nread TestPwshCompletionNoActiveHelp for detail", "file": "powershell_completions_test.go", "symbol": "TestPwshCompletionNoActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "how is the command execution tested when no arguments are provided?", "query": "test no arguments", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lang": "en", "candidates": [{"text": "File: doc/man_examples_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/man_examples_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 270: `, nameForVar, name, compCmd,", "file": "fish_completions.go", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 216: }", "file": "doc/man_docs.go", "symbol": "", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 20: var preExecHookFn func(*Command)", "file": "command_notwin.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 192: var set []string", "file": "flag_groups.go", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 35: }", "file": "doc/util.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "active_help.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 291: return c.GenFishCompletion(outFile, includeDesc)", "file": "fish_completions.go", "symbol": "", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 74: checkStringOmits(t, output, \"rootflag\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 57: // root command in upper case, with all non-ASCII-alphanumeric characters replaced by `_`.", "file": "active_help.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2102: }()", "file": "command_test.go", "symbol": "", "line": 2102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 20: \"testing\"", "file": "powershell_completions_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "flag_groups_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 100: if err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 37: function __%[1]s_debug", "file": "fish_completions.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 36: c.Println(\"Press return to continue...\")", "file": "command_win.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 123: func TestNoArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nLine 64: }", "file": "args.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 6: //", "file": "command_notwin.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2615: t.Errorf(\"Expected value: \\n %v\\nGot:\\n %v\\n\", val, got)", "file": "command_test.go", "symbol": "", "line": 2615, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 103: }", "file": "args.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 2: //", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "how is the command execution tested when no arguments are provided?", "query": "test no arguments", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lang": "en", "candidates": [{"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestNoArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "how is the command execution tested when no arguments are provided?", "query": "test no arguments", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lang": "en", "candidates": [{"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "how is the command execution tested when no arguments are provided?", "query": "test no arguments", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lang": "en", "candidates": [{"text": "Next: read completions.go lines=326-349\nread finalArgs for detail", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2323-2346\nread TestArgAliasesCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestArgAliasesCompletionInGo", "line": 2323, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1018-1041\nread getEnvConfig for detail", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=111-134\nread BenchmarkGenMarkdownToFile for detail", "file": "doc/md_docs_test.go", "symbol": "BenchmarkGenMarkdownToFile", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=123-146\nread TestNoArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2141-2164\nread wg for detail", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=325-348\nread finalCmd for detail", "file": "completions.go", "symbol": "finalCmd", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=484-507\nread HelpFunc for detail", "file": "command.go", "symbol": "HelpFunc", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=338-361\nread SetHelpCommand for detail", "file": "command.go", "symbol": "SetHelpCommand", "line": 338, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=629-652\nread writeCmdAliases for detail", "file": "bash_completions.go", "symbol": "writeCmdAliases", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=654-677\nread hasNoOptDefVal for detail", "file": "command.go", "symbol": "hasNoOptDefVal", "line": 654, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Wie wird das Testverzeichnis 'test_deadcode' in den Tests definiert?", "query": "test_deadcode dirname", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lang": "de", "candidates": [{"text": "File: active_help.go\nLine 32: // Such strings will be processed by the completion script and will be shown as ActiveHelp", "file": "active_help.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 264: _arguments '*:dirname:_files -/'\" ${flagPrefix}\"", "file": "zsh_completions.go", "symbol": "", "line": 264, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nLine 70: basename := strings.ReplaceAll(cmd.CommandPath(), \" \", \"_\") + \".yaml\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 41: }", "file": "command_win.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 97: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 137: }", "file": "doc/md_docs.go", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 29: buf := new(bytes.Buffer)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 36: assertNoErr(t, rootCmd.GenFishCompletion(buf, false))", "file": "fish_completions_test.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 122: }", "file": "doc/rest_docs.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 22: type PositionalArgs func(cmd *Command, args []string) error", "file": "args.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 15: //go:build !windows", "file": "command_notwin.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 63: continue", "file": "doc/yaml_docs.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 82: }", "file": "doc/md_docs.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 64: }", "file": "args.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "powershell_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 55: // activeHelpEnvVar returns the name of the program-specific ActiveHelp environment", "file": "active_help.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 253: dirname = \"test_deadcode\"", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_notwin.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "command_notwin.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 222: return d[len(s)][len(t)]", "file": "cobra.go", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 31: // AppendActiveHelp adds the specified string to the specified array to be used as ActiveHelp.", "file": "active_help.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 35: completions = append(completions, comp)", "file": "completions_test.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 12: // See the License for the specific language governing permissions and", "file": "doc/rest_docs.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 2: //", "file": "args.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 115: flags = cmd.InheritedFlags()", "file": "doc/yaml_docs.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Wie wird das Testverzeichnis 'test_deadcode' in den Tests definiert?", "query": "test_deadcode dirname", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lang": "de", "candidates": [{"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Wie wird das Testverzeichnis 'test_deadcode' in den Tests definiert?", "query": "test_deadcode dirname", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lang": "de", "candidates": [{"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> path/filepath", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra_test.go -> testing", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> strings", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> text/template", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> runtime", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Wie wird das Testverzeichnis 'test_deadcode' in den Tests definiert?", "query": "test_deadcode dirname", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lang": "de", "candidates": [{"text": "Next: read completions_test.go lines=2902-2925\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2902, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=121-144\nread TestStringInSlice for detail", "file": "cobra_test.go", "symbol": "TestStringInSlice", "line": 121, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=43-66\nread expected for detail", "file": "cobra_test.go", "symbol": "expected", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2044-2067\nread TestFlagCompletionWorksRootCommandAddedAfterFlags for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWorksRootCommandAddedAfterFlags", "line": 2044, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=31-54\nread MarkPersistentFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=493-516\nread TestFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGo", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=27-50\nread assertNoErr for detail", "file": "cobra_test.go", "symbol": "assertNoErr", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=683-706\nread GenBashCompletion for detail", "file": "bash_completions.go", "symbol": "GenBashCompletion", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=253-276\nread dirname for detail", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra_test.go lines=33-56\nread TestAddTemplateFunctions for detail", "file": "cobra_test.go", "symbol": "TestAddTemplateFunctions", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=412-435\nread getOut for detail", "file": "command.go", "symbol": "getOut", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=49-72\nread TestLevenshteinDistance for detail", "file": "cobra_test.go", "symbol": "TestLevenshteinDistance", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=52-75\nread Error for detail", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=266-289\nread TestConfigActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestConfigActiveHelp", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1544-1567\nread TestValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncInBashScript", "line": 1544, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2451-2474\nread removeCompCmd for detail", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=523-546\nread writeLocalNonPersistentFlag for detail", "file": "bash_completions.go", "symbol": "writeLocalNonPersistentFlag", "line": 523, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=466-489\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=449-472\nread TestChildTakesNoArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesNoArgs", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=141-164\nread TestNoArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "reStructuredText形式の出力を生成する関数を探して", "query": "gen rest", "file": "doc/rest_docs.go", "symbol": "GenReST", "line": 57, "lang": "ja", "candidates": [{"text": "File: cobra.go\nLine 16: // inspired by go, go-Commander, gh and subcommand", "file": "cobra.go", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 35: // correctly if your command names have `-` in them. If you have `cmd` with two", "file": "doc/man_docs.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 109: return", "file": "bash_completionsV2.go", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 78: return flags.SetAnnotation(name, BashCompCustom, []string{f})", "file": "shell_completions.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 167: Description = \"$Description\"", "file": "powershell_completions.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 128: flagGroupsExclusive: []string{\"f g\"},", "file": "flag_groups_test.go", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 23: \"strings\"", "file": "bash_completions.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 61: func (c *Command) MarkPersistentFlagFilename(name string, extensions ...string) error {", "file": "shell_completions.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 302: _%[1]s", "file": "zsh_completions.go", "symbol": "", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 152: flags.VisitAll(func(flag *pflag.Flag) {", "file": "doc/yaml_docs.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 228: }", "file": "flag_groups.go", "symbol": "", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 52: // ShellCompDirectiveFilterFileExt.", "file": "zsh_completions.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 8: //", "file": "powershell_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 292: # We must return the result of this command, so it must be the", "file": "zsh_completions.go", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 152: return err", "file": "doc/md_docs.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 29: if err := GenReST(echoCmd, buf); err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nLine 64: for line in $results[-1..1]", "file": "fish_completions.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 236: expectSuccess(output, err, t)", "file": "args_test.go", "symbol": "", "line": 236, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 30: // check that active help is being disabled", "file": "powershell_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 4020: rootCmd := &Command{Use: \"root\", Run: emptyRun}", "file": "completions_test.go", "symbol": "", "line": 4020, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 35: // This function can be called multiple times before and/or after completions are added to", "file": "active_help.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 57: func GenReST(cmd *cobra.Command, w io.Writer) error {", "file": "doc/rest_docs.go", "symbol": "GenReST", "line": 57, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 85: {", "file": "cobra_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "reStructuredText形式の出力を生成する関数を探して", "query": "gen rest", "file": "doc/rest_docs.go", "symbol": "GenReST", "line": 57, "lang": "ja", "candidates": [{"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nelsewhere in the tree", "file": "Makefile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "reStructuredText形式の出力を生成する関数を探して", "query": "gen rest", "file": "doc/rest_docs.go", "symbol": "GenReST", "line": 57, "lang": "ja", "candidates": [{"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> time", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> io", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> os", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> path/filepath", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/rest_docs.go -> sort", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> strings", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "reStructuredText形式の出力を生成する関数を探して", "query": "gen rest", "file": "doc/rest_docs.go", "symbol": "GenReST", "line": 57, "lang": "ja", "candidates": [{"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=187-210\nread manPrintOptions for detail", "file": "doc/man_docs.go", "symbol": "manPrintOptions", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread right for detail", "file": "cobra.go", "symbol": "right", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=138-161\nread GenReSTTree for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTree", "line": 138, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=27-50\nread assertNoErr for detail", "file": "cobra_test.go", "symbol": "assertNoErr", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=122-145\nread comps for detail", "file": "active_help_test.go", "symbol": "comps", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1544-1567\nread TestValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncInBashScript", "line": 1544, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=30-53\nread printOptionsReST for detail", "file": "doc/rest_docs.go", "symbol": "printOptionsReST", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=151-174\nread NoFileCompletions for detail", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=57-80\nread GenReST for detail", "file": "doc/rest_docs.go", "symbol": "GenReST", "line": 57, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=269-292\nread Context for detail", "file": "command.go", "symbol": "Context", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=422-445\nread getErr for detail", "file": "command.go", "symbol": "getErr", "line": 422, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=588-611\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 588, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=66-89\nread ShellCompDirectiveNoFileComp for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoFileComp", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=301-324\nread TestMaximumNArgs_WithMoreArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid", "line": 301, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=307-330\nread TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2162-2185\nread output for detail", "file": "completions_test.go", "symbol": "output", "line": 2162, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=62-85\nread GenReSTCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTCustom", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2787-2810\nread TestCompleteWithDisableFlagParsing for detail", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "설정값들을 검증하는 로직을 구현 중인데, 특정 플래그 세트에 전달된 이름들이 모두 존재하는지 확인하는 함수가 어디에 있는지 알려줘. 루프를 돌면서 하나라도 없으면 false를 반환하는 방식이면 좋겠어.", "query": "check all flags", "file": "flag_groups.go", "symbol": "hasAllFlags", "line": 111, "lang": "ko", "candidates": [{"text": "File: doc/util.go\nLine 21: )", "file": "doc/util.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 111: func hasAllFlags(fs *flag.FlagSet, flagnames ...string) bool {", "file": "flag_groups.go", "symbol": "hasAllFlags", "line": 111, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions.go\nLine 675: if strings.HasPrefix(lastArg[:index], \"--\") {", "file": "completions.go", "symbol": "", "line": 675, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 78: buf.WriteString(strings.Repeat(\"-\", len(name)) + \"\\n\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "powershell_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 412: # If there is enough space for any description text,", "file": "bash_completionsV2.go", "symbol": "", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 5: // You may obtain a copy of the License at", "file": "command_notwin.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 21: \"fmt\"", "file": "command_win.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 128: unixEpoch, err := strconv.ParseInt(epoch, 10, 64)", "file": "doc/man_docs.go", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 15: package doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 48: activeHelpCfg := os.Getenv(activeHelpGlobalEnvVar)", "file": "active_help.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 23: activeHelpMarker = \"_activeHelp_ \"", "file": "active_help.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 28: return true", "file": "doc/util.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 34: cobra.CheckErr(doc.GenManTree(cmd, header, \"/tmp\"))", "file": "doc/man_examples_test.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 88: parentPath := echoCmd.Parent().CommandPath()", "file": "doc/man_docs_test.go", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 251: }", "file": "powershell_completions.go", "symbol": "", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "zsh_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3632: for _, tc := range testcases {", "file": "completions_test.go", "symbol": "", "line": 3632, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 27: )", "file": "active_help_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 2: //", "file": "command_win.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 42: // MarkFlagFilename instructs the various shell completion implementations to", "file": "shell_completions.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "powershell_completions_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 164: func TestGenManTree(t *testing.T) {", "file": "doc/man_docs_test.go", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 177: if test -z \"$directive\"", "file": "fish_completions.go", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "설정값들을 검증하는 로직을 구현 중인데, 특정 플래그 세트에 전달된 이름들이 모두 존재하는지 확인하는 함수가 어디에 있는지 알려줘. 루프를 돌면서 하나라도 없으면 false를 반환하는 방식이면 좋겠어.", "query": "check all flags", "file": "flag_groups.go", "symbol": "hasAllFlags", "line": 111, "lang": "ko", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "설정값들을 검증하는 로직을 구현 중인데, 특정 플래그 세트에 전달된 이름들이 모두 존재하는지 확인하는 함수가 어디에 있는지 알려줘. 루프를 돌면서 하나라도 없으면 false를 반환하는 방식이면 좋겠어.", "query": "check all flags", "file": "flag_groups.go", "symbol": "hasAllFlags", "line": 111, "lang": "ko", "candidates": [{"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> github.com/spf13/pflag", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> strings", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "설정값들을 검증하는 로직을 구현 중인데, 특정 플래그 세트에 전달된 이름들이 모두 존재하는지 확인하는 함수가 어디에 있는지 알려줘. 루프를 돌면서 하나라도 없으면 false를 반환하는 방식이면 좋겠어.", "query": "check all flags", "file": "flag_groups.go", "symbol": "hasAllFlags", "line": 111, "lang": "ko", "candidates": [{"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=114-137\nread child1CmdArgs for detail", "file": "command_test.go", "symbol": "child1CmdArgs", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=202-225\nread genMan for detail", "file": "doc/man_docs.go", "symbol": "genMan", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=245-268\nread TestBashCompletionDeprecatedFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionDeprecatedFlag", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=164-187\nread TestGenManTree for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManTree", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=58-81\nread TestGenMdNoHiddenParents for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2850-2873\nread TestCompleteWithRootAndLegacyArgs for detail", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=111-134\nread hasAllFlags for detail", "file": "flag_groups.go", "symbol": "hasAllFlags", "line": 111, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=186-209\nread GetFlagCompletionFunc for detail", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=175-198\nread TestNoDuplicateArgs_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithDuplicateArgs", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=980-1003\nread CompDebugln for detail", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=36-59\nread GenZshCompletionFileNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFileNoDesc", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=24-47\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=447-470\nread writeCommands for detail", "file": "bash_completions.go", "symbol": "writeCommands", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=320-343\nread genPowerShellCompletionFile for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletionFile", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=177-200\nread TestExecuteContext for detail", "file": "command_test.go", "symbol": "TestExecuteContext", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "¿Donde se define la clave de anotación para las opciones mutuamente excluyentes en cobra?", "query": "cobra annotation mutually exclusive", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lang": "es", "candidates": [{"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 38: return nil", "file": "args.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 93: }", "file": "doc/cmd_test.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 6: //", "file": "doc/md_docs.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 21: \"github.com/spf13/cobra\"", "file": "doc/man_examples_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 547: output, err = executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"--f\")", "file": "completions_test.go", "symbol": "", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 55: continue", "file": "doc/man_docs.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 33: }", "file": "powershell_completions_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "doc/util.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 28: buf := new(bytes.Buffer)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 108: desc: \"Persistent flags utilize required and exclusive groups and can fail required groups\",", "file": "flag_groups_test.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 169: }", "file": "doc/man_docs.go", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 32: BashCompOneRequiredFlag = \"cobra_annotation_bash_completion_one_required_flag\"", "file": "bash_completions.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 13: // limitations under the License.", "file": "active_help.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 101: }", "file": "cobra.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "powershell_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 91: cmd.VisitParents(func(c *cobra.Command) {", "file": "doc/md_docs.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 151: case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:", "file": "cobra.go", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 34: cobra.CheckErr(doc.GenManTree(cmd, header, \"/tmp\"))", "file": "doc/man_examples_test.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 31: if MousetrapHelpText != \"\" && mousetrap.StartedByExplorer() {", "file": "command_win.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 41: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 28: mutuallyExclusiveAnnotation = \"cobra_annotation_mutually_exclusive\"", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups_test.go\nLine 133: flagGroupsExclusive: []string{\"f g\"},", "file": "flag_groups_test.go", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 574: // localNonPersistentFlags are used to stop the completion of subcommands when one is set", "file": "bash_completions.go", "symbol": "", "line": 574, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "¿Donde se define la clave de anotación para las opciones mutuamente excluyentes en cobra?", "query": "cobra annotation mutually exclusive", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lang": "es", "candidates": [{"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "¿Donde se define la clave de anotación para las opciones mutuamente excluyentes en cobra?", "query": "cobra annotation mutually exclusive", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lang": "es", "candidates": [{"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> github.com/spf13/pflag", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> strings", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "¿Donde se define la clave de anotación para las opciones mutuamente excluyentes en cobra?", "query": "cobra annotation mutually exclusive", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lang": "es", "candidates": [{"text": "Next: read completions.go lines=632-655\nread completeRequireFlags for detail", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=65-88\nread MarkFlagsMutuallyExclusive for detail", "file": "flag_groups.go", "symbol": "MarkFlagsMutuallyExclusive", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2280-2303\nread TestValidArgsNotValidArgsFunc for detail", "file": "completions_test.go", "symbol": "TestValidArgsNotValidArgsFunc", "line": 2280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/man_docs_test.go lines=127-150\nread TestGenManSeeAlso for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=192-215\nread ld for detail", "file": "cobra.go", "symbol": "ld", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=142-165\nread CompletionWithDesc for detail", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=276-299\nread GenFishCompletion for detail", "file": "fish_completions.go", "symbol": "GenFishCompletion", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1575-1598\nread TestCompleteCmdInBashScript for detail", "file": "completions_test.go", "symbol": "TestCompleteCmdInBashScript", "line": 1575, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=520-543\nread Help for detail", "file": "command.go", "symbol": "Help", "line": 520, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2123-2146\nread maxFlags for detail", "file": "completions_test.go", "symbol": "maxFlags", "line": 2123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=819-842\nread childCmdArgs for detail", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=311-334\nread SliceValue for detail", "file": "completions.go", "symbol": "SliceValue", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=93-116\nread GenYamlCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlCustom", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=83-106\nread MarkFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=526-549\nread UsageString for detail", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Hay un problema con la forma en que se pueden sobrescribir los argumentos de entrada para las órdenes durante las pruebas unitarias.", "query": "set command arguments", "file": "command.go", "symbol": "SetArgs", "line": 281, "lang": "es", "candidates": [{"text": "File: args_test.go\nLine 518: if err == nil && tc.fail {", "file": "args_test.go", "symbol": "", "line": 518, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 6: //", "file": "zsh_completions_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 13: // limitations under the License.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3851: expectedLine string", "file": "completions_test.go", "symbol": "", "line": 3851, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 155: return err", "file": "doc/md_docs.go", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 44: // Each test case uses a unique command from the function above.", "file": "flag_groups_test.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 124: left, _ = strconv.ParseInt(av.String(), 10, 64)", "file": "cobra.go", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 41: root.SetArgs(args)", "file": "command_test.go", "symbol": "", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nLine 94: type GenManHeader struct {", "file": "doc/man_docs.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 281: func (c *Command) SetArgs(a []string) {", "file": "command.go", "symbol": "SetArgs", "line": 281, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\nLine 4091: // We do NOT use SetArgs so the code falls through to os.Args[1:].", "file": "completions_test.go", "symbol": "", "line": 4091, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nLine 37: Run: func(cmd *Command, args []string) {", "file": "flag_groups_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 13: // limitations under the License.", "file": "command_notwin.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1124: }", "file": "command_test.go", "symbol": "", "line": 1124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 94: processFlagForGroupAnnotation(flags, pflag, requiredAsGroupAnnotation, groupStatus)", "file": "flag_groups.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 135: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 115: flags = cmd.InheritedFlags()", "file": "doc/yaml_docs.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 84: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "zsh_completions.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 99: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 79: local shellCompDirectiveError=%[3]d", "file": "bash_completions.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 33: if !includeDesc {", "file": "bash_completionsV2.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 282: buf := new(bytes.Buffer)", "file": "bash_completions_test.go", "symbol": "", "line": 282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 185: c.SetArgs(tc.args)", "file": "flag_groups_test.go", "symbol": "", "line": 185, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Hay un problema con la forma en que se pueden sobrescribir los argumentos de entrada para las órdenes durante las pruebas unitarias.", "query": "set command arguments", "file": "command.go", "symbol": "SetArgs", "line": 281, "lang": "es", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Hay un problema con la forma en que se pueden sobrescribir los argumentos de entrada para las órdenes durante las pruebas unitarias.", "query": "set command arguments", "file": "command.go", "symbol": "SetArgs", "line": 281, "lang": "es", "candidates": [{"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Hay un problema con la forma en que se pueden sobrescribir los argumentos de entrada para las órdenes durante las pruebas unitarias.", "query": "set command arguments", "file": "command.go", "symbol": "SetArgs", "line": 281, "lang": "es", "candidates": [{"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1591-1614\nread TestCompleteNoDesCmdInZshScript for detail", "file": "completions_test.go", "symbol": "TestCompleteNoDesCmdInZshScript", "line": 1591, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=188-211\nread validateExclusiveFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateExclusiveFlagGroups", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=42-65\nread TestCompleteCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteCmdInFishScript", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=111-134\nread BenchmarkGenMarkdownToFile for detail", "file": "doc/md_docs_test.go", "symbol": "BenchmarkGenMarkdownToFile", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2929-2952\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2929, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=26-49\nread TestGenRSTDoc for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=281-304\nread SetArgs for detail", "file": "command.go", "symbol": "SetArgs", "line": 281, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completionsV2.go lines=31-54\nread genBashComp for detail", "file": "bash_completionsV2.go", "symbol": "genBashComp", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2916-2939\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2916, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2_test.go lines=23-46\nread TestBashCompletionV2WithActiveHelp for detail", "file": "bash_completionsV2_test.go", "symbol": "TestBashCompletionV2WithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=55-78\nread MarkZshCompPositionalArgumentFile for detail", "file": "zsh_completions.go", "symbol": "MarkZshCompPositionalArgumentFile", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=48-71\nread defaultCaseInsensitive for detail", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=173-196\nread indentString for detail", "file": "doc/rest_docs.go", "symbol": "indentString", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "我正在处理 Windows 平台的启动流程。能不能帮我找一下那个在命令执行前,如果检测到是从资源管理器启动,就会显示帮助信息并暂停等待的钩子逻辑?", "query": "Explorer help text", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lang": "zh", "candidates": [{"text": "File: bash_completionsV2_test.go\nLine 27: assertNoErr(t, c.GenBashCompletionV2(buf, true))", "file": "bash_completionsV2_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 669: // When doing completion of a flag name, as soon as an argument starts with", "file": "completions.go", "symbol": "", "line": 669, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 159: if test -z \"$__%[1]s_perform_completion_once_result\"", "file": "fish_completions.go", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 66: return err", "file": "doc/yaml_docs.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 42: func TestCompleteCmdInFishScript(t *testing.T) {", "file": "fish_completions_test.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 660: // This is important for commands which have requested to do their own flag completion.", "file": "completions.go", "symbol": "", "line": 660, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 19: $(info ******************** running lint tools ********************)", "file": "Makefile", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/util.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 2: //", "file": "powershell_completions_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 22: \"path/filepath\"", "file": "fish_completions_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 29: )", "file": "active_help.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 24: \"strings\"", "file": "doc/md_docs.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 30: func preExecHook(c *Command) {", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nLine 249: if _, err := executeCommand(rootCmd, \"\"); err != nil {", "file": "command_test.go", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 170: }", "file": "doc/rest_docs.go", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 120: for i := 0; i < b.N; i++ {", "file": "doc/md_docs_test.go", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 5: // You may obtain a copy of the License at", "file": "command_notwin.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 262: c := &Command{Use: \"c\", Run: emptyRun, TraverseChildren: true}", "file": "bash_completions_test.go", "symbol": "", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1439: if output != expected {", "file": "completions_test.go", "symbol": "", "line": 1439, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 141: t.Errorf(\"got: %s, want: %s\", got.Error(), os.ErrPermission.Error())", "file": "fish_completions_test.go", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 6: //", "file": "doc/cmd_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 8: //", "file": "doc/cmd_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 8: //", "file": "doc/rest_docs_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 6: //", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "我正在处理 Windows 平台的启动流程。能不能帮我找一下那个在命令执行前,如果检测到是从资源管理器启动,就会显示帮助信息并暂停等待的钩子逻辑?", "query": "Explorer help text", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lang": "zh", "candidates": [{"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\ndefines preExecHook", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "我正在处理 Windows 平台的启动流程。能不能帮我找一下那个在命令执行前,如果检测到是从资源管理器启动,就会显示帮助信息并暂停等待的钩子逻辑?", "query": "Explorer help text", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lang": "zh", "candidates": [{"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_win.go -> time", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> github.com/inconshreveable/mousetrap", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "我正在处理 Windows 平台的启动流程。能不能帮我找一下那个在命令执行前,如果检测到是从资源管理器启动,就会显示帮助信息并暂停等待的钩子逻辑?", "query": "Explorer help text", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lang": "zh", "candidates": [{"text": "Next: read bash_completions.go lines=652-675\nread gen for detail", "file": "bash_completions.go", "symbol": "gen", "line": 652, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=447-470\nread writeCommands for detail", "file": "bash_completions.go", "symbol": "writeCommands", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=377-400\nread TestRangeArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=492-515\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1006-1029\nread configEnvVar for detail", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=318-341\nread SetUsageTemplate for detail", "file": "command.go", "symbol": "SetUsageTemplate", "line": 318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_notwin.go lines=20-43\nread preExecHookFn for detail", "file": "command_notwin.go", "symbol": "preExecHookFn", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=52-75\nread Error for detail", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=62-85\nread GenReSTCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTCustom", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=66-89\nread TestGenRSTNoTag for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoTag", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=333-356\nread TestExactArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=84-107\nread TestActiveHelpWithComps for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpWithComps", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=333-356\nread SetHelpFunc for detail", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=141-164\nread TestNoArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=28-51\nread preExecHookFn for detail", "file": "command_win.go", "symbol": "preExecHookFn", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=207-230\nread TestArbitraryArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "list les tâches make pour formater lint tester installer et nettoyer", "query": "make tasks", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lang": "fr", "candidates": [{"text": "File: Makefile\nLine 8: .PHONY: fmt lint test install_deps clean", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nLine 95: rootCmd.Flags().String(\"filename\", \"\", \"Enter a filename\")", "file": "bash_completions_test.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_notwin.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 61: if err != nil {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 8: //", "file": "powershell_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 165: // appendIfNotPresent will append stringToAppend to the end of s, but only if it's not yet present in s.", "file": "cobra.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 349: return c.genPowerShellCompletion(w, true)", "file": "powershell_completions.go", "symbol": "", "line": 349, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 35: // This function can be called multiple times before and/or after completions are added to", "file": "active_help.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 137: rootCmd.AddCommand(child)", "file": "fish_completions_test.go", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 117: HiddenDefaultCmd bool", "file": "completions.go", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_notwin.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 50: output := buf.String()", "file": "doc/md_docs_test.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 149: // This method satisfies [CompletionFunc].", "file": "completions.go", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 34: // in the directory given. The header may be nil. This function may not work", "file": "doc/man_docs.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 101: for _, child := range children {", "file": "doc/md_docs.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 277: }", "file": "cobra_test.go", "symbol": "", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 27: activeHelpGlobalEnvVar = configEnvVarGlobalPrefix + \"_\" + activeHelpEnvVarSuffix", "file": "active_help.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "powershell_completions_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 29: Use: \"child\",", "file": "fish_completions_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 234: Run: emptyRun,", "file": "active_help_test.go", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 279: __%[1]s_debug \"Checking if we should do file completion.\"", "file": "zsh_completions.go", "symbol": "", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 75: $ShellCompDirectiveError=%[4]d", "file": "powershell_completions.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 106: link := cname + markdownExtension", "file": "doc/md_docs.go", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "list les tâches make pour formater lint tester installer et nettoyer", "query": "make tasks", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lang": "fr", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\ndefines .PHONY", "file": "Makefile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "list les tâches make pour formater lint tester installer et nettoyer", "query": "make tasks", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lang": "fr", "candidates": [{"text": "Next: read args_test.go lines=295-318\nread TestMaximumNArgs_WithMoreArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs", "line": 295, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=22-45\nread PositionalArgs for detail", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1560-1583\nread TestNoValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestNoValidArgsFuncInBashScript", "line": 1560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=412-435\nread getOut for detail", "file": "command.go", "symbol": "getOut", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=65-88\nread MarkFlagsMutuallyExclusive for detail", "file": "flag_groups.go", "symbol": "MarkFlagsMutuallyExclusive", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=26-49\nread activeHelpEnvVarSuffix for detail", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=32-55\nread printOptions for detail", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=678-701\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=348-371\nread GenPowerShellCompletionWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionWithDesc", "line": 348, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=499-522\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 499, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=740-763\nread TestPersistentFlagsOnSameCommand for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnSameCommand", "line": 740, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=26-49\nread activeHelpMessage2 for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=75-98\nread TestGenYamlDocRunnable for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDocRunnable", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=171-194\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 171, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "O comando falha ou retorna erro quando a quantidade de argumentos fornecidos é inferior ao limite mínimo configurado no parâmetro de definição.", "query": "limit arguments command", "file": "args_test.go", "symbol": "TestMaximumNArgs", "line": 271, "lang": "pt", "candidates": [{"text": "File: command.go\nLine 993: p.PersistentPreRun(c, argWoFlags)", "file": "command.go", "symbol": "", "line": 993, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 27: func checkOmit(t *testing.T, found, unexpected string) {", "file": "bash_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 420: local two_word_flags=()", "file": "bash_completions.go", "symbol": "", "line": 420, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 326: local longest=0", "file": "bash_completionsV2.go", "symbol": "", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 20: golangci-lint run -v", "file": "Makefile", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 118: }", "file": "doc/rest_docs.go", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "bash_completionsV2.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 6: github.com/cpuguy83/go-md2man/v2 v2.0.6", "file": "go.mod", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 44: Section: \"3\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 25: func ExampleGenManTree() {", "file": "doc/man_examples_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1677: if err != nil {", "file": "command_test.go", "symbol": "", "line": 1677, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_notwin.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 128: {", "file": "cobra_test.go", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 36: flags.PrintDefaults()", "file": "doc/rest_docs.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 32: checkOmit(t, output, fmt.Sprintf(\"%s=0\", activeHelpVar))", "file": "bash_completionsV2_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "zsh_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 37: fmt.Scanln()", "file": "command_win.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 271: func TestMaximumNArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestMaximumNArgs", "line": 271, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nLine 83: // Used only in GenManTreeFromOpts.", "file": "doc/man_docs.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 68: // NoDuplicateArgs returns an error if there are any duplicate positional args.", "file": "args.go", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 2037: }", "file": "command.go", "symbol": "", "line": 2037, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 44: }", "file": "bash_completions_test.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 2: //", "file": "doc/util.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 81: check(t, output, \"__root_colon_perform_completion\")", "file": "fish_completions_test.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "O comando falha ou retorna erro quando a quantidade de argumentos fornecidos é inferior ao limite mínimo configurado no parâmetro de definição.", "query": "limit arguments command", "file": "args_test.go", "symbol": "TestMaximumNArgs", "line": 271, "lang": "pt", "candidates": [{"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestMaximumNArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "O comando falha ou retorna erro quando a quantidade de argumentos fornecidos é inferior ao limite mínimo configurado no parâmetro de definição.", "query": "limit arguments command", "file": "args_test.go", "symbol": "TestMaximumNArgs", "line": 271, "lang": "pt", "candidates": [{"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "O comando falha ou retorna erro quando a quantidade de argumentos fornecidos é inferior ao limite mínimo configurado no parâmetro de definição.", "query": "limit arguments command", "file": "args_test.go", "symbol": "TestMaximumNArgs", "line": 271, "lang": "pt", "candidates": [{"text": "Next: read args_test.go lines=271-294\nread TestMaximumNArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs", "line": 271, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=113-136\nread TestChildCommand for detail", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2607-2630\nread TestCompleteCompletion for detail", "file": "completions_test.go", "symbol": "TestCompleteCompletion", "line": 2607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=206-229\nread TestExecuteContextC for detail", "file": "command_test.go", "symbol": "TestExecuteContextC", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1591-1614\nread TestCompleteNoDesCmdInZshScript for detail", "file": "completions_test.go", "symbol": "TestCompleteNoDesCmdInZshScript", "line": 1591, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=49-72\nread defaultTraverseRunHooks for detail", "file": "cobra.go", "symbol": "defaultTraverseRunHooks", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2926-2949\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2926, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=47-70\nread GetActiveHelpConfig for detail", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=758-781\nread innerfind for detail", "file": "command.go", "symbol": "innerfind", "line": 758, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=27-50\nread TestGenYamlDoc for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDoc", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "¿Cómo se verifica que la validación de argumentos rechace entradas no válidas cuando se requiere que no haya argumentos?", "query": "test valid args invalid", "file": "args_test.go", "symbol": "TestNoArgs_WithValidOnly_WithInvalidArgs", "line": 147, "lang": "es", "candidates": [{"text": "File: doc/rest_docs_test.go\nLine 73: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 6: //", "file": "powershell_completions_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 174: check(t, output, \"_root_cmd__colon\")", "file": "bash_completions_test.go", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 502: }", "file": "bash_completions.go", "symbol": "", "line": 502, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 18: \"bytes\"", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 23: \"os\"", "file": "cobra.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 57: if err := GenManTreeFromOpts(c, opts); err != nil {", "file": "doc/man_docs.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1210: }", "file": "command.go", "symbol": "", "line": 1210, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 93: flags.VisitAll(func(pflag *flag.Flag) {", "file": "flag_groups.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 98: // Execute method is called.", "file": "cobra.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 147: func TestNoArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestNoArgs_WithValidOnly_WithInvalidArgs", "line": 147, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nLine 52: func (s byName) Less(i, j int) bool { return s[i].Name() < s[j].Name() }", "file": "doc/util.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 62: if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {", "file": "doc/yaml_docs.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 136: }", "file": "flag_groups.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 36: checkStringContains(t, output, echoCmd.Example)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 173: if err := GenManTree(c, header, tmpdir); err != nil {", "file": "doc/man_docs_test.go", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 105: }", "file": "fish_completions_test.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 137: final, err := yaml.Marshal(&yamlDoc)", "file": "doc/yaml_docs.go", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 26: func TestGenRSTDoc(t *testing.T) {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 84: if err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 69: short := cmd.Short", "file": "doc/rest_docs.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 33: // to the user.", "file": "active_help.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 215: check(t, output, `local_nonpersistent_flags+=(\"--two-w-default\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 15: package cobra", "file": "bash_completionsV2_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "¿Cómo se verifica que la validación de argumentos rechace entradas no válidas cuando se requiere que no haya argumentos?", "query": "test valid args invalid", "file": "args_test.go", "symbol": "TestNoArgs_WithValidOnly_WithInvalidArgs", "line": 147, "lang": "es", "candidates": [{"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestNoArgs_WithValidOnly_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "¿Cómo se verifica que la validación de argumentos rechace entradas no válidas cuando se requiere que no haya argumentos?", "query": "test valid args invalid", "file": "args_test.go", "symbol": "TestNoArgs_WithValidOnly_WithInvalidArgs", "line": 147, "lang": "es", "candidates": [{"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "¿Cómo se verifica que la validación de argumentos rechace entradas no válidas cuando se requiere que no haya argumentos?", "query": "test valid args invalid", "file": "args_test.go", "symbol": "TestNoArgs_WithValidOnly_WithInvalidArgs", "line": 147, "lang": "es", "candidates": [{"text": "Next: read command_test.go lines=819-842\nread childCmdArgs for detail", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=174-197\nread rpad for detail", "file": "cobra.go", "symbol": "rpad", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=311-334\nread SliceValue for detail", "file": "completions.go", "symbol": "SliceValue", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=69-92\nread timesCmd for detail", "file": "doc/cmd_test.go", "symbol": "timesCmd", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=275-298\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=147-170\nread TestNoArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValidOnly_WithInvalidArgs", "line": 147, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=245-268\nread TestDeadcodeElimination for detail", "file": "cobra_test.go", "symbol": "TestDeadcodeElimination", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=48-71\nread defaultCaseInsensitive for detail", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=562-585\nread TestChildFlag for detail", "file": "command_test.go", "symbol": "TestChildFlag", "line": 562, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=179-202\nread tmpl for detail", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=426-449\nread TestValidArgsFuncAndCmdCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAndCmdCompletionInGo", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=781-804\nread findSuggestions for detail", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Estoy intentando redirigir los mensajes de error a un escritor personalizado, pero al pasar `nil` como argumento, el comportamiento no cambia o sigue usando el error estándar en lugar de aplicar la nueva configuración. ¿Cómo debería configurar el escritor de errores para que respete `nil` y vuelva al error estándar, o cómo forzar un escritor específico sin que se sobrescriba?", "query": "set error writer nil", "file": "command.go", "symbol": "SetErr", "line": 302, "lang": "es", "candidates": [{"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 24: // The below values should not be changed: programs will be using them explicitly", "file": "active_help.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 39: // Temporary workaround for yaml lib generating incorrect yaml with long strings", "file": "doc/util.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "powershell_completions_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 140: $Out = $Out | Where-Object { $_ -ne $Out[-1] }", "file": "powershell_completions.go", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 18: lint:", "file": "Makefile", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1213: t.Errorf(\"Unexpected error: %v\", err)", "file": "command_test.go", "symbol": "", "line": 1213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 66: if err := GenYamlTree(c, tmpdir); err != nil {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 209: checkOmit(t, output, `two_word_flags+=(\"-T\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 40: root.SetErr(buf)", "file": "command_test.go", "symbol": "", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/cmd_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 766: // We found a real sub-command (not 'help' or '__complete')", "file": "completions.go", "symbol": "", "line": 766, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 805: }", "file": "command_test.go", "symbol": "", "line": 805, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 302: func (c *Command) SetErr(newErr io.Writer) {", "file": "command.go", "symbol": "SetErr", "line": 302, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nLine 51: }", "file": "active_help.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 175: __%[1]s_debug \"flagPrefix: ${flagPrefix}\"", "file": "zsh_completions.go", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 264: // None of the flags of the group are set, mark all flags in the group", "file": "flag_groups.go", "symbol": "", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 107: link = strings.ReplaceAll(link, \" \", \"_\")", "file": "doc/md_docs.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 59: var EnableCommandSorting = defaultCommandSorting", "file": "cobra.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 26: )", "file": "completions.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 61: buf := new(bytes.Buffer)", "file": "doc/md_docs.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 4107: rootCmd.SetErr(buf)", "file": "completions_test.go", "symbol": "", "line": 4107, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nLine 275: Aliases: []string{\"alias1\", \"alias2\"},", "file": "cobra_test.go", "symbol": "", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 100: comps = AppendActiveHelp(comps, activeHelpMessage)", "file": "active_help_test.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Estoy intentando redirigir los mensajes de error a un escritor personalizado, pero al pasar `nil` como argumento, el comportamiento no cambia o sigue usando el error estándar en lugar de aplicar la nueva configuración. ¿Cómo debería configurar el escritor de errores para que respete `nil` y vuelva al error estándar, o cómo forzar un escritor específico sin que se sobrescriba?", "query": "set error writer nil", "file": "command.go", "symbol": "SetErr", "line": 302, "lang": "es", "candidates": [{"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Estoy intentando redirigir los mensajes de error a un escritor personalizado, pero al pasar `nil` como argumento, el comportamiento no cambia o sigue usando el error estándar en lugar de aplicar la nueva configuración. ¿Cómo debería configurar el escritor de errores para que respete `nil` y vuelva al error estándar, o cómo forzar un escritor específico sin que se sobrescriba?", "query": "set error writer nil", "file": "command.go", "symbol": "SetErr", "line": 302, "lang": "es", "candidates": [{"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Estoy intentando redirigir los mensajes de error a un escritor personalizado, pero al pasar `nil` como argumento, el comportamiento no cambia o sigue usando el error estándar en lugar de aplicar la nueva configuración. ¿Cómo debería configurar el escritor de errores para que respete `nil` y vuelva al error estándar, o cómo forzar un escritor específico sin que se sobrescriba?", "query": "set error writer nil", "file": "command.go", "symbol": "SetErr", "line": 302, "lang": "es", "candidates": [{"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=500-523\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 500, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=146-169\nread TestRootExecuteUnknownCommand for detail", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=295-318\nread TestMaximumNArgs_WithMoreArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs", "line": 295, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=536-559\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=319-342\nread TestDisableActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestDisableActiveHelp", "line": 319, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=138-161\nread GenReSTTree for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTree", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=301-324\nread TestMaximumNArgs_WithMoreArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid", "line": 301, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=363-386\nread TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=657-680\nread checkIfFlagCompletion for detail", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=235-258\nread TestExecute_NoContext for detail", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=307-330\nread TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=114-137\nread child1CmdArgs for detail", "file": "command_test.go", "symbol": "child1CmdArgs", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=302-325\nread SetErr for detail", "file": "command.go", "symbol": "SetErr", "line": 302, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1821-1844\nread TestFlagCompletionWithNotInterspersedArgs for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWithNotInterspersedArgs", "line": 1821, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=123-146\nread SetDefaultShellCompDirective for detail", "file": "completions.go", "symbol": "SetDefaultShellCompDirective", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2929-2952\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2929, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "检查字符串是否包含预期子串", "query": "string contains check", "file": "command_test.go", "symbol": "checkStringContains", "line": 74, "lang": "zh", "candidates": [{"text": "File: doc/cmd_test.go\nLine 95: func checkStringContains(t *testing.T, got, expected string) {", "file": "doc/cmd_test.go", "symbol": "", "line": 95, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nLine 34: checkStringContains(t, output, echoCmd.Long)", "file": "doc/md_docs_test.go", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nLine 35: checkStringContains(t, output, echoCmd.Long)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nLine 73: checkStringContains(t, output, \"boolone\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 15: package doc", "file": "doc/cmd_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/man_examples_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 13: // limitations under the License.", "file": "zsh_completions_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 224: if err := runShellCheck(output); err != nil {", "file": "bash_completions_test.go", "symbol": "", "line": 224, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 103: t.Fatalf(\"GenMarkdownTree failed: %v\", err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 74: func checkStringContains(t *testing.T, got, expected string) {", "file": "command_test.go", "symbol": "checkStringContains", "line": 74, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_win.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_win.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 154: }", "file": "flag_groups.go", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 34: checkStringContains(t, output, echoCmd.Long)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nLine 57: checkStringContains(t, output, expected)", "file": "doc/man_docs_test.go", "symbol": "", "line": 57, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nLine 117: defer file.Close()", "file": "doc/md_docs_test.go", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 27: Use: \"test\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 173: if flag.Value.Type() == \"string\" {", "file": "doc/man_docs.go", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 74: return cmd.Run()", "file": "bash_completions_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 100: return fmt.Errorf(\"accepts at most %d arg(s), received %d\", n, len(args))", "file": "args.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 198: cobra.WriteStringAndCheck(buf, \"\\n\")", "file": "doc/man_docs.go", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 121: // This function may not work correctly if your command names have `-` in them.", "file": "doc/md_docs.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 16: // +build !windows", "file": "command_notwin.go", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "检查字符串是否包含预期子串", "query": "string contains check", "file": "command_test.go", "symbol": "checkStringContains", "line": 74, "lang": "zh", "candidates": [{"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "检查字符串是否包含预期子串", "query": "string contains check", "file": "command_test.go", "symbol": "checkStringContains", "line": 74, "lang": "zh", "candidates": [{"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "检查字符串是否包含预期子串", "query": "string contains check", "file": "command_test.go", "symbol": "checkStringContains", "line": 74, "lang": "zh", "candidates": [{"text": "Next: read args_test.go lines=357-380\nread TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=53-76\nread GenYamlTree for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTree", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=73-96\nread ShellCompDirectiveFilterFileExt for detail", "file": "completions.go", "symbol": "ShellCompDirectiveFilterFileExt", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=52-75\nread Error for detail", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=221-244\nread TestMinimumNArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1544-1567\nread TestValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncInBashScript", "line": 1544, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=114-137\nread Gt for detail", "file": "cobra.go", "symbol": "Gt", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups_test.go lines=22-45\nread TestValidateFlagGroups for detail", "file": "flag_groups_test.go", "symbol": "TestValidateFlagGroups", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=955-978\nread CompDebug for detail", "file": "completions.go", "symbol": "CompDebug", "line": 955, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=81-104\nread MousetrapDisplayDuration for detail", "file": "cobra.go", "symbol": "MousetrapDisplayDuration", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=643-666\nread ErrPrefix for detail", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=313-336\nread SetUsageFunc for detail", "file": "command.go", "symbol": "SetUsageFunc", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=87-110\nread genZshComp for detail", "file": "zsh_completions.go", "symbol": "genZshComp", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=101-124\nread compCmdNoDescFlagName for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagName", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=188-211\nread validateExclusiveFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateExclusiveFlagGroups", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=28-51\nread genPowerShellComp for detail", "file": "powershell_completions.go", "symbol": "genPowerShellComp", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=74-97\nread checkStringContains for detail", "file": "command_test.go", "symbol": "checkStringContains", "line": 74, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Ich arbeite gerade an der Erweiterung der Shell-Vervollständigung für unsere CLI. Kannst du mir zeigen, wie ich eine Funktion implementiere, die bei der Autovervollständigung immer die exakt gleichen Ergebnisse zurückgibt?", "query": "return static completions", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lang": "de", "candidates": [{"text": "File: doc/rest_docs.go\nLine 110: }", "file": "doc/rest_docs.go", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 232: rootCmd := &Command{", "file": "active_help_test.go", "symbol": "", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 69: func NoDuplicateArgs(cmd *Command, args []string) error {", "file": "args.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 775: if commandFound.Args == nil {", "file": "command.go", "symbol": "", "line": 775, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 167: assertNoErr(t, rootCmd.GenBashCompletion(buf))", "file": "bash_completions_test.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 383: os.Setenv(activeHelpGlobalEnvVar, \"on\")", "file": "active_help_test.go", "symbol": "", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 190: cobra.WriteStringAndCheck(buf, \"# OPTIONS\\n\")", "file": "doc/man_docs.go", "symbol": "", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 160: func FixedCompletions(choices []Completion, directive ShellCompDirective) CompletionFunc {", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nLine 203: cmd.InitDefaultHelpCmd()", "file": "doc/man_docs.go", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 73: checkStringContains(t, output, \"boolone\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 74: Run: emptyRun,", "file": "doc/cmd_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 71: SuggestFor: []string{\"counts\"},", "file": "doc/cmd_test.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 695: case strings.HasPrefix(s, \"-\") && !strings.Contains(s, \"=\") && len(s) == 2 && !shortHasNoOptDefVal(s[1:], flags):", "file": "command.go", "symbol": "", "line": 695, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 12: // See the License for the specific language governing permissions and", "file": "doc/yaml_docs.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 28: output := buf.String()", "file": "bash_completionsV2_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 226: }", "file": "bash_completions_test.go", "symbol": "", "line": 226, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 84: if err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 54: panic(fmt.Sprintf(\"Failed to find flag %q and mark it as being in a one-required flag group\", v))", "file": "flag_groups.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 37: checkStringContains(t, output, \"rootflag\")", "file": "doc/rest_docs_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 59: $Command = \"$Command\"", "file": "powershell_completions.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 23: func TestZshCompletionWithActiveHelp(t *testing.T) {", "file": "zsh_completions_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2985: ValidArgsFunction: FixedCompletions(choices, ShellCompDirectiveNoFileComp),", "file": "completions_test.go", "symbol": "", "line": 2985, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nLine 99: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 188: flags := command.NonInheritedFlags()", "file": "doc/man_docs.go", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Ich arbeite gerade an der Erweiterung der Shell-Vervollständigung für unsere CLI. Kannst du mir zeigen, wie ich eine Funktion implementiere, die bei der Autovervollständigung immer die exakt gleichen Ergebnisse zurückgibt?", "query": "return static completions", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lang": "de", "candidates": [{"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Ich arbeite gerade an der Erweiterung der Shell-Vervollständigung für unsere CLI. Kannst du mir zeigen, wie ich eine Funktion implementiere, die bei der Autovervollständigung immer die exakt gleichen Ergebnisse zurückgibt?", "query": "return static completions", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lang": "de", "candidates": [{"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Ich arbeite gerade an der Erweiterung der Shell-Vervollständigung für unsere CLI. Kannst du mir zeigen, wie ich eine Funktion implementiere, die bei der Autovervollständigung immer die exakt gleichen Ergebnisse zurückgibt?", "query": "return static completions", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lang": "de", "candidates": [{"text": "Next: read doc/yaml_docs.go lines=93-116\nread GenYamlCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlCustom", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=308-331\nread SetIn for detail", "file": "command.go", "symbol": "SetIn", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1357-1380\nread TestValidArgsFuncSingleCmdInvalidArg for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=438-461\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=181-204\nread TestNoDuplicateArgs_WithValid_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=133-156\nread GenMarkdownTreeCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTreeCustom", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=59-82\nread EnableCommandSorting for detail", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2787-2810\nread TestCompleteWithDisableFlagParsing for detail", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=819-842\nread childCmdArgs for detail", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=27-50\nread TestGenYamlDoc for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDoc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2916-2939\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2916, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=500-523\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 500, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2545-2568\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2545, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2929-2952\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2929, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2896-2919\nread TestCompletionFuncCompatibility for detail", "file": "completions_test.go", "symbol": "TestCompletionFuncCompatibility", "line": 2896, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1607-1630\nread TestCompleteCmdInZshScript for detail", "file": "completions_test.go", "symbol": "TestCompleteCmdInZshScript", "line": 1607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=160-183\nread FixedCompletions for detail", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "O erro retornado quando uma flag é passada para um subcomando que não a suporta está formatado incorretamente ou precisa de ajuste na mensagem de erro.", "query": "subcommand flag support", "file": "completions.go", "symbol": "Error", "line": 52, "lang": "pt", "candidates": [{"text": "File: bash_completions_test.go\nLine 49: t.Errorf(\"Error thrown performing MatchString: \\n %s\\n\", err)", "file": "bash_completions_test.go", "symbol": "", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\nLine 78: buf.WriteString(strings.Repeat(\"-\", len(name)) + \"\\n\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 982: }", "file": "completions_test.go", "symbol": "", "line": 982, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 18: \"bytes\"", "file": "bash_completionsV2_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 200: // check for subdirs_in_dir flags", "file": "bash_completions_test.go", "symbol": "", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 29: t.Error(e)", "file": "cobra_test.go", "symbol": "", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_win.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 232: // default configuration is linked taking full advantage of the linker's", "file": "cobra_test.go", "symbol": "", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 25: // - root commands with no subcommands can take arbitrary arguments", "file": "args.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 121: if err := GenMarkdown(rootCmd, file); err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 36: c.Println(\"Press return to continue...\")", "file": "command_win.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 40: }", "file": "command_win.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 95: args: []string{\"--a=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 100: defer os.RemoveAll(tmpdir)", "file": "doc/md_docs_test.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 52: func (e *flagCompError) Error() string {", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\nLine 865: requiredPersistent := rootCmd.PersistentFlags().Lookup(\"requiredPersistent\")", "file": "completions_test.go", "symbol": "", "line": 865, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 125: __%[1]s_debug \"Error determining if order preservation is required\"", "file": "fish_completions.go", "symbol": "", "line": 125, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nLine 234: // CheckErr prints the msg with the prefix 'Error:' and exits with error code 1. If the msg is nil, it does nothing.", "file": "cobra.go", "symbol": "", "line": 234, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nLine 195: }", "file": "powershell_completions.go", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 152: expected := \"Error: unknown command \\\"unknown\\\" for \\\"root\\\"\\nRun 'root --help' for usage.\\n\"", "file": "command_test.go", "symbol": "", "line": 152, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nLine 13: // limitations under the License.", "file": "powershell_completions_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 6: //", "file": "doc/man_examples_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_notwin.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 144: # Error code. No completion.", "file": "powershell_completions.go", "symbol": "", "line": 144, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "O erro retornado quando uma flag é passada para um subcomando que não a suporta está formatado incorretamente ou precisa de ajuste na mensagem de erro.", "query": "subcommand flag support", "file": "completions.go", "symbol": "Error", "line": 52, "lang": "pt", "candidates": [{"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "O erro retornado quando uma flag é passada para um subcomando que não a suporta está formatado incorretamente ou precisa de ajuste na mensagem de erro.", "query": "subcommand flag support", "file": "completions.go", "symbol": "Error", "line": 52, "lang": "pt", "candidates": [{"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "O erro retornado quando uma flag é passada para um subcomando que não a suporta está formatado incorretamente ou precisa de ajuste na mensagem de erro.", "query": "subcommand flag support", "file": "completions.go", "symbol": "Error", "line": 52, "lang": "pt", "candidates": [{"text": "Next: read completions_test.go lines=1384-1407\nread TestValidArgsFuncChildCmds for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmds", "line": 1384, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=86-109\nread BenchmarkGenYamlToFile for detail", "file": "doc/yaml_docs_test.go", "symbol": "BenchmarkGenYamlToFile", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=117-140\nread RangeArgs for detail", "file": "args.go", "symbol": "RangeArgs", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=84-107\nread printCmd for detail", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=157-180\nread TestNoCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1318-1341\nread TestValidArgsFuncSingleCmd for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=52-75\nread Error for detail", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=87-110\nread MinimumNArgs for detail", "file": "args.go", "symbol": "MinimumNArgs", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=127-150\nread MatchAll for detail", "file": "args.go", "symbol": "MatchAll", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=758-781\nread innerfind for detail", "file": "command.go", "symbol": "innerfind", "line": 758, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=60-83\nread GenYamlTreeCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTreeCustom", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2929-2952\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2929, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "명령어 인자 값들 중에서 중복된 게 있는지 체크해서 에러를 반환하는 로직을 찾고 있어요. 입력받은 슬라이스 안에 동일한 문자열이 포함되어 있는지 검사하는 부분을 보여주세요.", "query": "duplicate arguments error", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lang": "ko", "candidates": [{"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 76: checkStringContains(t, output, echoSubCmd.Short)", "file": "doc/md_docs_test.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/cmd_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 88: }", "file": "doc/man_docs.go", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "fish_completions.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 23: // and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_notwin.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 19: \"fmt\"", "file": "bash_completionsV2_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 295: $CompletionText = $($comp.Name | __%[1]s_escapeStringWithSpecialChars)", "file": "powershell_completions.go", "symbol": "", "line": 295, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 233: Use: \"root\",", "file": "active_help_test.go", "symbol": "", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 27: assertNoErr(t, c.GenBashCompletionV2(buf, true))", "file": "bash_completionsV2_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 25: // both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "powershell_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 97: yamlDoc := cmdDoc{}", "file": "doc/yaml_docs.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 27: \"go.yaml.in/yaml/v3\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 46: // is set to \"0\".", "file": "active_help.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 123: parent := cmd.Parent()", "file": "doc/yaml_docs.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 498: name := flag.Shorthand", "file": "bash_completions.go", "symbol": "", "line": 498, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 69: func NoDuplicateArgs(cmd *Command, args []string) error {", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nLine 59: checkStringContains(t, output, translate(echoCmd.Name()))", "file": "doc/man_docs_test.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 67: func MarkFlagFilename(flags *pflag.FlagSet, name string, extensions ...string) error {", "file": "shell_completions.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 66: if len(cmd.Long) > 0 {", "file": "doc/md_docs.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 167: // NoDuplicateArgs", "file": "args_test.go", "symbol": "", "line": 167, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "명령어 인자 값들 중에서 중복된 게 있는지 체크해서 에러를 반환하는 로직을 찾고 있어요. 입력받은 슬라이스 안에 동일한 문자열이 포함되어 있는지 검사하는 부분을 보여주세요.", "query": "duplicate arguments error", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lang": "ko", "candidates": [{"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "명령어 인자 값들 중에서 중복된 게 있는지 체크해서 에러를 반환하는 로직을 찾고 있어요. 입력받은 슬라이스 안에 동일한 문자열이 포함되어 있는지 검사하는 부분을 보여주세요.", "query": "duplicate arguments error", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "명령어 인자 값들 중에서 중복된 게 있는지 체크해서 에러를 반환하는 로직을 찾고 있어요. 입력받은 슬라이스 안에 동일한 문자열이 포함되어 있는지 검사하는 부분을 보여주세요.", "query": "duplicate arguments error", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lang": "ko", "candidates": [{"text": "Next: read command_test.go lines=394-417\nread TestPluginWithSubCommands for detail", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=758-781\nread innerfind for detail", "file": "command.go", "symbol": "innerfind", "line": 758, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=164-187\nread TestGenManTree for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManTree", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=643-666\nread ErrPrefix for detail", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=717-740\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 717, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=82-105\nread ArbitraryArgs for detail", "file": "args.go", "symbol": "ArbitraryArgs", "line": 82, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=99-122\nread OnInitialize for detail", "file": "cobra.go", "symbol": "OnInitialize", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=326-349\nread finalArgs for detail", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=432-455\nread getIn for detail", "file": "command.go", "symbol": "getIn", "line": 432, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=327-350\nread err for detail", "file": "completions.go", "symbol": "err", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=684-707\nread Set for detail", "file": "completions_test.go", "symbol": "Set", "line": 684, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=313-336\nread TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=466-489\nread TestChildTakesArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=263-286\nread TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=528-551\nread TestFlagShort for detail", "file": "command_test.go", "symbol": "TestFlagShort", "line": 528, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=633-656\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=22-45\nread PositionalArgs for detail", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "명령어 실행 전에 사용할 컨텍스트를 설정하는 메서드를 찾습니다. 이 설정은 후속 실행 시 덮어씌워질 수 있습니다.", "query": "Command SetContext method", "file": "command.go", "symbol": "SetContext", "line": 275, "lang": "ko", "candidates": [{"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 488: ext = \"_filedir -d\"", "file": "bash_completions.go", "symbol": "", "line": 488, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/man_docs_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 94: flagGroupsRequired: []string{\"a d\", \"a b\", \"a c\"},", "file": "flag_groups_test.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 88: desc: \"Multiple exclusive flag group not satisfied returns first error\",", "file": "flag_groups_test.go", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 191: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 21: \"os\"", "file": "bash_completions.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 28: return true", "file": "doc/util.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 10: default: all", "file": "Makefile", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 25: \"time\"", "file": "doc/rest_docs.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 275: func (c *Command) SetContext(ctx context.Context) {", "file": "command.go", "symbol": "SetContext", "line": 275, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nLine 56: for _, v := range cmd.ValidArgs {", "file": "args.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 80: func TestGenRSTTree(t *testing.T) {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2621: root.SetContext(ctx)", "file": "command_test.go", "symbol": "", "line": 2621, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nLine 36: buf.WriteString(\"### Options\\n\\n```\\n\")", "file": "doc/md_docs.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 118: fi", "file": "bash_completionsV2.go", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 30: ValidArgsFunction: validArgsFunc,", "file": "fish_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 159: flag.Shorthand,", "file": "doc/yaml_docs.go", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 30: install_deps:", "file": "Makefile", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 81: Deprecated: \"Please use echo instead\",", "file": "doc/cmd_test.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 21: \"path/filepath\"", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 82: # Prepare the command to request completions for the program.", "file": "powershell_completions.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 253: # The space after the program name is essential to trigger completion for the program", "file": "fish_completions.go", "symbol": "", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 104: __%[1]s_debug \"${FUNCNAME[0]}: calling ${requestComp}\"", "file": "bash_completions.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "명령어 실행 전에 사용할 컨텍스트를 설정하는 메서드를 찾습니다. 이 설정은 후속 실행 시 덮어씌워질 수 있습니다.", "query": "Command SetContext method", "file": "command.go", "symbol": "SetContext", "line": 275, "lang": "ko", "candidates": [{"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "명령어 실행 전에 사용할 컨텍스트를 설정하는 메서드를 찾습니다. 이 설정은 후속 실행 시 덮어씌워질 수 있습니다.", "query": "Command SetContext method", "file": "command.go", "symbol": "SetContext", "line": 275, "lang": "ko", "candidates": [{"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "명령어 실행 전에 사용할 컨텍스트를 설정하는 메서드를 찾습니다. 이 설정은 후속 실행 시 덮어씌워질 수 있습니다.", "query": "Command SetContext method", "file": "command.go", "symbol": "SetContext", "line": 275, "lang": "ko", "candidates": [{"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=36-59\nread GenZshCompletionFileNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFileNoDesc", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2916-2939\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2916, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=87-110\nread MinimumNArgs for detail", "file": "args.go", "symbol": "MinimumNArgs", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2896-2919\nread TestCompletionFuncCompatibility for detail", "file": "completions_test.go", "symbol": "TestCompletionFuncCompatibility", "line": 2896, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2187-2210\nread TestFlagCompletionInGoWithDesc for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGoWithDesc", "line": 2187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=491-514\nread TestFlagLong for detail", "file": "command_test.go", "symbol": "TestFlagLong", "line": 491, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=95-118\nread checkStringContains for detail", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=129-152\nread TestNoArgs_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithArgs", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=77-100\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=275-298\nread SetContext for detail", "file": "command.go", "symbol": "SetContext", "line": 275, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/man_docs.go lines=84-107\nread GenManTreeOptions for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeOptions", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=327-350\nread TestExactArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=528-551\nread TestFlagShort for detail", "file": "command_test.go", "symbol": "TestFlagShort", "line": 528, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Ich schreibe gerade Tests für die CLI-Befehle. Kannst du mir zeigen, wo die Hilfsfunktion definiert ist, die prüft, ob ein bestimmter Textabschnitt in einer Ausgabe fehlt?", "query": "test omit string", "file": "command_test.go", "symbol": "checkStringOmits", "line": 80, "lang": "de", "candidates": [{"text": "File: zsh_completions.go\nLine 164: local suffix", "file": "zsh_completions.go", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 354: fi", "file": "bash_completionsV2.go", "symbol": "", "line": 354, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 40: checkStringOmits(t, output, deprecatedCmd.Short)", "file": "doc/md_docs_test.go", "symbol": "", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "zsh_completions_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 6: github.com/cpuguy83/go-md2man/v2 v2.0.6", "file": "go.mod", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 40: checkStringOmits(t, output, deprecatedCmd.Short)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nLine 65: checkStringOmits(t, output, translate(deprecatedCmd.Name()))", "file": "doc/man_docs_test.go", "symbol": "", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nLine 134: return nil", "file": "args.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "zsh_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "bash_completionsV2.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 135: Run: emptyRun,", "file": "fish_completions_test.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 54: checkStringOmits(t, output, \"Auto generated\")", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nLine 296: // Test active help config for a flag", "file": "active_help_test.go", "symbol": "", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 4042: },", "file": "completions_test.go", "symbol": "", "line": 4042, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/rest_docs_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 183: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 183, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 94: }", "file": "doc/md_docs.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 257: end", "file": "fish_completions.go", "symbol": "", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 45: return MarkFlagFilename(c.Flags(), name, extensions...)", "file": "shell_completions.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 27: )", "file": "active_help_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 28: return true", "file": "doc/util.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 101: func checkStringOmits(t *testing.T, got, expected string) {", "file": "doc/cmd_test.go", "symbol": "", "line": 101, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nLine 80: func checkStringOmits(t *testing.T, got, expected string) {", "file": "command_test.go", "symbol": "checkStringOmits", "line": 80, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra.go\nLine 87: }", "file": "cobra.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Ich schreibe gerade Tests für die CLI-Befehle. Kannst du mir zeigen, wo die Hilfsfunktion definiert ist, die prüft, ob ein bestimmter Textabschnitt in einer Ausgabe fehlt?", "query": "test omit string", "file": "command_test.go", "symbol": "checkStringOmits", "line": 80, "lang": "de", "candidates": [{"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Ich schreibe gerade Tests für die CLI-Befehle. Kannst du mir zeigen, wo die Hilfsfunktion definiert ist, die prüft, ob ein bestimmter Textabschnitt in einer Ausgabe fehlt?", "query": "test omit string", "file": "command_test.go", "symbol": "checkStringOmits", "line": 80, "lang": "de", "candidates": [{"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Ich schreibe gerade Tests für die CLI-Befehle. Kannst du mir zeigen, wo die Hilfsfunktion definiert ist, die prüft, ob ein bestimmter Textabschnitt in einer Ausgabe fehlt?", "query": "test omit string", "file": "command_test.go", "symbol": "checkStringOmits", "line": 80, "lang": "de", "candidates": [{"text": "Next: read completions.go lines=52-75\nread Error for detail", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=225-248\nread enforceFlagGroupsForCompletion for detail", "file": "flag_groups.go", "symbol": "enforceFlagGroupsForCompletion", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=233-256\nread TestMinimumNArgs_WithValid__WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1384-1407\nread TestValidArgsFuncChildCmds for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmds", "line": 1384, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=257-280\nread TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=345-368\nread TestExactArgs_WithInvalidCount for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=225-248\nread stringInSlice for detail", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=84-107\nread printCmd for detail", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=31-54\nread MarkPersistentFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=80-103\nread checkStringOmits for detail", "file": "command_test.go", "symbol": "checkStringOmits", "line": 80, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read active_help.go lines=47-70\nread GetActiveHelpConfig for detail", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=377-400\nread TestRangeArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=110-133\nread noDuplicateArgsWithDuplicate for detail", "file": "args_test.go", "symbol": "noDuplicateArgsWithDuplicate", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=382-405\nread SetGlobalNormalizationFunc for detail", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=985-1008\nread CompError for detail", "file": "completions.go", "symbol": "CompError", "line": 985, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "I'm trying to figure out where the slice of strings for the processed arguments is being stored before the completion response is sent. Can you show me where this collection of command-line parameters is initialized?", "query": "slice string arguments", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lang": "en", "candidates": [{"text": "File: zsh_completions.go\nLine 255: subdir=\"${completions[1]}\"", "file": "zsh_completions.go", "symbol": "", "line": 255, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 86: $RequestComp=\"$Program %[3]s $Arguments\"", "file": "powershell_completions.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 90: buf.WriteString(\"~~~~~~~~\\n\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 678: writeArgAliases(buf, cmd)", "file": "bash_completions.go", "symbol": "", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 73: //", "file": "shell_completions.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 25: \"time\"", "file": "doc/md_docs.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 339: c.helpCommand = cmd", "file": "command.go", "symbol": "", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 148: __%[1]s_debug \"About to call: eval ${requestComp}\"", "file": "zsh_completions.go", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 4081: // The bug: getCompletions() calls append(finalArgs, \"--\") where", "file": "completions_test.go", "symbol": "", "line": 4081, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nLine 1079: c.ctx = ctx", "file": "command.go", "symbol": "", "line": 1079, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 30: // check that active help is not being disabled", "file": "bash_completionsV2_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 329: }", "file": "active_help_test.go", "symbol": "", "line": 329, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 32: // if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 453: fn := c.getUsageTemplateFunc()", "file": "command.go", "symbol": "", "line": 453, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 129: if !hasAllFlags(flags, flagnames...) {", "file": "flag_groups.go", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 551: func writeFlags(buf io.StringWriter, cmd *Command) {", "file": "bash_completions.go", "symbol": "", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 48: }", "file": "fish_completions_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 32: checkOmit(t, output, fmt.Sprintf(\"%s=0\", activeHelpVar))", "file": "zsh_completions_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 234: end", "file": "fish_completions.go", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 326: var finalArgs []string", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: shell_completions.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "shell_completions.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 97: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "fish_completions_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 102: if test -z \"$__%[1]s_perform_completion_once_result\"", "file": "fish_completions.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 97: return flags.SetAnnotation(name, BashCompSubdirsInDir, []string{})", "file": "shell_completions.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "I'm trying to figure out where the slice of strings for the processed arguments is being stored before the completion response is sent. Can you show me where this collection of command-line parameters is initialized?", "query": "slice string arguments", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lang": "en", "candidates": [{"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "I'm trying to figure out where the slice of strings for the processed arguments is being stored before the completion response is sent. Can you show me where this collection of command-line parameters is initialized?", "query": "slice string arguments", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lang": "en", "candidates": [{"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "I'm trying to figure out where the slice of strings for the processed arguments is being stored before the completion response is sent. Can you show me where this collection of command-line parameters is initialized?", "query": "slice string arguments", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lang": "en", "candidates": [{"text": "Next: read command.go lines=573-596\nread CommandPathPadding for detail", "file": "command.go", "symbol": "CommandPathPadding", "line": 573, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2451-2474\nread removeCompCmd for detail", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=644-667\nread writeArgAliases for detail", "file": "bash_completions.go", "symbol": "writeArgAliases", "line": 644, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1038-1061\nread TestFlagFileExtFilterCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagFileExtFilterCompletionInGo", "line": 1038, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=87-110\nread MinimumNArgs for detail", "file": "args.go", "symbol": "MinimumNArgs", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=321-344\nread TestExactArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=536-559\nread prepareCustomAnnotationsForFlags for detail", "file": "bash_completions.go", "symbol": "prepareCustomAnnotationsForFlags", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=185-208\nread TestRpad for detail", "file": "cobra_test.go", "symbol": "TestRpad", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2545-2568\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2545, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=326-349\nread finalArgs for detail", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/man_docs.go lines=38-61\nread GenManTree for detail", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help_test.go lines=84-107\nread TestActiveHelpWithComps for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpWithComps", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help_test.go lines=25-48\nread activeHelpMessage for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "suche die funktion die prüft ob die anzahl der argumente exakt übereinstimmt", "query": "exact argument count", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lang": "de", "candidates": [{"text": "File: args_test.go\nLine 319: // ExactArgs", "file": "args_test.go", "symbol": "", "line": 319, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nLine 92: Args: ExactArgs(2),", "file": "command_test.go", "symbol": "", "line": 92, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nLine 21: )", "file": "bash_completionsV2_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 2: //", "file": "zsh_completions_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 327: local compline", "file": "bash_completionsV2.go", "symbol": "", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 482: func (c *Command) GenBashCompletionV2(w io.Writer, includeDesc bool) error {", "file": "bash_completionsV2.go", "symbol": "", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 13: // limitations under the License.", "file": "command_win.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 48: if err != nil {", "file": "bash_completions_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 397: # Remove an extra 4 because we add 2 spaces and 2 parentheses.", "file": "bash_completionsV2.go", "symbol": "", "line": 397, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 111: flags := cmd.NonInheritedFlags()", "file": "doc/yaml_docs.go", "symbol": "", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 45: parentFlags.PrintDefaults()", "file": "doc/md_docs.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 27: assertNoErr(t, c.GenZshCompletion(buf))", "file": "zsh_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 24: // The below values should not be changed: programs will be using them explicitly", "file": "active_help.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 54: expectErr string", "file": "flag_groups_test.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 27: Use: \"test\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 92: if ($WordToComplete -ne \"\" ) {", "file": "powershell_completions.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 57: // root command in upper case, with all non-ASCII-alphanumeric characters replaced by `_`.", "file": "active_help.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 341: // GenPowerShellCompletionFileWithDesc generates powershell completion file with descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 341, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 328: # Look for the longest completion so that we can format things nicely", "file": "bash_completionsV2.go", "symbol": "", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 107: func ExactArgs(n int) PositionalArgs {", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nLine 94: t.Fatalf(\"Expected file 'do.rst' to exist\")", "file": "doc/rest_docs_test.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 104: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 48: defaultCaseInsensitive = false", "file": "cobra.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 236: if [[ ${#must_have_one_noun[@]} -ne 0 ]]; then", "file": "bash_completions.go", "symbol": "", "line": 236, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "suche die funktion die prüft ob die anzahl der argumente exakt übereinstimmt", "query": "exact argument count", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lang": "de", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "suche die funktion die prüft ob die anzahl der argumente exakt übereinstimmt", "query": "exact argument count", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lang": "de", "candidates": [{"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "suche die funktion die prüft ob die anzahl der argumente exakt übereinstimmt", "query": "exact argument count", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lang": "de", "candidates": [{"text": "Next: read command_test.go lines=616-639\nread TestFlagBeforeCommand for detail", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1357-1380\nread TestValidArgsFuncSingleCmdInvalidArg for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=579-602\nread comps for detail", "file": "completions.go", "symbol": "comps", "line": 579, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=276-299\nread GenFishCompletion for detail", "file": "fish_completions.go", "symbol": "GenFishCompletion", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2929-2952\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2929, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/yaml_docs.go lines=60-83\nread GenYamlTreeCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTreeCustom", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=120-143\nread TestFailGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestFailGenFishCompletionFile", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=302-325\nread SetErr for detail", "file": "command.go", "symbol": "SetErr", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=225-248\nread stringInSlice for detail", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=345-368\nread TestExactArgs_WithInvalidCount for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=83-106\nread MarkFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=22-45\nread PositionalArgs for detail", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=547-570\nread FlagErrorFunc for detail", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=62-85\nread ShellCompDirectiveNoSpace for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoSpace", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=770-793\nread TestEmptyInputs for detail", "file": "command_test.go", "symbol": "TestEmptyInputs", "line": 770, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=229-252\nread TestBashCompletionHiddenFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionHiddenFlag", "line": 229, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "인자가 없는 명령어를 실행할 때 잘못된 인자를 넣으면 어떻게 처리되는지 테스트하는 부분 좀 찾아줘", "query": "no args invalid", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lang": "ko", "candidates": [{"text": "File: bash_completionsV2_test.go\nLine 23: func TestBashCompletionV2WithActiveHelp(t *testing.T) {", "file": "bash_completionsV2_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 34: clean:", "file": "Makefile", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 119: if (((directive & shellCompDirectiveKeepOrder) != 0)); then", "file": "bash_completionsV2.go", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 38: }", "file": "command_win.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 5: // You may obtain a copy of the License at", "file": "zsh_completions_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 50: func (s byName) Len() int { return len(s) }", "file": "doc/util.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 201: # If we want to prevent a space, or if file completion is NOT disabled,", "file": "fish_completions.go", "symbol": "", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 141: func TestNoArgs_WithValid_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nLine 22: const (", "file": "active_help.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "bash_completionsV2_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 29: }", "file": "doc/util.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 806: Short: fmt.Sprintf(shortDesc, \"bash\"),", "file": "completions.go", "symbol": "", "line": 806, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 87: file, err := os.CreateTemp(\"\", \"\")", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 50: buf := new(bytes.Buffer)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 594: WriteStringAndCheck(buf, \" must_have_one_flag=()\\n\")", "file": "bash_completions.go", "symbol": "", "line": 594, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 34: time.Sleep(MousetrapDisplayDuration)", "file": "command_win.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 44: }", "file": "doc/util.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 77: assertNoErr(t, rootCmd.GenFishCompletion(buf, false))", "file": "fish_completions_test.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 227: cmd.DisableAutoGenTag = c.DisableAutoGenTag", "file": "doc/man_docs.go", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 168: Usage: forceMultiLine(flag.Usage),", "file": "doc/yaml_docs.go", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/man_examples_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 131: # For zsh, when completing a flag with an = (e.g., %[1]s -n=)", "file": "zsh_completions.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 229: })", "file": "doc/man_docs.go", "symbol": "", "line": 229, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "인자가 없는 명령어를 실행할 때 잘못된 인자를 넣으면 어떻게 처리되는지 테스트하는 부분 좀 찾아줘", "query": "no args invalid", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lang": "ko", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestNoArgs_WithValid_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "인자가 없는 명령어를 실행할 때 잘못된 인자를 넣으면 어떻게 처리되는지 테스트하는 부분 좀 찾아줘", "query": "no args invalid", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lang": "ko", "candidates": [{"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "인자가 없는 명령어를 실행할 때 잘못된 인자를 넣으면 어떻게 처리되는지 테스트하는 부분 좀 찾아줘", "query": "no args invalid", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lang": "ko", "candidates": [{"text": "Next: read command_test.go lines=500-523\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 500, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=296-319\nread SetOut for detail", "file": "command.go", "symbol": "SetOut", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=245-268\nread TestDeadcodeElimination for detail", "file": "cobra_test.go", "symbol": "TestDeadcodeElimination", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=248-271\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=202-225\nread genMan for detail", "file": "doc/man_docs.go", "symbol": "genMan", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2162-2185\nread output for detail", "file": "completions_test.go", "symbol": "output", "line": 2162, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=716-739\nread TestDisableFlagParsing for detail", "file": "command_test.go", "symbol": "TestDisableFlagParsing", "line": 716, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=141-164\nread TestNoArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=1160-1183\nread TestFlagDirFilterCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagDirFilterCompletionInGo", "line": 1160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=123-146\nread SetDefaultShellCompDirective for detail", "file": "completions.go", "symbol": "SetDefaultShellCompDirective", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=328-351\nread SetFlagErrorFunc for detail", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=25-48\nread activeHelpMessage for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=42-65\nread GenZshCompletionNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionNoDesc", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=528-551\nread TestFlagShort for detail", "file": "command_test.go", "symbol": "TestFlagShort", "line": 528, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Where is the function that determines whether to use standard output or the error stream for writing?", "query": "output stderr writer", "file": "command.go", "symbol": "OutOrStderr", "line": 398, "lang": "en", "candidates": [{"text": "File: powershell_completions.go\nLine 145: __%[1]s_debug \"Received error from custom completion go code\"", "file": "powershell_completions.go", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 135: // If you have `cmd` with two subcmds, `sub` and `sub-third`,", "file": "doc/rest_docs.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 75: checkStringContains(t, output, rootCmd.Short)", "file": "doc/md_docs_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_notwin.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 10: default: all", "file": "Makefile", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 18: \"strings\"", "file": "doc/cmd_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 49: t.Errorf(\"Error thrown performing MatchString: \\n %s\\n\", err)", "file": "bash_completions_test.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 63: },", "file": "cobra_test.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "powershell_completions.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1169: rootCmd := &Command{Use: \"root\", Version: \"1.0.0\", Run: emptyRun}", "file": "command_test.go", "symbol": "", "line": 1169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 18: \"bytes\"", "file": "bash_completionsV2_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 273: // If a flag that is mutually exclusive to others is present, we hide the other", "file": "flag_groups.go", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 398: func (c *Command) OutOrStderr() io.Writer {", "file": "command.go", "symbol": "OutOrStderr", "line": 398, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_notwin.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_notwin.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 160: args: []string{\"--e=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 67: for _, v := range flagNames {", "file": "flag_groups.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 35: activeHelpFunc := func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) {", "file": "active_help_test.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 58: func activeHelpEnvVar(name string) string {", "file": "active_help.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 51: // defaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 135: fi", "file": "bash_completions.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 319: toComplete := args[len(args)-1]", "file": "completions.go", "symbol": "", "line": 319, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 176: } else {", "file": "doc/man_docs.go", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "zsh_completions_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 39: \"eq\": Eq,", "file": "cobra.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Where is the function that determines whether to use standard output or the error stream for writing?", "query": "output stderr writer", "file": "command.go", "symbol": "OutOrStderr", "line": 398, "lang": "en", "candidates": [{"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Where is the function that determines whether to use standard output or the error stream for writing?", "query": "output stderr writer", "file": "command.go", "symbol": "OutOrStderr", "line": 398, "lang": "en", "candidates": [{"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Where is the function that determines whether to use standard output or the error stream for writing?", "query": "output stderr writer", "file": "command.go", "symbol": "OutOrStderr", "line": 398, "lang": "en", "candidates": [{"text": "Next: read args_test.go lines=123-146\nread TestNoArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=407-430\nread TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 407, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=683-706\nread GenBashCompletion for detail", "file": "bash_completions.go", "symbol": "GenBashCompletion", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=398-421\nread OutOrStderr for detail", "file": "command.go", "symbol": "OutOrStderr", "line": 398, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=678-701\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=53-76\nread GenYamlTree for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTree", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=327-350\nread err for detail", "file": "completions.go", "symbol": "err", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=83-106\nread TestBashCompletions for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletions", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=47-70\nread GetActiveHelpConfig for detail", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=828-851\nread parentFlagValue for detail", "file": "command_test.go", "symbol": "parentFlagValue", "line": 828, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=492-515\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=740-763\nread TestPersistentFlagsOnSameCommand for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnSameCommand", "line": 740, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=100-123\nread compCmdName for detail", "file": "completions.go", "symbol": "compCmdName", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2381-2404\nread TestCompleteHelp for detail", "file": "completions_test.go", "symbol": "TestCompleteHelp", "line": 2381, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "테스트 실행을 위해 의존성 설치를 먼저 수행하고, 모든 디렉토리에 대해 상세 출력 옵션으로 Go 테스트를 실행하는 빌드 타겟을 찾아줘.", "query": "run tests", "file": "Makefile", "symbol": "test", "line": 22, "lang": "ko", "candidates": [{"text": "File: flag_groups_test.go\nLine 17: import (", "file": "flag_groups_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 469: fooCmd := &Command{", "file": "command_test.go", "symbol": "", "line": 469, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 22: test: install_deps", "file": "Makefile", "symbol": "test", "line": 22, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nLine 24: // Basically this is a test for a parent command or a subcommand which is", "file": "doc/util.go", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nLine 166: Name: flag.Name,", "file": "doc/yaml_docs.go", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 271: }", "file": "command.go", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 54: t.Errorf(\"expected: %q, got: %q\", expected, output)", "file": "active_help_test.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2059: if recover() == nil {", "file": "command_test.go", "symbol": "", "line": 2059, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 2034: }", "file": "command.go", "symbol": "", "line": 2034, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1104: // Workaround FAIL with \"go test -v\" or \"cobra.test -test.v\", see #155", "file": "command.go", "symbol": "", "line": 1104, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nLine 39: if test -n \"$file\"", "file": "fish_completions.go", "symbol": "", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nLine 58: // MarkPersistentFlagFilename instructs the various shell completion", "file": "shell_completions.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 54: checkStringContains(t, output, \"Options inherited from parent commands\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_win.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 96: tmpdir, err := os.MkdirTemp(\"\", \"test-gen-md-tree\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 96, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nLine 360: // Now test the global disabling of ActiveHelp", "file": "active_help_test.go", "symbol": "", "line": 360, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nLine 114: }", "file": "doc/md_docs.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 44: // Each test case uses a unique command from the function above.", "file": "flag_groups_test.go", "symbol": "", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nLine 67: checkOmit(t, output, \"__root-dash_perform_completion\")", "file": "fish_completions_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 148: c := getCommand(MatchAll(OnlyValidArgs, NoArgs), true)", "file": "args_test.go", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 613: if output != expected {", "file": "completions_test.go", "symbol": "", "line": 613, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 154: // The flag.ShorthandDeprecated is empty as the shorthand is deprecated.", "file": "doc/yaml_docs.go", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 131: rootCmd := &Command{Use: \"root\", Args: NoArgs, Run: emptyRun}", "file": "fish_completions_test.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "테스트 실행을 위해 의존성 설치를 먼저 수행하고, 모든 디렉토리에 대해 상세 출력 옵션으로 Go 테스트를 실행하는 빌드 타겟을 찾아줘.", "query": "run tests", "file": "Makefile", "symbol": "test", "line": 22, "lang": "ko", "candidates": [{"text": "File: Makefile\ndefines test", "file": "Makefile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "테스트 실행을 위해 의존성 설치를 먼저 수행하고, 모든 디렉토리에 대해 상세 출력 옵션으로 Go 테스트를 실행하는 빌드 타겟을 찾아줘.", "query": "run tests", "file": "Makefile", "symbol": "test", "line": 22, "lang": "ko", "candidates": [{"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=83-106\nread TestBashCompletions for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletions", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=689-712\nread Type for detail", "file": "completions_test.go", "symbol": "Type", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=78-101\nread bashCompletionFunc for detail", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2787-2810\nread TestCompleteWithDisableFlagParsing for detail", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=186-209\nread GetFlagCompletionFunc for detail", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=567-590\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=313-336\nread TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=547-570\nread FlagErrorFunc for detail", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=22-45\nread test for detail", "file": "Makefile", "symbol": "test", "line": 22, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=90-113\nread dummyCmd for detail", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=289-312\nread SetOutput for detail", "file": "command.go", "symbol": "SetOutput", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=66-89\nread ShellCompDirectiveNoFileComp for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoFileComp", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=83-106\nread MarkFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=27-50\nread assertNoErr for detail", "file": "cobra_test.go", "symbol": "assertNoErr", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "编写一个测试,验证在根命令同时定义了子命令和有效参数时,Shell 补全功能能否正确返回两者的列表。", "query": "shell completion test valid args", "file": "completions_test.go", "symbol": "TestValidArgsAndCmdCompletionInGo", "line": 376, "lang": "zh", "candidates": [{"text": "File: fish_completions_test.go\nLine 86: checkOmit(t, output, \"-c root_colon\")", "file": "fish_completions_test.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 136: }", "file": "args.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 31: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 114: desc: \"Persistent flags utilize one-required and exclusive groups and can fail one-required groups\",", "file": "flag_groups_test.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 20: \"testing\"", "file": "bash_completionsV2_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 6: endif", "file": "Makefile", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 14: fmt:", "file": "Makefile", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 13: // limitations under the License.", "file": "command_win.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 238: os.Exit(1)", "file": "cobra.go", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 16: // +build windows", "file": "command_win.go", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 38: }", "file": "command_win.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 27: // - subcommands will always accept arbitrary arguments", "file": "args.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 376: func TestValidArgsAndCmdCompletionInGo(t *testing.T) {", "file": "completions_test.go", "symbol": "TestValidArgsAndCmdCompletionInGo", "line": 376, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2_test.go\nLine 13: // limitations under the License.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 71: Title: \"Project\",", "file": "doc/man_docs_test.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 259: err := os.WriteFile(filename, []byte(`package main", "file": "cobra_test.go", "symbol": "", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 74: checkStringOmits(t, output, \"rootflag\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 10: default: all", "file": "Makefile", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 159: flag.Shorthand,", "file": "doc/yaml_docs.go", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 296: c := getCommand(MaximumNArgs(2), false)", "file": "args_test.go", "symbol": "", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_win.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 18: package cobra", "file": "command_notwin.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 968: if err := c.ValidateArgs(argWoFlags); err != nil {", "file": "command.go", "symbol": "", "line": 968, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 13: // limitations under the License.", "file": "doc/yaml_docs.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "编写一个测试,验证在根命令同时定义了子命令和有效参数时,Shell 补全功能能否正确返回两者的列表。", "query": "shell completion test valid args", "file": "completions_test.go", "symbol": "TestValidArgsAndCmdCompletionInGo", "line": 376, "lang": "zh", "candidates": [{"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "编写一个测试,验证在根命令同时定义了子命令和有效参数时,Shell 补全功能能否正确返回两者的列表。", "query": "shell completion test valid args", "file": "completions_test.go", "symbol": "TestValidArgsAndCmdCompletionInGo", "line": 376, "lang": "zh", "candidates": [{"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "编写一个测试,验证在根命令同时定义了子命令和有效参数时,Shell 补全功能能否正确返回两者的列表。", "query": "shell completion test valid args", "file": "completions_test.go", "symbol": "TestValidArgsAndCmdCompletionInGo", "line": 376, "lang": "zh", "candidates": [{"text": "Next: read bash_completions.go lines=523-546\nread writeLocalNonPersistentFlag for detail", "file": "bash_completions.go", "symbol": "writeLocalNonPersistentFlag", "line": 523, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=94-117\nread TestGenMdTree for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdTree", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=587-610\nread helpOrVersionFlagPresent for detail", "file": "completions.go", "symbol": "helpOrVersionFlagPresent", "line": 587, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=245-268\nread TestDeadcodeElimination for detail", "file": "cobra_test.go", "symbol": "TestDeadcodeElimination", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=188-211\nread validateExclusiveFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateExclusiveFlagGroups", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=138-161\nread GenReSTTree for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTree", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=28-51\nread genPowerShellComp for detail", "file": "powershell_completions.go", "symbol": "genPowerShellComp", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=275-298\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=213-236\nread TestArbitraryArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValidOnly_WithInvalidArgs", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=376-399\nread TestValidArgsAndCmdCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsAndCmdCompletionInGo", "line": 376, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=57-80\nread GenMarkdownCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownCustom", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=449-472\nread TestChildTakesNoArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesNoArgs", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=187-210\nread manPrintOptions for detail", "file": "doc/man_docs.go", "symbol": "manPrintOptions", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=84-107\nread ShellCompDirectiveKeepOrder for detail", "file": "completions.go", "symbol": "ShellCompDirectiveKeepOrder", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=326-349\nread finalArgs for detail", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=200-223\nread string for detail", "file": "completions.go", "symbol": "string", "line": 200, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "入力補完のテスト実行中に、予期しないエラーが発生してテストが失敗するケースがあります。エラー内容の検証ロジックを確認してください。", "query": "completion error test", "file": "completions_test.go", "symbol": "err", "line": 2163, "lang": "ja", "candidates": [{"text": "File: cobra_test.go\nLine 256: _ = os.Mkdir(dirname, 0770)", "file": "cobra_test.go", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 375: \"Completion ended with directive: ShellCompDirectiveDefault\", \"\"}, \"\\n\")", "file": "active_help_test.go", "symbol": "", "line": 375, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 121: case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:", "file": "cobra.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 65: if err := GenYamlTreeCustom(c, dir, filePrepender, linkHandler); err != nil {", "file": "doc/yaml_docs.go", "symbol": "", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nLine 18: \"strings\"", "file": "doc/cmd_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 186: }", "file": "doc/rest_docs.go", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2163: var err error", "file": "completions_test.go", "symbol": "err", "line": 2163, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 259: err := os.WriteFile(filename, []byte(`package main", "file": "cobra_test.go", "symbol": "", "line": 259, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_notwin.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 41: checkStringContains(t, output, fmt.Sprintf(\"- %s - %s\", echoSubCmd.CommandPath(), echoSubCmd.Short))", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 43: output, err := executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"\")", "file": "active_help_test.go", "symbol": "", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nLine 575: // if TraverseChildren is true we should allow to complete subcommands", "file": "bash_completions.go", "symbol": "", "line": 575, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 102: tmpFile, err := os.CreateTemp(\"\", \"cobra-test\")", "file": "fish_completions_test.go", "symbol": "", "line": 102, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nLine 238: os.Exit(1)", "file": "cobra.go", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 21: \"os\"", "file": "doc/man_docs.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 454: err := fn(c.OutOrStderr(), c)", "file": "command.go", "symbol": "", "line": 454, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nLine 104: // Execute method is terminated.", "file": "cobra.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 32: func executeCommand(root *Command, args ...string) (output string, err error) {", "file": "command_test.go", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nLine 108: for _, tt := range tests {", "file": "cobra_test.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 57: // Only errs if the flag isn't found.", "file": "flag_groups.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 49: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 152: return err", "file": "doc/md_docs.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 134: ValidArgsFunction: validArgsFunc,", "file": "fish_completions_test.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "入力補完のテスト実行中に、予期しないエラーが発生してテストが失敗するケースがあります。エラー内容の検証ロジックを確認してください。", "query": "completion error test", "file": "completions_test.go", "symbol": "err", "line": 2163, "lang": "ja", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "入力補完のテスト実行中に、予期しないエラーが発生してテストが失敗するケースがあります。エラー内容の検証ロジックを確認してください。", "query": "completion error test", "file": "completions_test.go", "symbol": "err", "line": 2163, "lang": "ja", "candidates": [{"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "入力補完のテスト実行中に、予期しないエラーが発生してテストが失敗するケースがあります。エラー内容の検証ロジックを確認してください。", "query": "completion error test", "file": "completions_test.go", "symbol": "err", "line": 2163, "lang": "ja", "candidates": [{"text": "Next: read completions.go lines=325-348\nread finalCmd for detail", "file": "completions.go", "symbol": "finalCmd", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=382-405\nread SetGlobalNormalizationFunc for detail", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=133-156\nread GenMarkdownTreeCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTreeCustom", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=505-528\nread getHelpTemplateFunc for detail", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=449-472\nread TestChildTakesNoArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesNoArgs", "line": 449, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2163-2186\nread err for detail", "file": "completions_test.go", "symbol": "err", "line": 2163, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=318-341\nread SetUsageTemplate for detail", "file": "command.go", "symbol": "SetUsageTemplate", "line": 318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=465-488\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=59-82\nread TestProgWithDash for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithDash", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=985-1008\nread CompError for detail", "file": "completions.go", "symbol": "CompError", "line": 985, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=47-70\nread GetActiveHelpConfig for detail", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=174-197\nread res for detail", "file": "doc/rest_docs.go", "symbol": "res", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=28-51\nread genPowerShellComp for detail", "file": "powershell_completions.go", "symbol": "genPowerShellComp", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=604-627\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=88-111\nread exactArgsWithInvalidCount for detail", "file": "args_test.go", "symbol": "exactArgsWithInvalidCount", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1006-1029\nread configEnvVar for detail", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "I need to find where we register the cleanup routines that get triggered once a command finishes its execution lifecycle. I'm looking for the logic that stores these callback functions for deferred execution.", "query": "run on finalize", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lang": "en", "candidates": [{"text": "File: doc/yaml_docs.go\nLine 37: type cmdDoc struct {", "file": "doc/yaml_docs.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 15: package doc_test", "file": "doc/man_examples_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 136: // and `sub` has a subcommand called `third`, it is undefined which", "file": "doc/rest_docs.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 222: # store temporary because switch will overwrite $_", "file": "powershell_completions.go", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "bash_completionsV2_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 30: header := &doc.GenManHeader{", "file": "doc/man_examples_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 56: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/util.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 96: expectErr: `if any flags in the group [a b] are set they must all be set; missing [b]`,", "file": "flag_groups_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1432: rootCmd := &Command{Use: \"root\", Run: emptyRun}", "file": "command_test.go", "symbol": "", "line": 1432, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "bash_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 31: $(info ******************** downloading dependencies ********************)", "file": "Makefile", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 65: return err", "file": "bash_completions_test.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 37: flags.PrintDefaults()", "file": "doc/md_docs.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 105: func OnFinalize(y ...func()) {", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args_test.go\nLine 55: func noArgsWithArgs(err error, t *testing.T, arg string) {", "file": "args_test.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 28: buf := new(bytes.Buffer)", "file": "doc/md_docs_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 92: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 35: rm -rf $(BIN)", "file": "Makefile", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 51: if !matched {", "file": "bash_completions_test.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 8: //", "file": "powershell_completions.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 38: }", "file": "zsh_completions.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 281: }", "file": "fish_completions.go", "symbol": "", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 15: package cobra", "file": "bash_completionsV2_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "I need to find where we register the cleanup routines that get triggered once a command finishes its execution lifecycle. I'm looking for the logic that stores these callback functions for deferred execution.", "query": "run on finalize", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lang": "en", "candidates": [{"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "I need to find where we register the cleanup routines that get triggered once a command finishes its execution lifecycle. I'm looking for the logic that stores these callback functions for deferred execution.", "query": "run on finalize", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lang": "en", "candidates": [{"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "I need to find where we register the cleanup routines that get triggered once a command finishes its execution lifecycle. I'm looking for the logic that stores these callback functions for deferred execution.", "query": "run on finalize", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lang": "en", "candidates": [{"text": "Next: read command_test.go lines=235-258\nread TestExecute_NoContext for detail", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read powershell_completions.go lines=342-365\nread GenPowerShellCompletionFileWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFileWithDesc", "line": 342, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=536-559\nread prepareCustomAnnotationsForFlags for detail", "file": "bash_completions.go", "symbol": "prepareCustomAnnotationsForFlags", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=26-49\nread TestGenMdDoc for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=105-128\nread OnFinalize for detail", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=520-543\nread Help for detail", "file": "command.go", "symbol": "Help", "line": 520, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=233-256\nread TestMinimumNArgs_WithValid__WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1357-1380\nread TestValidArgsFuncSingleCmdInvalidArg for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=121-144\nread processFlagForGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=89-112\nread TestFishCompletionNoActiveHelp for detail", "file": "fish_completions_test.go", "symbol": "TestFishCompletionNoActiveHelp", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=254-277\nread progname for detail", "file": "cobra_test.go", "symbol": "progname", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=560-583\nread minUsagePadding for detail", "file": "command.go", "symbol": "minUsagePadding", "line": 560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=980-1003\nread CompDebugln for detail", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=580-603\nread minNamePadding for detail", "file": "command.go", "symbol": "minNamePadding", "line": 580, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "コマンドの補完スクリプトを生成する際に、フラグの定義やローカルな非永続フラグの設定が正しく書き込まれていない可能性があります。特にサブコマンドの補完動作に影響を与えるフラグの出力処理を確認してください。", "query": "bash completion flags", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lang": "ja", "candidates": [{"text": "File: doc/yaml_docs_test.go\nLine 99: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 79: Short: \"A command which is deprecated\",", "file": "doc/cmd_test.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 197: set -l nofiles (math (math --scale 0 $directive / $shellCompDirectiveNoFileComp) %% 2)", "file": "fish_completions.go", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 36: func (c *Command) GenZshCompletionFileNoDesc(filename string) error {", "file": "zsh_completions.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 97: })", "file": "flag_groups.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2504: t.Errorf(\"Should have a 'completion' command when there are other sub-commands of root\")", "file": "completions_test.go", "symbol": "", "line": 2504, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 107: }", "file": "cobra.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 162: return choices, directive", "file": "completions.go", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 222: return", "file": "bash_completions_test.go", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "zsh_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "doc/util.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 131: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 36: c.Println(\"Press return to continue...\")", "file": "command_win.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 551: func writeFlags(buf io.StringWriter, cmd *Command) {", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Makefile\nLine 24: go test -v $(GO_TEST_FLAGS) ./...", "file": "Makefile", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 38: func GenManTree(cmd *cobra.Command, header *GenManHeader, dir string) error {", "file": "doc/man_docs.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 86: flags := c.Flags()", "file": "flag_groups.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 215: }", "file": "flag_groups.go", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "powershell_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 85: if cmd.HasParent() {", "file": "doc/md_docs.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1943: {{.UseLine}}{{end}}{{if .HasAvailableSubCommands}}", "file": "command.go", "symbol": "", "line": 1943, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 24: // Basically this is a test for a parent command or a subcommand which is", "file": "doc/util.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 18: \"bytes\"", "file": "doc/man_docs.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 84: buf.WriteString(\"### SEE ALSO\\n\\n\")", "file": "doc/md_docs.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "コマンドの補完スクリプトを生成する際に、フラグの定義やローカルな非永続フラグの設定が正しく書き込まれていない可能性があります。特にサブコマンドの補完動作に影響を与えるフラグの出力処理を確認してください。", "query": "bash completion flags", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lang": "ja", "candidates": [{"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "コマンドの補完スクリプトを生成する際に、フラグの定義やローカルな非永続フラグの設定が正しく書き込まれていない可能性があります。特にサブコマンドの補完動作に影響を与えるフラグの出力処理を確認してください。", "query": "bash completion flags", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lang": "ja", "candidates": [{"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> os", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> sort", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> io", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> strings", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions.go -> github.com/spf13/pflag", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "コマンドの補完スクリプトを生成する際に、フラグの定義やローカルな非永続フラグの設定が正しく書き込まれていない可能性があります。特にサブコマンドの補完動作に影響を与えるフラグの出力処理を確認してください。", "query": "bash completion flags", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lang": "ja", "candidates": [{"text": "Next: read bash_completions.go lines=30-53\nread BashCompFilenameExt for detail", "file": "bash_completions.go", "symbol": "BashCompFilenameExt", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=643-666\nread TestStripFlags for detail", "file": "command_test.go", "symbol": "TestStripFlags", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=82-105\nread ArbitraryArgs for detail", "file": "args.go", "symbol": "ArbitraryArgs", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=101-124\nread TestGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=91-114\nread AddTemplateFuncs for detail", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=123-146\nread TestNoArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=403-426\nread ErrOrStderr for detail", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=48-71\nread byName for detail", "file": "doc/util.go", "symbol": "byName", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=592-615\nread UsageTemplate for detail", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=73-96\nread ShellCompDirectiveFilterFileExt for detail", "file": "completions.go", "symbol": "ShellCompDirectiveFilterFileExt", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help_test.go lines=231-254\nread TestActiveHelpForFlag for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpForFlag", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=32-55\nread printOptions for detail", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=367-390\nread SetVersionTemplate for detail", "file": "command.go", "symbol": "SetVersionTemplate", "line": 367, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "引数が指定された数の範囲内にある場合に、正しく実行されるかを確認するテストコードはどこにありますか?", "query": "test valid arguments", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lang": "ja", "candidates": [{"text": "File: doc/yaml_docs.go\nLine 46: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 134: //", "file": "completions.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 35: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 48: type byName []*cobra.Command", "file": "doc/util.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 299: t.Error(\"compiled programs contains MethodByName symbol\")", "file": "cobra_test.go", "symbol": "", "line": 299, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 15: $(info ******************** checking formatting ********************)", "file": "Makefile", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 277: func TestMaximumNArgs_WithValid(t *testing.T) {", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\nLine 1613: }", "file": "completions_test.go", "symbol": "", "line": 1613, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 15: package doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 300: // This reduces possible side-effects of creating such a command;", "file": "completions.go", "symbol": "", "line": 300, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 33: if MousetrapDisplayDuration > 0 {", "file": "command_win.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 17: import (", "file": "doc/util.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 145: f, err := os.Create(filename)", "file": "doc/md_docs.go", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 208: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 45: for _, name := range []string{\"rootflag\", \"strtwo\"} {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 577: writeLocalNonPersistentFlag(buf, flag)", "file": "bash_completions.go", "symbol": "", "line": 577, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 443: completions = completeRequireFlags(finalCmd, toComplete)", "file": "completions.go", "symbol": "", "line": 443, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 151: #Split the output in name and description", "file": "powershell_completions.go", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 19: $(info ******************** running lint tools ********************)", "file": "Makefile", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/rest_docs.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2646: Use: \"sub\",", "file": "completions_test.go", "symbol": "", "line": 2646, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 327: local compline", "file": "bash_completionsV2.go", "symbol": "", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 83: tmpdir, err := os.MkdirTemp(\"\", \"test-gen-rst-tree\")", "file": "doc/rest_docs_test.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 48: Use: \"root\",", "file": "doc/cmd_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "引数が指定された数の範囲内にある場合に、正しく実行されるかを確認するテストコードはどこにありますか?", "query": "test valid arguments", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lang": "ja", "candidates": [{"text": "File: args_test.go\ndefines TestMaximumNArgs_WithValid", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "引数が指定された数の範囲内にある場合に、正しく実行されるかを確認するテストコードはどこにありますか?", "query": "test valid arguments", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lang": "ja", "candidates": [{"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "引数が指定された数の範囲内にある場合に、正しく実行されるかを確認するテストコードはどこにありますか?", "query": "test valid arguments", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lang": "ja", "candidates": [{"text": "Next: read command_test.go lines=828-851\nread parentFlagValue for detail", "file": "command_test.go", "symbol": "parentFlagValue", "line": 828, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=142-165\nread CompletionWithDesc for detail", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2545-2568\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2545, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=296-319\nread SetOut for detail", "file": "command.go", "symbol": "SetOut", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=583-606\nread TestFlagNameCompletionInGoWithDesc for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGoWithDesc", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=127-150\nread TestGenManSeeAlso for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2929-2952\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2929, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=432-455\nread getIn for detail", "file": "command.go", "symbol": "getIn", "line": 432, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=683-706\nread GenBashCompletion for detail", "file": "bash_completions.go", "symbol": "GenBashCompletion", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=618-641\nread VersionTemplate for detail", "file": "command.go", "symbol": "VersionTemplate", "line": 618, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=277-300\nread TestMaximumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=465-488\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=192-215\nread ld for detail", "file": "cobra.go", "symbol": "ld", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2916-2939\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2916, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=62-85\nread ShellCompDirectiveNoSpace for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoSpace", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=275-298\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=149-172\nread genFlagResult for detail", "file": "doc/yaml_docs.go", "symbol": "genFlagResult", "line": 149, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "encontra a função que encapsula a execução de um comando com argumentos e retorna o resultado ou erro", "query": "execute command args", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lang": "pt", "candidates": [{"text": "File: doc/md_docs_test.go\nLine 32: output := buf.String()", "file": "doc/md_docs_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "zsh_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "powershell_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 228: if not string match -r -q \"[@=/:.,]\" -- \"$lastChar\"", "file": "fish_completions.go", "symbol": "", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 605: format += cbn", "file": "bash_completions.go", "symbol": "", "line": 605, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 28: // Define lots of flags to utilize for testing.", "file": "flag_groups_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 43: output, err := executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"\")", "file": "active_help_test.go", "symbol": "", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nLine 120: desc: \"Persistent flags utilize required and exclusive groups and can fail mutually exclusive groups\",", "file": "flag_groups_test.go", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 64: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 13: // limitations under the License.", "file": "doc/man_examples_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 32: func executeCommand(root *Command, args ...string) (output string, err error) {", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nLine 67: rootCmd.DisableAutoGenTag = true", "file": "doc/rest_docs_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 16: @test -z $(shell gofmt -l $(SRC)) || (gofmt -d $(SRC); exit 1)", "file": "Makefile", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 52: // EnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing", "file": "cobra.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 600: if nonCompletableFlag(flag) {", "file": "completions.go", "symbol": "", "line": 600, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 450: if !c.IsAvailableCommand() && c != cmd.helpCommand {", "file": "bash_completions.go", "symbol": "", "line": 450, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 125: output, err := executeCommand(c)", "file": "args_test.go", "symbol": "", "line": 125, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nLine 158: done < <(printf \"%%s\\n\" \"${out[@]}\")", "file": "zsh_completions.go", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 54: __%[1]s_index_of_word()", "file": "bash_completions.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 89: output, err := executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"\")", "file": "completions_test.go", "symbol": "", "line": 89, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nLine 93: $WordToComplete = $Arguments.Split(\" \")[-1]", "file": "powershell_completions.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 110: return fmt.Errorf(\"accepts %d arg(s), received %d\", n, len(args))", "file": "args.go", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 62: var EnableCaseInsensitive = defaultCaseInsensitive", "file": "cobra.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2002: if output != expected {", "file": "completions_test.go", "symbol": "", "line": 2002, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "encontra a função que encapsula a execução de um comando com argumentos e retorna o resultado ou erro", "query": "execute command args", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lang": "pt", "candidates": [{"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "encontra a função que encapsula a execução de um comando com argumentos e retorna o resultado ou erro", "query": "execute command args", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lang": "pt", "candidates": [{"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "encontra a função que encapsula a execução de um comando com argumentos e retorna o resultado ou erro", "query": "execute command args", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lang": "pt", "candidates": [{"text": "Next: read args_test.go lines=129-152\nread TestNoArgs_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithArgs", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=26-49\nread activeHelpMessage2 for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=313-336\nread SetUsageFunc for detail", "file": "command.go", "symbol": "SetUsageFunc", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=233-256\nread TestMinimumNArgs_WithValid__WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=117-140\nread RangeArgs for detail", "file": "args.go", "symbol": "RangeArgs", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=277-300\nread TestMaximumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=186-209\nread GetFlagCompletionFunc for detail", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=142-165\nread ExactValidArgs for detail", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=275-298\nread SetContext for detail", "file": "command.go", "symbol": "SetContext", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=231-254\nread initCompleteCmd for detail", "file": "completions.go", "symbol": "initCompleteCmd", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=66-89\nread ShellCompDirectiveNoFileComp for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoFileComp", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=201-224\nread TestArbitraryArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=70-93\nread resetCommandLineFlagSet for detail", "file": "command_test.go", "symbol": "resetCommandLineFlagSet", "line": 70, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=90-113\nread shellCompDirectiveMaxValue for detail", "file": "completions.go", "symbol": "shellCompDirectiveMaxValue", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read shell_completions.go lines=77-100\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=526-549\nread UsageString for detail", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Wie wird getestet, ob ein Befehl fehlschlägt, wenn zwar nur gültige Argumente übergeben werden, aber die Anzahl der Argumente das Limit überschreitet?", "query": "maximum arguments test", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValidOnly_WithInvalidArgs", "line": 289, "lang": "de", "candidates": [{"text": "File: Makefile\nLine 34: clean:", "file": "Makefile", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3317: \":4\",", "file": "completions_test.go", "symbol": "", "line": 3317, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 67: childCmd.ValidArgsFunction = activeHelpFunc", "file": "active_help_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2490: Run: emptyRun,", "file": "completions_test.go", "symbol": "", "line": 2490, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_notwin.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 43: Title: \"MINE\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 164: {", "file": "cobra_test.go", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 397: # Remove an extra 4 because we add 2 spaces and 2 parentheses.", "file": "bash_completionsV2.go", "symbol": "", "line": 397, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "zsh_completions_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 39: if test -n \"$file\"", "file": "fish_completions.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 30: type cmdOption struct {", "file": "doc/yaml_docs.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 214: # Important not to quote the variable for count to work", "file": "fish_completions.go", "symbol": "", "line": 214, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 212: inputString: \"cobra\",", "file": "cobra_test.go", "symbol": "", "line": 212, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 17: import (", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 107: defer os.Remove(tmpFile.Name())", "file": "fish_completions_test.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 24: func (c *Command) MarkFlagRequired(name string) error {", "file": "shell_completions.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 289: func TestMaximumNArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValidOnly_WithInvalidArgs", "line": 289, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nLine 37: // ActiveHelp line will be shown below the previous ones when completion is triggered.", "file": "active_help.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 17: import (", "file": "powershell_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 40: // that do not contain \\n.", "file": "doc/util.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 112: file, err := os.CreateTemp(\"\", \"\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/man_examples_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 48: }", "file": "fish_completions_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2282: }", "file": "command_test.go", "symbol": "", "line": 2282, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Wie wird getestet, ob ein Befehl fehlschlägt, wenn zwar nur gültige Argumente übergeben werden, aber die Anzahl der Argumente das Limit überschreitet?", "query": "maximum arguments test", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValidOnly_WithInvalidArgs", "line": 289, "lang": "de", "candidates": [{"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestMaximumNArgs_WithValidOnly_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Wie wird getestet, ob ein Befehl fehlschlägt, wenn zwar nur gültige Argumente übergeben werden, aber die Anzahl der Argumente das Limit überschreitet?", "query": "maximum arguments test", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValidOnly_WithInvalidArgs", "line": 289, "lang": "de", "candidates": [{"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Wie wird getestet, ob ein Befehl fehlschlägt, wenn zwar nur gültige Argumente übergeben werden, aber die Anzahl der Argumente das Limit überschreitet?", "query": "maximum arguments test", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValidOnly_WithInvalidArgs", "line": 289, "lang": "de", "candidates": [{"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=985-1008\nread CompError for detail", "file": "completions.go", "symbol": "CompError", "line": 985, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=84-107\nread printCmd for detail", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=53-76\nread GenYamlTree for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTree", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=142-165\nread ExactValidArgs for detail", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=568-591\nread completionFn for detail", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=408-431\nread InOrStdin for detail", "file": "command.go", "symbol": "InOrStdin", "line": 408, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=80-103\nread genZshCompletion for detail", "file": "zsh_completions.go", "symbol": "genZshCompletion", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=38-61\nread GenManTree for detail", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=683-706\nread GenBashCompletion for detail", "file": "bash_completions.go", "symbol": "GenBashCompletion", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=537-560\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=333-356\nread SetHelpFunc for detail", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=187-210\nread manPrintOptions for detail", "file": "doc/man_docs.go", "symbol": "manPrintOptions", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=229-252\nread TestBashCompletionHiddenFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionHiddenFlag", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2850-2873\nread TestCompleteWithRootAndLegacyArgs for detail", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=289-312\nread TestMaximumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValidOnly_WithInvalidArgs", "line": 289, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/rest_docs_test.go lines=43-66\nread TestGenRSTNoHiddenParents for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoHiddenParents", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=151-174\nread NoFileCompletions for detail", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "특정 문자열이 나타나는 횟수를 검증하는 테스트 함수 찾아줘", "query": "count occurrences test", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lang": "ko", "candidates": [{"text": "File: doc/man_examples_test.go\nLine 22: \"github.com/spf13/cobra/doc\"", "file": "doc/man_examples_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 154: desc: \"Subcmds can use exclusive groups using inherited flags and pass\",", "file": "flag_groups_test.go", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 675: },", "file": "command_test.go", "symbol": "", "line": 675, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 95: __%[1]s_debug \"New WordToComplete: $WordToComplete\"", "file": "powershell_completions.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 39: check(t, output, ShellCompNoDescRequestCmd)", "file": "fish_completions_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 591: }", "file": "completions.go", "symbol": "", "line": 591, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 279: _, err := buf.WriteTo(w)", "file": "fish_completions.go", "symbol": "", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 227: set -l lastChar (string sub -s -1 -- $split)", "file": "fish_completions.go", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1597: return c.Run != nil || c.RunE != nil", "file": "command.go", "symbol": "", "line": 1597, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 48: func GenManTreeFromOpts(cmd *cobra.Command, opts GenManTreeOptions) error {", "file": "doc/man_docs.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 30: header := &doc.GenManHeader{", "file": "doc/man_examples_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 37: func ExampleGenMan() {", "file": "doc/man_examples_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 24: \"os\"", "file": "powershell_completions.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 76: buf.WriteString(\"### Examples\\n\\n\")", "file": "doc/md_docs.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 48: t.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 12: // See the License for the specific language governing permissions and", "file": "active_help.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 69: }", "file": "doc/man_docs.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 39: func checkNumOccurrences(t *testing.T, found, expected string, expectedOccurrences int) {", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nLine 110: return err", "file": "doc/man_docs.go", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_notwin.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 26: )", "file": "bash_completions.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "특정 문자열이 나타나는 횟수를 검증하는 테스트 함수 찾아줘", "query": "count occurrences test", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lang": "ko", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "특정 문자열이 나타나는 횟수를 검증하는 테스트 함수 찾아줘", "query": "count occurrences test", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lang": "ko", "candidates": [{"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> os/exec", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> strings", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> regexp", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> os", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> testing", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "특정 문자열이 나타나는 횟수를 검증하는 테스트 함수 찾아줘", "query": "count occurrences test", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lang": "ko", "candidates": [{"text": "Next: read command_test.go lines=113-136\nread TestChildCommand for detail", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=327-350\nread TestExactArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=49-72\nread defaultTraverseRunHooks for detail", "file": "cobra.go", "symbol": "defaultTraverseRunHooks", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=192-215\nread ld for detail", "file": "cobra.go", "symbol": "ld", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=30-53\nread markdownExtension for detail", "file": "doc/md_docs.go", "symbol": "markdownExtension", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=604-627\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=56-79\nread runShellCheck for detail", "file": "bash_completions_test.go", "symbol": "runShellCheck", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=235-258\nread TestExecute_NoContext for detail", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=26-49\nread TestGenMdDoc for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=263-286\nread TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=175-198\nread TestNoDuplicateArgs_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithDuplicateArgs", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=78-101\nread bashCompletionFunc for detail", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=99-122\nread rangeArgsWithInvalidCount for detail", "file": "args_test.go", "symbol": "rangeArgsWithInvalidCount", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=618-641\nread VersionTemplate for detail", "file": "command.go", "symbol": "VersionTemplate", "line": 618, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=770-793\nread TestEmptyInputs for detail", "file": "command_test.go", "symbol": "TestEmptyInputs", "line": 770, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "텍스트 입력을 한 줄씩 읽으면서 특정 문자열이 포함되어 있는지 확인하고, 찾지 못하거나 읽기 오류가 발생했을 때 에러를 반환하는 로직을 찾아주세요.", "query": "scanner scan line", "file": "doc/man_docs_test.go", "symbol": "assertLineFound", "line": 186, "lang": "ko", "candidates": [{"text": "File: zsh_completions.go\nLine 195: fi", "file": "zsh_completions.go", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 132: // with custom filePrepender and linkHandler.", "file": "doc/md_docs.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 232: # 1) CompletionText text to be used as the auto completion result", "file": "powershell_completions.go", "symbol": "", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "active_help.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 58: c := &cobra.Command{Use: \"do [OPTIONS] arg1 arg2\"}", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 293: }", "file": "args_test.go", "symbol": "", "line": 293, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 88: }", "file": "doc/cmd_test.go", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 40: }", "file": "fish_completions_test.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 12: // See the License for the specific language governing permissions and", "file": "doc/man_docs.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 96: // MaximumNArgs returns an error if there are more than N args.", "file": "args.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 29: Use: \"child\",", "file": "fish_completions_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 20: \"io\"", "file": "doc/rest_docs.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_notwin.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 20: \"io\"", "file": "doc/md_docs.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2414: c, _, err := rootCmd.Traverse([]string{\"sub\", \"subsub\"})", "file": "command_test.go", "symbol": "", "line": 2414, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 71: if err := GenReST(rootCmd, buf); err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 186: func assertLineFound(scanner *bufio.Scanner, expectedLine string) error {", "file": "doc/man_docs_test.go", "symbol": "assertLineFound", "line": 186, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nLine 166: format = fmt.Sprintf(\"**-%s**, **--%s**\", flag.Shorthand, flag.Name)", "file": "doc/man_docs.go", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 195: if flags.HasAvailableFlags() {", "file": "doc/man_docs.go", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 201: }", "file": "powershell_completions.go", "symbol": "", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1314: }", "file": "command.go", "symbol": "", "line": 1314, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 12: // See the License for the specific language governing permissions and", "file": "bash_completions.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 19: \"fmt\"", "file": "bash_completionsV2_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 306: // SetIn sets the source for input data", "file": "command.go", "symbol": "", "line": 306, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "텍스트 입력을 한 줄씩 읽으면서 특정 문자열이 포함되어 있는지 확인하고, 찾지 못하거나 읽기 오류가 발생했을 때 에러를 반환하는 로직을 찾아주세요.", "query": "scanner scan line", "file": "doc/man_docs_test.go", "symbol": "assertLineFound", "line": 186, "lang": "ko", "candidates": [{"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nelsewhere in the tree", "file": "Makefile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\ndefines assertLineFound", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "텍스트 입력을 한 줄씩 읽으면서 특정 문자열이 포함되어 있는지 확인하고, 찾지 못하거나 읽기 오류가 발생했을 때 에러를 반환하는 로직을 찾아주세요.", "query": "scanner scan line", "file": "doc/man_docs_test.go", "symbol": "assertLineFound", "line": 186, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> path/filepath", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> os", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> fmt", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> strings", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> testing", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> github.com/spf13/cobra", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "텍스트 입력을 한 줄씩 읽으면서 특정 문자열이 포함되어 있는지 확인하고, 찾지 못하거나 읽기 오류가 발생했을 때 에러를 반환하는 로직을 찾아주세요.", "query": "scanner scan line", "file": "doc/man_docs_test.go", "symbol": "assertLineFound", "line": 186, "lang": "ko", "candidates": [{"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=245-268\nread TestDeadcodeElimination for detail", "file": "cobra_test.go", "symbol": "TestDeadcodeElimination", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=159-182\nread TestSubcommandExecuteC for detail", "file": "command_test.go", "symbol": "TestSubcommandExecuteC", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=225-248\nread stringInSlice for detail", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=592-615\nread UsageTemplate for detail", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=138-161\nread TestCallCommandWithoutSubcommands for detail", "file": "command_test.go", "symbol": "TestCallCommandWithoutSubcommands", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=143-166\nread manPreamble for detail", "file": "doc/man_docs.go", "symbol": "manPreamble", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=466-489\nread TestChildTakesArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=493-516\nread TestFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGo", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2926-2949\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2926, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=393-416\nread OutOrStdout for detail", "file": "command.go", "symbol": "OutOrStdout", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=932-955\nread findFlag for detail", "file": "completions.go", "symbol": "findFlag", "line": 932, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=44-67\nread TestGenYamlNoTag for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlNoTag", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=186-209\nread assertLineFound for detail", "file": "doc/man_docs_test.go", "symbol": "assertLineFound", "line": 186, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/yaml_docs_test.go lines=86-109\nread BenchmarkGenYamlToFile for detail", "file": "doc/yaml_docs_test.go", "symbol": "BenchmarkGenYamlToFile", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=717-740\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 717, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "检查字符串是否不期望包含特定子串并报错", "query": "test omit string", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lang": "zh", "candidates": [{"text": "File: command_test.go\nLine 1306: t.Errorf(\"Unexpected error: %v\", err)", "file": "command_test.go", "symbol": "", "line": 1306, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 8: //", "file": "command_notwin.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 27: // We generate on subcommand so we have both subcommands and parents.", "file": "doc/md_docs_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 50: //", "file": "shell_completions.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 80: func checkStringOmits(t *testing.T, got, expected string) {", "file": "command_test.go", "symbol": "", "line": 80, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nLine 119: Aliases: []string{\"say\"},", "file": "bash_completions_test.go", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 155: done", "file": "bash_completionsV2.go", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 110: child := &Command{", "file": "fish_completions_test.go", "symbol": "", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 288: }", "file": "cobra_test.go", "symbol": "", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 54: checkStringOmits(t, output, \"Auto generated\")", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nLine 54: identity := func(s string) string { return s }", "file": "doc/yaml_docs.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 250: $CompletionText", "file": "powershell_completions.go", "symbol": "", "line": 250, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 52: s string", "file": "cobra_test.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 40: checkStringOmits(t, output, deprecatedCmd.Short)", "file": "doc/md_docs_test.go", "symbol": "", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nLine 143: list: []string{\"orange\", \"banana\", \"apple\", \"grape\"},", "file": "cobra_test.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 8: //", "file": "doc/util.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 27: $(info ******************** running tests with kyoh86/richgo ********************)", "file": "Makefile", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 101: func checkStringOmits(t *testing.T, got, expected string) {", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nLine 40: checkStringOmits(t, output, deprecatedCmd.Short)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nLine 66: func TestGenRSTNoTag(t *testing.T) {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 100: if cmd.HasParent() {", "file": "doc/rest_docs.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_notwin.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 65: checkStringOmits(t, output, translate(deprecatedCmd.Name()))", "file": "doc/man_docs_test.go", "symbol": "", "line": 65, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "检查字符串是否不期望包含特定子串并报错", "query": "test omit string", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lang": "zh", "candidates": [{"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nelsewhere in the tree", "file": "Makefile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\ndefines checkStringOmits", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nelsewhere in the tree", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "检查字符串是否不期望包含特定子串并报错", "query": "test omit string", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lang": "zh", "candidates": [{"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> github.com/spf13/cobra", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "检查字符串是否不期望包含特定子串并报错", "query": "test omit string", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lang": "zh", "candidates": [{"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=120-143\nread TestFailGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestFailGenFishCompletionFile", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=750-773\nread isFlagArg for detail", "file": "command.go", "symbol": "isFlagArg", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=520-543\nread Help for detail", "file": "command.go", "symbol": "Help", "line": 520, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=31-54\nread genBashComp for detail", "file": "bash_completionsV2.go", "symbol": "genBashComp", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=788-811\nread sb for detail", "file": "command.go", "symbol": "sb", "line": 788, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=482-505\nread GenBashCompletionV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionV2", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=161-184\nread TestOnlyValidArgs_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs_WithInvalidArgs", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=101-124\nread checkStringOmits for detail", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=599-622\nread getFlagNameCompletions for detail", "file": "completions.go", "symbol": "getFlagNameCompletions", "line": 599, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=740-763\nread TestPersistentFlagsOnSameCommand for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnSameCommand", "line": 740, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Lors de la génération des suggestions, le système ne semble pas capturer ou remonter l'échec de l'opération lorsque la recherche échoue, ce qui empêche de gérer correctement le cas où aucun résultat n'est disponible.", "query": "completion error handling", "file": "completions.go", "symbol": "err", "line": 327, "lang": "fr", "candidates": [{"text": "File: fish_completions.go\nLine 53: __%[1]s_debug \"last arg: $lastArg\"", "file": "fish_completions.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 58: c := &cobra.Command{Use: \"do [OPTIONS] arg1 arg2\"}", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 35: func expectSuccess(output string, err error, t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nLine 13: // limitations under the License.", "file": "command_win.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 244: _, err := b.WriteString(s)", "file": "cobra.go", "symbol": "", "line": 244, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\nLine 94: if err := printOptionsReST(buf, cmd, name); err != nil {", "file": "doc/rest_docs.go", "symbol": "", "line": 94, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nLine 828: case strings.HasPrefix(arg, \"--\") && !strings.Contains(arg, \"=\"):", "file": "command.go", "symbol": "", "line": 828, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 327: var err error", "file": "completions.go", "symbol": "err", "line": 327, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nLine 207: dashCommandName := strings.ReplaceAll(cmd.CommandPath(), \" \", \"-\")", "file": "doc/man_docs.go", "symbol": "", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 275: # Type: menu-complete/menu-complete-backward and insert-completions", "file": "bash_completionsV2.go", "symbol": "", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 186: err := c.Execute()", "file": "flag_groups_test.go", "symbol": "", "line": 186, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "fish_completions.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 107: for i := 0; i < b.N; i++ {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 716: sliceFlag := rootCmd.Flags().Lookup(\"slice\")", "file": "completions_test.go", "symbol": "", "line": 716, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 24: go test -v $(GO_TEST_FLAGS) ./...", "file": "Makefile", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 71: outFile, err := os.Create(filename)", "file": "zsh_completions.go", "symbol": "", "line": 71, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nLine 31: echoCmd.PersistentFlags().BoolP(\"persistentbool\", \"p\", false, \"help message for flag persistentbool\")", "file": "doc/cmd_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 29: if err := GenReST(echoCmd, buf); err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\nLine 1883: \"test\",", "file": "completions_test.go", "symbol": "", "line": 1883, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 163: result = append(result, opt)", "file": "doc/yaml_docs.go", "symbol": "", "line": 163, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 10: default: all", "file": "Makefile", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/rest_docs_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 153: # Start fresh", "file": "fish_completions.go", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 58: func activeHelpEnvVar(name string) string {", "file": "active_help.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Lors de la génération des suggestions, le système ne semble pas capturer ou remonter l'échec de l'opération lorsque la recherche échoue, ce qui empêche de gérer correctement le cas où aucun résultat n'est disponible.", "query": "completion error handling", "file": "completions.go", "symbol": "err", "line": 327, "lang": "fr", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Lors de la génération des suggestions, le système ne semble pas capturer ou remonter l'échec de l'opération lorsque la recherche échoue, ce qui empêche de gérer correctement le cas où aucun résultat n'est disponible.", "query": "completion error handling", "file": "completions.go", "symbol": "err", "line": 327, "lang": "fr", "candidates": [{"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Lors de la génération des suggestions, le système ne semble pas capturer ou remonter l'échec de l'opération lorsque la recherche échoue, ce qui empêche de gérer correctement le cas où aucun résultat n'est disponible.", "query": "completion error handling", "file": "completions.go", "symbol": "err", "line": 327, "lang": "fr", "candidates": [{"text": "Next: read command.go lines=422-445\nread getErr for detail", "file": "command.go", "symbol": "getErr", "line": 422, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1318-1341\nread TestValidArgsFuncSingleCmd for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=327-350\nread err for detail", "file": "completions.go", "symbol": "err", "line": 327, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/rest_docs.go lines=173-196\nread indentString for detail", "file": "doc/rest_docs.go", "symbol": "indentString", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=81-104\nread ValidateFlagGroups for detail", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=233-256\nread TestMinimumNArgs_WithValid__WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=36-59\nread GenZshCompletionFileNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFileNoDesc", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=135-158\nread TestNoArgs_WithValid_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=133-156\nread GenMarkdownTreeCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTreeCustom", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=680-703\nread String for detail", "file": "completions_test.go", "symbol": "String", "line": 680, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=48-71\nread defaultCaseInsensitive for detail", "file": "cobra.go", "symbol": "defaultCaseInsensitive", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=269-292\nread Context for detail", "file": "command.go", "symbol": "Context", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=773-796\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 773, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Como validar se a função de compleição de argumentos única de um comando raiz está retornando as sugestões corretas para strings vazias e com prefixo?", "query": "valid args function test", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lang": "pt", "candidates": [{"text": "File: doc/util.go\nLine 17: import (", "file": "doc/util.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 356: if output != expected {", "file": "active_help_test.go", "symbol": "", "line": 356, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 23: // Test to see if we have a reason to print See Also information in docs", "file": "doc/util.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 287: }", "file": "active_help_test.go", "symbol": "", "line": 287, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 327: Short: \"The child command\",", "file": "active_help_test.go", "symbol": "", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1318: func TestValidArgsFuncSingleCmd(t *testing.T) {", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/util.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 27: assertNoErr(t, c.GenZshCompletion(buf))", "file": "zsh_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 36: checkStringContains(t, output, \"boolone\")", "file": "doc/md_docs_test.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 51: }", "file": "active_help.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_notwin.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 205: comp=${comp//:/\\\\:}", "file": "zsh_completions.go", "symbol": "", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 135: right, _ = strconv.ParseInt(bv.String(), 10, 64)", "file": "cobra.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 13: // limitations under the License.", "file": "doc/man_examples_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 1: BIN=\"./bin\"", "file": "Makefile", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 157: }", "file": "command_test.go", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "bash_completionsV2_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 271: // Otherwise the shell scripts will interpret the other lines as new flags", "file": "completions.go", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 199: }", "file": "command_test.go", "symbol": "", "line": 199, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 5: // You may obtain a copy of the License at", "file": "powershell_completions_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 23: $(info ******************** running tests ********************)", "file": "Makefile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 295: fi", "file": "zsh_completions.go", "symbol": "", "line": 295, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Como validar se a função de compleição de argumentos única de um comando raiz está retornando as sugestões corretas para strings vazias e com prefixo?", "query": "valid args function test", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lang": "pt", "candidates": [{"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Como validar se a função de compleição de argumentos única de um comando raiz está retornando as sugestões corretas para strings vazias e com prefixo?", "query": "valid args function test", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lang": "pt", "candidates": [{"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Como validar se a função de compleição de argumentos única de um comando raiz está retornando as sugestões corretas para strings vazias e com prefixo?", "query": "valid args function test", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lang": "pt", "candidates": [{"text": "Next: read command_test.go lines=643-666\nread TestStripFlags for detail", "file": "command_test.go", "symbol": "TestStripFlags", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=465-488\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=407-430\nread TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 407, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=593-616\nread writeRequiredFlag for detail", "file": "bash_completions.go", "symbol": "writeRequiredFlag", "line": 593, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=337-360\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=447-470\nread writeCommands for detail", "file": "bash_completions.go", "symbol": "writeCommands", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=89-112\nread TestFishCompletionNoActiveHelp for detail", "file": "fish_completions_test.go", "symbol": "TestFishCompletionNoActiveHelp", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=150-173\nread result for detail", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=318-341\nread SetUsageTemplate for detail", "file": "command.go", "symbol": "SetUsageTemplate", "line": 318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=529-552\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 529, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=30-53\nread install_deps for detail", "file": "Makefile", "symbol": "install_deps", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=206-229\nread TestExecuteContextC for detail", "file": "command_test.go", "symbol": "TestExecuteContextC", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1318-1341\nread TestValidArgsFuncSingleCmd for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=229-252\nread TestBashCompletionHiddenFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionHiddenFlag", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "帮我找一下那个处理错误并直接退出程序的工具函数。我需要确认一下它在打印错误信息时具体的格式是怎么样的。", "query": "print error exit", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lang": "zh", "candidates": [{"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 34: cobra.CheckErr(doc.GenManTree(cmd, header, \"/tmp\"))", "file": "doc/man_examples_test.go", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nLine 372: if [[ \"$comp\" == *${char}* && \"$COMP_WORDBREAKS\" == *${char}* ]]; then", "file": "bash_completionsV2.go", "symbol": "", "line": 372, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 37: func ExampleGenMan() {", "file": "doc/man_examples_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 77: func MarkFlagCustom(flags *pflag.FlagSet, name string, f string) error {", "file": "shell_completions.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 535: CheckErr(c.Usage())", "file": "command.go", "symbol": "", "line": 535, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nLine 95: func checkStringContains(t *testing.T, got, expected string) {", "file": "doc/cmd_test.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 141: t.Errorf(\"expected: %q, got: %q\", expected, output)", "file": "active_help_test.go", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 71: checkOmit(t, output, \"-c root_dash\")", "file": "fish_completions_test.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "bash_completionsV2_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 426: if err != nil {", "file": "command_test.go", "symbol": "", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 235: func CheckErr(msg interface{}) {", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions.go\nLine 665: trimmedArgs := args", "file": "completions.go", "symbol": "", "line": 665, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 123: parent := cmd.Parent()", "file": "doc/yaml_docs.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 165: if [[ -n $subdir ]]; then", "file": "bash_completionsV2.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2129: func TestSetOutput(t *testing.T) {", "file": "command_test.go", "symbol": "", "line": 2129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 236: }", "file": "doc/man_docs.go", "symbol": "", "line": 236, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "fish_completions_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 146: if err != nil {", "file": "doc/md_docs.go", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 97: checkStringOmits(t, output, \"rootflag\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 69: CheckErr(err)", "file": "bash_completions_test.go", "symbol": "", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nLine 8: .PHONY: fmt lint test install_deps clean", "file": "Makefile", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 35: } else {", "file": "command_win.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 405: if flag != nil && flagCompletion {", "file": "completions.go", "symbol": "", "line": 405, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "帮我找一下那个处理错误并直接退出程序的工具函数。我需要确认一下它在打印错误信息时具体的格式是怎么样的。", "query": "print error exit", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lang": "zh", "candidates": [{"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "帮我找一下那个处理错误并直接退出程序的工具函数。我需要确认一下它在打印错误信息时具体的格式是怎么样的。", "query": "print error exit", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lang": "zh", "candidates": [{"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "帮我找一下那个处理错误并直接退出程序的工具函数。我需要确认一下它在打印错误信息时具体的格式是怎么样的。", "query": "print error exit", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lang": "zh", "candidates": [{"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=432-455\nread getIn for detail", "file": "command.go", "symbol": "getIn", "line": 432, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=289-312\nread SetOutput for detail", "file": "command.go", "symbol": "SetOutput", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=491-514\nread TestFlagLong for detail", "file": "command_test.go", "symbol": "TestFlagLong", "line": 491, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=111-134\nread hasAllFlags for detail", "file": "flag_groups.go", "symbol": "hasAllFlags", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=281-304\nread SetArgs for detail", "file": "command.go", "symbol": "SetArgs", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=955-978\nread CompDebug for detail", "file": "completions.go", "symbol": "CompDebug", "line": 955, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2694-2717\nread TestMultipleShorthandFlagCompletion for detail", "file": "completions_test.go", "symbol": "TestMultipleShorthandFlagCompletion", "line": 2694, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=593-616\nread writeRequiredFlag for detail", "file": "bash_completions.go", "symbol": "writeRequiredFlag", "line": 593, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=377-400\nread TestRangeArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=235-258\nread CheckErr for detail", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "There is no way to override the default help output or provide a custom way to display how to use the application when running commands.", "query": "custom usage function", "file": "command.go", "symbol": "SetUsageFunc", "line": 313, "lang": "en", "candidates": [{"text": "File: bash_completions.go\nLine 504: WriteStringAndCheck(buf, fmt.Sprintf(format, name))", "file": "bash_completions.go", "symbol": "", "line": 504, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 107: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 57: if err := GenManTreeFromOpts(c, opts); err != nil {", "file": "doc/man_docs.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "doc/md_docs_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 82: // GenManTreeOptions is the options for generating the man pages.", "file": "doc/man_docs.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 313: func (c *Command) SetUsageFunc(f func(*Command) error) {", "file": "command.go", "symbol": "SetUsageFunc", "line": 313, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nLine 28: \"github.com/cpuguy83/go-md2man/v2/md2man\"", "file": "doc/man_docs.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 937: if short := flagSet.ShorthandLookup(name); short != nil {", "file": "completions.go", "symbol": "", "line": 937, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 105: cname := name + \" \" + child.Name()", "file": "doc/md_docs.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 34: checkStringContains(t, output, echoCmd.Long)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/man_examples_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 15: package cobra", "file": "zsh_completions.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 270: else", "file": "zsh_completions.go", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 93: }", "file": "doc/cmd_test.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 8: //", "file": "zsh_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 61: if got != expected {", "file": "args_test.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 213: check(t, output, `local_nonpersistent_flags+=(\"--two=\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 20: var preExecHookFn func(*Command)", "file": "command_notwin.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "command_notwin.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 92: }", "file": "shell_completions.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 43: buf.WriteString(\"Options inherited from parent commands\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 202: t.Errorf(\"Command child must not fail: %+v\", err)", "file": "command_test.go", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 39: return flags.SetAnnotation(name, BashCompOneRequiredFlag, []string{\"true\"})", "file": "shell_completions.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 158: expected := \"**--foo**=\\\"default\\\"\\n\\tFoo flag\\n\\n\"", "file": "doc/man_docs_test.go", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "There is no way to override the default help output or provide a custom way to display how to use the application when running commands.", "query": "custom usage function", "file": "command.go", "symbol": "SetUsageFunc", "line": 313, "lang": "en", "candidates": [{"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "There is no way to override the default help output or provide a custom way to display how to use the application when running commands.", "query": "custom usage function", "file": "command.go", "symbol": "SetUsageFunc", "line": 313, "lang": "en", "candidates": [{"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "There is no way to override the default help output or provide a custom way to display how to use the application when running commands.", "query": "custom usage function", "file": "command.go", "symbol": "SetUsageFunc", "line": 313, "lang": "en", "candidates": [{"text": "Next: read cobra.go lines=159-182\nread trimRightSpace for detail", "file": "cobra.go", "symbol": "trimRightSpace", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=186-209\nread assertLineFound for detail", "file": "doc/man_docs_test.go", "symbol": "assertLineFound", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=66-89\nread ShellCompDirectiveNoFileComp for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoFileComp", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2607-2630\nread TestCompleteCompletion for detail", "file": "completions_test.go", "symbol": "TestCompleteCompletion", "line": 2607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=88-111\nread TestSingleCommand for detail", "file": "command_test.go", "symbol": "TestSingleCommand", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=313-336\nread SetUsageFunc for detail", "file": "command.go", "symbol": "SetUsageFunc", "line": 313, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=243-266\nread WriteStringAndCheck for detail", "file": "cobra.go", "symbol": "WriteStringAndCheck", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=188-211\nread validateExclusiveFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateExclusiveFlagGroups", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=401-424\nread TestRangeArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=372-395\nread TestPlugin for detail", "file": "command_test.go", "symbol": "TestPlugin", "line": 372, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=105-128\nread GenMan for detail", "file": "doc/man_docs.go", "symbol": "GenMan", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=103-126\nread compCmdNoDescFlagDefault for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagDefault", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=151-174\nread NoFileCompletions for detail", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=105-128\nread OnFinalize for detail", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "查找返回版本模板字符串且包含回溯逻辑的实现", "query": "version template", "file": "command.go", "symbol": "VersionTemplate", "line": 618, "lang": "zh", "candidates": [{"text": "File: doc/man_docs_test.go\nLine 181: if header.Title != \"\" {", "file": "doc/man_docs_test.go", "symbol": "", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 38: buf.WriteString(\"```\\n\\n\")", "file": "doc/md_docs.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 324: expectSuccess(output, err, t)", "file": "args_test.go", "symbol": "", "line": 324, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "zsh_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 93: }", "file": "doc/cmd_test.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 42: parentFlags.SetOutput(buf)", "file": "doc/md_docs.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 48: return nil", "file": "doc/md_docs.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 507: },", "file": "args_test.go", "symbol": "", "line": 507, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 126: buf.WriteString(\"*Auto generated by spf13/cobra on \" + time.Now().Format(\"2-Jan-2006\") + \"*\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 45: testcases := []struct {", "file": "flag_groups_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 618: func (c *Command) VersionTemplate() string {", "file": "command.go", "symbol": "VersionTemplate", "line": 618, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nLine 59: for _, v := range args {", "file": "args.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 335: // this is for backwards-compatibility as programs will be using this value.", "file": "active_help_test.go", "symbol": "", "line": 335, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 83: # Split the command at the first space to separate the program and arguments.", "file": "powershell_completions.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 486: ext = fmt.Sprintf(\"__%s_handle_subdirs_in_dir_flag \", cmd.Root().Name()) + value[0]", "file": "bash_completions.go", "symbol": "", "line": 486, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "powershell_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "powershell_completions.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 246: for _, fName := range strings.Split(flagList, \" \") {", "file": "flag_groups.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 19: $(info ******************** running lint tools ********************)", "file": "Makefile", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 13: // limitations under the License.", "file": "active_help.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 427: __start_%[1]s()", "file": "bash_completionsV2.go", "symbol": "", "line": 427, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 159: return err", "file": "doc/rest_docs.go", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 97: Date *time.Time", "file": "doc/man_docs.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "查找返回版本模板字符串且包含回溯逻辑的实现", "query": "version template", "file": "command.go", "symbol": "VersionTemplate", "line": 618, "lang": "zh", "candidates": [{"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "查找返回版本模板字符串且包含回溯逻辑的实现", "query": "version template", "file": "command.go", "symbol": "VersionTemplate", "line": 618, "lang": "zh", "candidates": [{"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "查找返回版本模板字符串且包含回溯逻辑的实现", "query": "version template", "file": "command.go", "symbol": "VersionTemplate", "line": 618, "lang": "zh", "candidates": [{"text": "Next: read cobra.go lines=105-128\nread OnFinalize for detail", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=209-232\nread sortedKeys for detail", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help_test.go lines=169-192\nread TestMultiActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestMultiActiveHelp", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=159-182\nread trimRightSpace for detail", "file": "cobra.go", "symbol": "trimRightSpace", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=25-48\nread genFishComp for detail", "file": "fish_completions.go", "symbol": "genFishComp", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=562-585\nread TestChildFlag for detail", "file": "command_test.go", "symbol": "TestChildFlag", "line": 562, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=337-360\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=599-622\nread getFlagNameCompletions for detail", "file": "completions.go", "symbol": "getFlagNameCompletions", "line": 599, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=567-590\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 567, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=27-50\nread assertNoErr for detail", "file": "cobra_test.go", "symbol": "assertNoErr", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=201-224\nread directives for detail", "file": "completions.go", "symbol": "directives", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1384-1407\nread TestValidArgsFuncChildCmds for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmds", "line": 1384, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=618-641\nread VersionTemplate for detail", "file": "command.go", "symbol": "VersionTemplate", "line": 618, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "I'm trying to figure out where the list of suggested items for the dropdown is stored. Can you show me where the slice of results for the autocomplete feature is defined?", "query": "autocomplete results slice", "file": "completions.go", "symbol": "completions", "line": 429, "lang": "en", "candidates": [{"text": "File: fish_completions.go\nLine 78: # completions must be prefixed with the flag", "file": "fish_completions.go", "symbol": "", "line": 78, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nLine 94: // MarkFlagDirname instructs the various shell completion implementations to", "file": "shell_completions.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 43: s += \"\\n\"", "file": "doc/util.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 34: // The array parameter should be the array that will contain the completions.", "file": "active_help.go", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nLine 98: return func(cmd *Command, args []string) error {", "file": "args.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 32: var completions []string", "file": "completions_test.go", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nLine 97: // Test that activeHelp can be added following other completions", "file": "active_help_test.go", "symbol": "", "line": 97, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nLine 105: }", "file": "doc/cmd_test.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "bash_completionsV2_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 244: filter=\"\\*.$filter\"", "file": "zsh_completions.go", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 59: # Prepare the command to request completions for the program.", "file": "bash_completionsV2.go", "symbol": "", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nLine 41: func forceMultiLine(s string) string {", "file": "doc/util.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 32: c.Print(MousetrapHelpText)", "file": "command_win.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 117: echoCmd := &Command{", "file": "bash_completions_test.go", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/rest_docs_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 43: Title: \"MINE\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 59: s: \"hello\",", "file": "cobra_test.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 85: // ValidArgs is list of all valid non-flag arguments that are accepted in shell completions", "file": "command.go", "symbol": "", "line": 85, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nLine 183: # return here to prevent the completion of the extensions", "file": "powershell_completions.go", "symbol": "", "line": 183, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 429: var completions []Completion", "file": "completions.go", "symbol": "completions", "line": 429, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions.go\nLine 21: \"os\"", "file": "zsh_completions.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 241: comps := []string{\"first\"}", "file": "active_help_test.go", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 159: subCmdFlagGroupsRequired: []string{\"e subonly\"},", "file": "flag_groups_test.go", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 15: package doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "I'm trying to figure out where the list of suggested items for the dropdown is stored. Can you show me where the slice of results for the autocomplete feature is defined?", "query": "autocomplete results slice", "file": "completions.go", "symbol": "completions", "line": 429, "lang": "en", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "I'm trying to figure out where the list of suggested items for the dropdown is stored. Can you show me where the slice of results for the autocomplete feature is defined?", "query": "autocomplete results slice", "file": "completions.go", "symbol": "completions", "line": 429, "lang": "en", "candidates": [{"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "I'm trying to figure out where the list of suggested items for the dropdown is stored. Can you show me where the slice of results for the autocomplete feature is defined?", "query": "autocomplete results slice", "file": "completions.go", "symbol": "completions", "line": 429, "lang": "en", "candidates": [{"text": "Next: read doc/md_docs_test.go lines=26-49\nread TestGenMdDoc for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=492-515\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=334-357\nread TestAliasPrefixMatching for detail", "file": "command_test.go", "symbol": "TestAliasPrefixMatching", "line": 334, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=257-280\nread TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs", "line": 257, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=181-204\nread TestNoDuplicateArgs_WithValid_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=38-61\nread AppendActiveHelp for detail", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1560-1583\nread TestNoValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestNoValidArgsFuncInBashScript", "line": 1560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=29-52\nread TestActiveHelpAlone for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=689-712\nread Type for detail", "file": "completions_test.go", "symbol": "Type", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=60-83\nread GenYamlTreeCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTreeCustom", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=94-117\nread TestGenMdTree for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdTree", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=66-89\nread TestGenRSTNoTag for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoTag", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1038-1061\nread TestFlagFileExtFilterCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagFileExtFilterCompletionInGo", "line": 1038, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=277-300\nread TestMaximumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=429-452\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 429, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions.go lines=284-307\nread GenFishCompletionFile for detail", "file": "fish_completions.go", "symbol": "GenFishCompletionFile", "line": 284, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "에러 메시지를 디버그 로그로 출력하는 함수 찾아줘", "query": "error debug print", "file": "completions.go", "symbol": "CompError", "line": 985, "lang": "ko", "candidates": [{"text": "File: doc/yaml_docs.go\nLine 25: \"github.com/spf13/cobra\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 72: }()", "file": "bash_completions_test.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/rest_docs_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 47: }", "file": "args.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 95: c := &cobra.Command{Use: \"do [OPTIONS] arg1 arg2\"}", "file": "doc/md_docs_test.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 186: tests := []struct {", "file": "cobra_test.go", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 45: }", "file": "doc/cmd_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 115: fi", "file": "bash_completions.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 985: func CompError(msg string) {", "file": "completions.go", "symbol": "CompError", "line": 985, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions.go\nLine 2: //", "file": "zsh_completions.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 182: for _, flagGroup := range tc.subCmdFlagGroupsExclusive {", "file": "flag_groups_test.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 59: return configEnvVar(name, activeHelpEnvVarSuffix)", "file": "active_help.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 164: } else {", "file": "doc/yaml_docs.go", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 30: echoCmd.PersistentFlags().StringP(\"strone\", \"s\", \"one\", \"help message for flag strone\")", "file": "doc/cmd_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 20: \"github.com/spf13/cobra\"", "file": "doc/util.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 6: endif", "file": "Makefile", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 37: }", "file": "args.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 63: }", "file": "shell_completions.go", "symbol": "", "line": 63, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 16: // +build windows", "file": "command_win.go", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 34: Usage string `yaml:\",omitempty\"`", "file": "doc/yaml_docs.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 28: func legacyArgs(cmd *Command, args []string) error {", "file": "args.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 33: func TestAddTemplateFunctions(t *testing.T) {", "file": "cobra_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 161: \":0\",", "file": "active_help_test.go", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 39: return flags.SetAnnotation(name, BashCompOneRequiredFlag, []string{\"true\"})", "file": "shell_completions.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "에러 메시지를 디버그 로그로 출력하는 함수 찾아줘", "query": "error debug print", "file": "completions.go", "symbol": "CompError", "line": 985, "lang": "ko", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "에러 메시지를 디버그 로그로 출력하는 함수 찾아줘", "query": "error debug print", "file": "completions.go", "symbol": "CompError", "line": 985, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "에러 메시지를 디버그 로그로 출력하는 함수 찾아줘", "query": "error debug print", "file": "completions.go", "symbol": "CompError", "line": 985, "lang": "ko", "candidates": [{"text": "Next: read completions_test.go lines=2163-2186\nread err for detail", "file": "completions_test.go", "symbol": "err", "line": 2163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=169-192\nread TestNoDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=465-488\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=174-197\nread rpad for detail", "file": "cobra.go", "symbol": "rpad", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=117-140\nread RangeArgs for detail", "file": "args.go", "symbol": "RangeArgs", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=985-1008\nread CompError for detail", "file": "completions.go", "symbol": "CompError", "line": 985, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=59-82\nread EnableCommandSorting for detail", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=149-172\nread TestManPrintFlagsHidesShortDeprecated for detail", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1560-1583\nread TestNoValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestNoValidArgsFuncInBashScript", "line": 1560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=89-112\nread TestFishCompletionNoActiveHelp for detail", "file": "fish_completions_test.go", "symbol": "TestFishCompletionNoActiveHelp", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=491-514\nread TestFlagLong for detail", "file": "command_test.go", "symbol": "TestFlagLong", "line": 491, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions.go lines=284-307\nread GenFishCompletionFile for detail", "file": "fish_completions.go", "symbol": "GenFishCompletionFile", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=138-161\nread GenReSTTree for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTree", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=201-224\nread TestArbitraryArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "我想实现一个校验逻辑,用来检查命令行参数的数量是否达到了预期的最小值。有没有现成的函数可以用,能够根据传入的数值返回一个验证错误?", "query": "minimum arguments error", "file": "args.go", "symbol": "MinimumNArgs", "line": 87, "lang": "zh", "candidates": [{"text": "File: doc/rest_docs_test.go\nLine 90: t.Fatalf(\"GenReSTTree failed: %s\", err.Error())", "file": "doc/rest_docs_test.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 87: func MinimumNArgs(n int) PositionalArgs {", "file": "args.go", "symbol": "MinimumNArgs", "line": 87, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args_test.go\nLine 203: output, err := executeCommand(c, \"one\", \"two\")", "file": "args_test.go", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 61: func (c *Command) MarkPersistentFlagFilename(name string, extensions ...string) error {", "file": "shell_completions.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 133: Args: MinimumNArgs(1),", "file": "bash_completions_test.go", "symbol": "", "line": 133, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nLine 32: Section: \"3\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1607: func TestCompleteCmdInZshScript(t *testing.T) {", "file": "completions_test.go", "symbol": "", "line": 1607, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 141: }", "file": "doc/man_docs.go", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 165: // appendIfNotPresent will append stringToAppend to the end of s, but only if it's not yet present in s.", "file": "cobra.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 53: parentPath := echoCmd.Parent().CommandPath()", "file": "doc/man_docs_test.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 20: \"fmt\"", "file": "doc/man_docs_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 84: t.Fatalf(\"Expected %q, got %q\", expected, got)", "file": "args_test.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 238: Args: MinimumNArgs(1),", "file": "completions.go", "symbol": "", "line": 238, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "active_help.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 241: // default configuration that code path can be proven to be unreachable by", "file": "cobra_test.go", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 190: if err != nil {", "file": "active_help_test.go", "symbol": "", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 36: return false", "file": "doc/util.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 71: checkStringContains(t, output, echoCmd.Long)", "file": "doc/md_docs_test.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 219: // MinimumNArgs", "file": "args_test.go", "symbol": "", "line": 219, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\nLine 167: Args: MinimumNArgs(0),", "file": "completions_test.go", "symbol": "", "line": 167, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nLine 67: checkOmit(t, output, \"__root-dash_perform_completion\")", "file": "fish_completions_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 90: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 40: // that do not contain \\n.", "file": "doc/util.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "我想实现一个校验逻辑,用来检查命令行参数的数量是否达到了预期的最小值。有没有现成的函数可以用,能够根据传入的数值返回一个验证错误?", "query": "minimum arguments error", "file": "args.go", "symbol": "MinimumNArgs", "line": 87, "lang": "zh", "candidates": [{"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "我想实现一个校验逻辑,用来检查命令行参数的数量是否达到了预期的最小值。有没有现成的函数可以用,能够根据传入的数值返回一个验证错误?", "query": "minimum arguments error", "file": "args.go", "symbol": "MinimumNArgs", "line": 87, "lang": "zh", "candidates": [{"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "我想实现一个校验逻辑,用来检查命令行参数的数量是否达到了预期的最小值。有没有现成的函数可以用,能够根据传入的数值返回一个验证错误?", "query": "minimum arguments error", "file": "args.go", "symbol": "MinimumNArgs", "line": 87, "lang": "zh", "candidates": [{"text": "Next: read Makefile lines=22-45\nread test for detail", "file": "Makefile", "symbol": "test", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=179-202\nread tmpl for detail", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=465-488\nread TestGrandChildSameName for detail", "file": "command_test.go", "symbol": "TestGrandChildSameName", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=151-174\nread NoFileCompletions for detail", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=87-110\nread MinimumNArgs for detail", "file": "args.go", "symbol": "MinimumNArgs", "line": 87, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=271-294\nread TestMaximumNArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=22-45\nread PositionalArgs for detail", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2899-2922\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2899, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=593-616\nread writeRequiredFlag for detail", "file": "bash_completions.go", "symbol": "writeRequiredFlag", "line": 593, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=155-178\nread TestOnlyValidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=395-418\nread TestRangeArgs_WithInvalidCount for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount", "line": 395, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=44-67\nread TestGenYamlNoTag for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlNoTag", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=327-350\nread err for detail", "file": "completions.go", "symbol": "err", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=50-73\nread Len for detail", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions_test.go lines=23-46\nread TestPwshCompletionNoActiveHelp for detail", "file": "powershell_completions_test.go", "symbol": "TestPwshCompletionNoActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=105-128\nread GenMan for detail", "file": "doc/man_docs.go", "symbol": "GenMan", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2121-2144\nread TestFlagCompletionConcurrentRegistration for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionConcurrentRegistration", "line": 2121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=412-435\nread getOut for detail", "file": "command.go", "symbol": "getOut", "line": 412, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=568-591\nread completionFn for detail", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Hay un problema: algunos comandos están activando sugerencias de rutas de archivos de forma inesperada. Necesito encontrar la función que se utiliza para desactivar explícitamente el autocompletado de archivos y asegurar que devuelva la directiva de no permitir archivos.", "query": "disable file completion", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lang": "es", "candidates": [{"text": "File: completions.go\nLine 151: func NoFileCompletions(cmd *Command, args []string, toComplete string) ([]Completion, ShellCompDirective) {", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions.go\nLine 314: # flaghash variable is an associative array which is only supported in bash > 3.", "file": "bash_completions.go", "symbol": "", "line": 314, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 478: // Somewhat contrived example check that ensures there are exactly 3", "file": "args_test.go", "symbol": "", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 102: if strings.Contains(got, expected) {", "file": "doc/cmd_test.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 49: Short: \"Root short description\",", "file": "doc/cmd_test.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 108: }", "file": "doc/man_docs.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 222: return d[len(s)][len(t)]", "file": "cobra.go", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 42: }", "file": "args_test.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 106: {", "file": "zsh_completions.go", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_notwin.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 115: t.Errorf(\"Expected ld: %v\\nGot: %v\", tt.expected, got)", "file": "cobra_test.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1188: requiredAnnotation, found := pflag.Annotations[BashCompOneRequiredFlag]", "file": "command.go", "symbol": "", "line": 1188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 48: activeHelpCfg := os.Getenv(activeHelpGlobalEnvVar)", "file": "active_help.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 21: \"path/filepath\"", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/util.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/util.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 101: func TestGenFishCompletionFile(t *testing.T) {", "file": "fish_completions_test.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 37: func ExampleGenMan() {", "file": "doc/man_examples_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 238: })", "file": "flag_groups.go", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 93: Run: emptyRun,", "file": "active_help_test.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 55: check(t, output, ShellCompRequestCmd)", "file": "fish_completions_test.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 413: func TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/yaml_docs.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 2: //", "file": "zsh_completions.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Hay un problema: algunos comandos están activando sugerencias de rutas de archivos de forma inesperada. Necesito encontrar la función que se utiliza para desactivar explícitamente el autocompletado de archivos y asegurar que devuelva la directiva de no permitir archivos.", "query": "disable file completion", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lang": "es", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Hay un problema: algunos comandos están activando sugerencias de rutas de archivos de forma inesperada. Necesito encontrar la función que se utiliza para desactivar explícitamente el autocompletado de archivos y asegurar que devuelva la directiva de no permitir archivos.", "query": "disable file completion", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lang": "es", "candidates": [{"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Hay un problema: algunos comandos están activando sugerencias de rutas de archivos de forma inesperada. Necesito encontrar la función que se utiliza para desactivar explícitamente el autocompletado de archivos y asegurar que devuelva la directiva de no permitir archivos.", "query": "disable file completion", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lang": "es", "candidates": [{"text": "Next: read args_test.go lines=466-489\nread TestChildTakesArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=101-124\nread checkStringOmits for detail", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=48-71\nread byName for detail", "file": "doc/util.go", "symbol": "byName", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=629-652\nread writeCmdAliases for detail", "file": "bash_completions.go", "symbol": "writeCmdAliases", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=363-386\nread TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=114-137\nread Gt for detail", "file": "cobra.go", "symbol": "Gt", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=327-350\nread TestExactArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=583-606\nread TestChildFlagWithParentLocalFlag for detail", "file": "command_test.go", "symbol": "TestChildFlagWithParentLocalFlag", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=101-124\nread TestGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=492-515\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=151-174\nread NoFileCompletions for detail", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=819-842\nread childCmdArgs for detail", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=757-780\nread Find for detail", "file": "command.go", "symbol": "Find", "line": 757, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=376-399\nread SetErrPrefix for detail", "file": "command.go", "symbol": "SetErrPrefix", "line": 376, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=167-190\nread validateOneRequiredFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateOneRequiredFlagGroups", "line": 167, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "查找验证带描述信息的命令行参数补全测试的逻辑", "query": "flag completion test", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGoWithDesc", "line": 583, "lang": "zh", "candidates": [{"text": "File: bash_completionsV2.go\nLine 297: # Type: complete (normal completion)", "file": "bash_completionsV2.go", "symbol": "", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 20: \"testing\"", "file": "bash_completionsV2_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 135: Run: emptyRun,", "file": "fish_completions_test.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 50: }", "file": "bash_completions_test.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 89: // directory names.", "file": "shell_completions.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 159: flag.Shorthand,", "file": "doc/yaml_docs.go", "symbol": "", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 21: \"os/exec\"", "file": "bash_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 96: // check that active help is being disabled", "file": "fish_completions_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 34: ShellCompNoDescRequestCmd = \"__completeNoDesc\"", "file": "completions.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 406: // Check if we are completing a flag value subject to annotations", "file": "completions.go", "symbol": "", "line": 406, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/man_examples_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 35: AddTemplateFuncs(template.FuncMap{", "file": "cobra_test.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 39: checkStringContains(t, output, echoSubCmd.Short)", "file": "doc/md_docs_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 60: rootCmd := &Command{Use: \"root-dash\", Args: NoArgs, Run: emptyRun}", "file": "fish_completions_test.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 164: COMPREPLY+=(\"$comp\")", "file": "bash_completions.go", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 144: // with custom filePrepender and linkHandler.", "file": "doc/rest_docs.go", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 192: if [[ $cur == *=* ]]; then", "file": "bash_completions.go", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 15: $(info ******************** checking formatting ********************)", "file": "Makefile", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 91: expectErr: `if any flags in the group [a b c] are set none of the others can be; [a c] were all set`,", "file": "flag_groups_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 144: description := cmd.Long", "file": "doc/man_docs.go", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 583: func TestFlagNameCompletionInGoWithDesc(t *testing.T) {", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGoWithDesc", "line": 583, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions_test.go\nLine 123: t.Fatal(err.Error())", "file": "fish_completions_test.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1612: if c.HasParent() && c.Parent().helpCommand == c {", "file": "command.go", "symbol": "", "line": 1612, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 69: flagGroupsOneRequired: []string{\"a b\"},", "file": "flag_groups_test.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "查找验证带描述信息的命令行参数补全测试的逻辑", "query": "flag completion test", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGoWithDesc", "line": 583, "lang": "zh", "candidates": [{"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "查找验证带描述信息的命令行参数补全测试的逻辑", "query": "flag completion test", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGoWithDesc", "line": 583, "lang": "zh", "candidates": [{"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "查找验证带描述信息的命令行参数补全测试的逻辑", "query": "flag completion test", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGoWithDesc", "line": 583, "lang": "zh", "candidates": [{"text": "Next: read command_test.go lines=394-417\nread TestPluginWithSubCommands for detail", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=484-507\nread HelpFunc for detail", "file": "command.go", "symbol": "HelpFunc", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread left for detail", "file": "cobra.go", "symbol": "left", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=30-53\nread install_deps for detail", "file": "Makefile", "symbol": "install_deps", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=90-113\nread shellCompDirectiveMaxValue for detail", "file": "completions.go", "symbol": "shellCompDirectiveMaxValue", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=377-400\nread TestRangeArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=87-110\nread genZshComp for detail", "file": "zsh_completions.go", "symbol": "genZshComp", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=171-194\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=583-606\nread TestFlagNameCompletionInGoWithDesc for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGoWithDesc", "line": 583, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs_test.go lines=86-109\nread BenchmarkGenYamlToFile for detail", "file": "doc/yaml_docs_test.go", "symbol": "BenchmarkGenYamlToFile", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=604-627\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=372-395\nread TestPlugin for detail", "file": "command_test.go", "symbol": "TestPlugin", "line": 372, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=37-60\nread ExampleGenMan for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenMan", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=58-81\nread TestGenMdNoHiddenParents for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Estou tentando entender como as funções de template são inicializadas no sistema. Onde posso encontrar a lógica que encapsula o texto bruto e prepara a execução com o suporte às funções customizadas?", "query": "template function wrapper", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lang": "pt", "candidates": [{"text": "File: command.go\nLine 169: globNormFunc func(f *flag.FlagSet, name string) flag.NormalizedName", "file": "command.go", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 45: return s", "file": "doc/util.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 101: return comps, ShellCompDirectiveDefault", "file": "active_help_test.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 182: sort.Strings(set)", "file": "flag_groups.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 39: )", "file": "command.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_notwin.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 105: if got != expected {", "file": "args_test.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 60: }", "file": "doc/man_docs.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 94: }", "file": "powershell_completions.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 29: if err := GenMarkdown(echoCmd, buf); err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 34: // The array parameter should be the array that will contain the completions.", "file": "active_help.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 659: // We only do flag completion if we are allowed to parse flags", "file": "completions.go", "symbol": "", "line": 659, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 236: }", "file": "doc/man_docs.go", "symbol": "", "line": 236, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2962: // This replicates the possible fix that was tried here https://github.com/docker/cli/pull/5828", "file": "completions_test.go", "symbol": "", "line": 2962, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 122: if err != nil {", "file": "fish_completions_test.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 179: func tmpl(text string) *tmplFunc {", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nLine 102: # Remove the flag part", "file": "powershell_completions.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 12: // See the License for the specific language governing permissions and", "file": "active_help.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 323: c.usageTemplate = tmpl(s)", "file": "command.go", "symbol": "", "line": 323, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_notwin.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 58: checkStringContains(t, output, \"boolone\")", "file": "doc/rest_docs_test.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "zsh_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 74: Run: emptyRun,", "file": "doc/cmd_test.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "powershell_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Estou tentando entender como as funções de template são inicializadas no sistema. Onde posso encontrar a lógica que encapsula o texto bruto e prepara a execução com o suporte às funções customizadas?", "query": "template function wrapper", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lang": "pt", "candidates": [{"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Estou tentando entender como as funções de template são inicializadas no sistema. Onde posso encontrar a lógica que encapsula o texto bruto e prepara a execução com o suporte às funções customizadas?", "query": "template function wrapper", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lang": "pt", "candidates": [{"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Estou tentando entender como as funções de template são inicializadas no sistema. Onde posso encontrar a lógica que encapsula o texto bruto e prepara a execução com o suporte às funções customizadas?", "query": "template function wrapper", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lang": "pt", "candidates": [{"text": "Next: read completions_test.go lines=2902-2925\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2902, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=44-67\nread TestGenMdDocWithNoLongOrSynopsis for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDocWithNoLongOrSynopsis", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=94-117\nread GenManHeader for detail", "file": "doc/man_docs.go", "symbol": "GenManHeader", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=604-627\nread TestFlagInvalidInput for detail", "file": "command_test.go", "symbol": "TestFlagInvalidInput", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=32-55\nread printOptions for detail", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1018-1041\nread getEnvConfig for detail", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=213-236\nread TestArbitraryArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValidOnly_WithInvalidArgs", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=357-380\nread TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=160-183\nread FixedCompletions for detail", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=568-591\nread completionFn for detail", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=179-202\nread tmpl for detail", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read fish_completions.go lines=25-48\nread genFishComp for detail", "file": "fish_completions.go", "symbol": "genFishComp", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=438-461\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=101-124\nread checkStringOmits for detail", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=528-551\nread TestFlagShort for detail", "file": "command_test.go", "symbol": "TestFlagShort", "line": 528, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Estou tentando entender como o CLI identifica o nome amigável que aparece no help. Onde está definida a chave de anotação usada para mapear o nome de exibição do comando?", "query": "cobra command display name", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lang": "pt", "candidates": [{"text": "File: doc/util.go\nLine 25: // both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 92: checkStringContains(t, output, expected)", "file": "doc/man_docs_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 18: \"fmt\"", "file": "args.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 52: func GenMarkdown(cmd *cobra.Command, w io.Writer) error {", "file": "doc/md_docs.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 77: f := rootCmd.PersistentFlags().Lookup(name)", "file": "doc/man_docs_test.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 26: richtest: install_deps", "file": "Makefile", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "shell_completions.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 70: if err != nil {", "file": "active_help_test.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 18: package cobra", "file": "command_notwin.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 13: // limitations under the License.", "file": "active_help.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 69: short := cmd.Short", "file": "doc/rest_docs.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 49: Short: \"Root short description\",", "file": "doc/cmd_test.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 54: func (c *Command) MarkFlagCustom(name string, f string) error {", "file": "shell_completions.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "powershell_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 143: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "powershell_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 378: CommandDisplayNameAnnotation: \"kubectl plugin\",", "file": "command_test.go", "symbol": "", "line": 378, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nLine 54: identity := func(s string) string { return s }", "file": "doc/yaml_docs.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 340: {", "file": "bash_completions.go", "symbol": "", "line": 340, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 119: if header.Title == \"\" {", "file": "doc/man_docs.go", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 675: if strings.HasPrefix(lastArg[:index], \"--\") {", "file": "completions.go", "symbol": "", "line": 675, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 286: }", "file": "powershell_completions.go", "symbol": "", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 35: CommandDisplayNameAnnotation = \"cobra_annotation_command_display_name\"", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 290: if err != nil {", "file": "cobra_test.go", "symbol": "", "line": 290, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Estou tentando entender como o CLI identifica o nome amigável que aparece no help. Onde está definida a chave de anotação usada para mapear o nome de exibição do comando?", "query": "cobra command display name", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lang": "pt", "candidates": [{"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Estou tentando entender como o CLI identifica o nome amigável que aparece no help. Onde está definida a chave de anotação usada para mapear o nome de exibição do comando?", "query": "cobra command display name", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lang": "pt", "candidates": [{"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Estou tentando entender como o CLI identifica o nome amigável que aparece no help. Onde está definida a chave de anotação usada para mapear o nome de exibição do comando?", "query": "cobra command display name", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lang": "pt", "candidates": [{"text": "Next: read completions_test.go lines=1591-1614\nread TestCompleteNoDesCmdInZshScript for detail", "file": "completions_test.go", "symbol": "TestCompleteNoDesCmdInZshScript", "line": 1591, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=363-386\nread TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=192-215\nread ld for detail", "file": "cobra.go", "symbol": "ld", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2896-2919\nread TestCompletionFuncCompatibility for detail", "file": "completions_test.go", "symbol": "TestCompletionFuncCompatibility", "line": 2896, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=284-307\nread GenFishCompletionFile for detail", "file": "fish_completions.go", "symbol": "GenFishCompletionFile", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=229-252\nread TestBashCompletionHiddenFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionHiddenFlag", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=141-164\nread TestNoArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=604-627\nread TestFlagInvalidInput for detail", "file": "command_test.go", "symbol": "TestFlagInvalidInput", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=523-546\nread writeLocalNonPersistentFlag for detail", "file": "bash_completions.go", "symbol": "writeLocalNonPersistentFlag", "line": 523, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=45-68\nread Group for detail", "file": "command.go", "symbol": "Group", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=80-103\nread genZshCompletion for detail", "file": "zsh_completions.go", "symbol": "genZshCompletion", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=991-1014\nread CompErrorln for detail", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=233-256\nread TestMinimumNArgs_WithValid__WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "파일 확장자 필터링을 위한 셸_completion_지시어는 무엇인가요?", "query": "shell completion filter extension", "file": "completions.go", "symbol": "ShellCompDirectiveFilterFileExt", "line": 73, "lang": "ko", "candidates": [{"text": "File: doc/rest_docs_test.go\nLine 66: func TestGenRSTNoTag(t *testing.T) {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 272: ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs, ShellCompDirectiveKeepOrder, activeHelpEnvVar(name)))", "file": "fish_completions.go", "symbol": "", "line": 272, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nLine 138: if err != nil {", "file": "doc/yaml_docs.go", "symbol": "", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 77: fmt.Fprintf(buf, \"```\\n%s\\n```\\n\\n\", cmd.Example)", "file": "doc/md_docs.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 23: )", "file": "doc/man_examples_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 28: output := buf.String()", "file": "bash_completionsV2_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 286: if err != nil {", "file": "cobra_test.go", "symbol": "", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 234: keepOrder=\"-V\"", "file": "zsh_completions.go", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 465: ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs, ShellCompDirectiveKeepOrder,", "file": "bash_completionsV2.go", "symbol": "", "line": 465, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nLine 173: t.Run(tt.name, func(t *testing.T) {", "file": "cobra_test.go", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 17: import (", "file": "doc/rest_docs_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 401: ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs, activeHelpEnvVar(name)))", "file": "bash_completions.go", "symbol": "", "line": 401, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nLine 12: // See the License for the specific language governing permissions and", "file": "flag_groups.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 52: }", "file": "doc/cmd_test.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 52: // ShellCompDirectiveFilterFileExt.", "file": "zsh_completions.go", "symbol": "", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nLine 73: ShellCompDirectiveFilterFileExt", "file": "completions.go", "symbol": "ShellCompDirectiveFilterFileExt", "line": 73, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2.go\nLine 126: compopt -o nosort", "file": "bash_completionsV2.go", "symbol": "", "line": 126, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 29: Use: \"child\",", "file": "fish_completions_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 91: },", "file": "cobra_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1083: \"Completion ended with directive: ShellCompDirectiveFilterFileExt\", \"\"}, \"\\n\")", "file": "completions_test.go", "symbol": "", "line": 1083, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "flag_groups_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 67: name := cmd.CommandPath()", "file": "doc/rest_docs.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 5: // You may obtain a copy of the License at", "file": "powershell_completions_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 78: $ShellCompDirectiveFilterFileExt=%[7]d", "file": "powershell_completions.go", "symbol": "", "line": 78, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "파일 확장자 필터링을 위한 셸_completion_지시어는 무엇인가요?", "query": "shell completion filter extension", "file": "completions.go", "symbol": "ShellCompDirectiveFilterFileExt", "line": 73, "lang": "ko", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "파일 확장자 필터링을 위한 셸_completion_지시어는 무엇인가요?", "query": "shell completion filter extension", "file": "completions.go", "symbol": "ShellCompDirectiveFilterFileExt", "line": 73, "lang": "ko", "candidates": [{"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "파일 확장자 필터링을 위한 셸_completion_지시어는 무엇인가요?", "query": "shell completion filter extension", "file": "completions.go", "symbol": "ShellCompDirectiveFilterFileExt", "line": 73, "lang": "ko", "candidates": [{"text": "Next: read doc/yaml_docs.go lines=93-116\nread GenYamlCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlCustom", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2545-2568\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2545, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=32-55\nread printOptions for detail", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1821-1844\nread TestFlagCompletionWithNotInterspersedArgs for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWithNotInterspersedArgs", "line": 1821, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=631-654\nread getVersionTemplateFunc for detail", "file": "command.go", "symbol": "getVersionTemplateFunc", "line": 631, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=42-65\nread TestCompleteCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteCmdInFishScript", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=296-319\nread SetOut for detail", "file": "command.go", "symbol": "SetOut", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=277-300\nread TestMaximumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=73-96\nread ShellCompDirectiveFilterFileExt for detail", "file": "completions.go", "symbol": "ShellCompDirectiveFilterFileExt", "line": 73, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=81-104\nread MousetrapDisplayDuration for detail", "file": "cobra.go", "symbol": "MousetrapDisplayDuration", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=99-122\nread OnInitialize for detail", "file": "cobra.go", "symbol": "OnInitialize", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=529-552\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 529, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=363-386\nread TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "プラグイン形式のCLIにおいて、サブコマンドが存在する場合にルートコマンドのヘルプ出力が正しく生成されるか、およびサブコマンド自身のヘルプが正しく表示されるかを確認したい。現在の実装でサブコマンドを含めたヘルプの挙動が期待通りか検証するテストケースを探している。", "query": "plugin subcommand help", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lang": "ja", "candidates": [{"text": "File: args.go\nLine 121: }", "file": "args.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 30: // check that active help is not being disabled", "file": "zsh_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 10: default: all", "file": "Makefile", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 394: func TestPluginWithSubCommands(t *testing.T) {", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nLine 18: \"bytes\"", "file": "doc/md_docs.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 18: lint:", "file": "Makefile", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 12: // See the License for the specific language governing permissions and", "file": "doc/util.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 186: }", "file": "doc/rest_docs.go", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 30: func preExecHook(c *Command) {", "file": "command_win.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 65: // Deprecated", "file": "zsh_completions.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "doc/util.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 457: }", "file": "args_test.go", "symbol": "", "line": 457, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 20: \"github.com/spf13/cobra\"", "file": "doc/util.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 69: // The command name should not have replaced the '-'", "file": "fish_completions_test.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 42: if len(s) > 60 && !strings.Contains(s, \"\\n\") {", "file": "doc/util.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 90: // Help template generation.", "file": "cobra.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 206: // something like `rootcmd-subcmd1-subcmd2`", "file": "doc/man_docs.go", "symbol": "", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 129: __%[1]s_debug \"lastParam: ${lastParam}, lastChar: ${lastChar}\"", "file": "zsh_completions.go", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 33: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 29: const (", "file": "bash_completions.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 2: //", "file": "fish_completions_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 175: __%[1]s_debug \"flagPrefix: ${flagPrefix}\"", "file": "zsh_completions.go", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "bash_completionsV2_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "プラグイン形式のCLIにおいて、サブコマンドが存在する場合にルートコマンドのヘルプ出力が正しく生成されるか、およびサブコマンド自身のヘルプが正しく表示されるかを確認したい。現在の実装でサブコマンドを含めたヘルプの挙動が期待通りか検証するテストケースを探している。", "query": "plugin subcommand help", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lang": "ja", "candidates": [{"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "プラグイン形式のCLIにおいて、サブコマンドが存在する場合にルートコマンドのヘルプ出力が正しく生成されるか、およびサブコマンド自身のヘルプが正しく表示されるかを確認したい。現在の実装でサブコマンドを含めたヘルプの挙動が期待通りか検証するテストケースを探している。", "query": "plugin subcommand help", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lang": "ja", "candidates": [{"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "プラグイン形式のCLIにおいて、サブコマンドが存在する場合にルートコマンドのヘルプ出力が正しく生成されるか、およびサブコマンド自身のヘルプが正しく表示されるかを確認したい。現在の実装でサブコマンドを含めたヘルプの挙動が期待通りか検証するテストケースを探している。", "query": "plugin subcommand help", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lang": "ja", "candidates": [{"text": "Next: read doc/cmd_test.go lines=84-107\nread printCmd for detail", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=248-271\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=629-652\nread writeCmdAliases for detail", "file": "bash_completions.go", "symbol": "writeCmdAliases", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=133-156\nread GenMarkdownTreeCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTreeCustom", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2607-2630\nread TestCompleteCompletion for detail", "file": "completions_test.go", "symbol": "TestCompleteCompletion", "line": 2607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2929-2952\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2929, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=382-405\nread SetGlobalNormalizationFunc for detail", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=599-622\nread getFlagNameCompletions for detail", "file": "completions.go", "symbol": "getFlagNameCompletions", "line": 599, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2787-2810\nread TestCompleteWithDisableFlagParsing for detail", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=138-161\nread GenReSTTree for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTree", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=394-417\nread TestPluginWithSubCommands for detail", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=53-76\nread GenYamlTree for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTree", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=58-81\nread ShellCompDirectiveError for detail", "file": "completions.go", "symbol": "ShellCompDirectiveError", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=438-461\nread TestRootTakesArgs for detail", "file": "args_test.go", "symbol": "TestRootTakesArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=151-174\nread NoFileCompletions for detail", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=32-55\nread printOptions for detail", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "这个函数是如何解析标记注解并更新组状态映射的?", "query": "flag group annotation processing", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lang": "zh", "candidates": [{"text": "File: fish_completions_test.go\nLine 2: //", "file": "fish_completions_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1149: if err != nil {", "file": "command.go", "symbol": "", "line": 1149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 133: setopt local_options BASH_REMATCH", "file": "zsh_completions.go", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 79: $ShellCompDirectiveFilterDirs=%[8]d", "file": "powershell_completions.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 490: WriteStringAndCheck(buf, fmt.Sprintf(\" flags_completion+=(%q)\\n\", ext))", "file": "bash_completions.go", "symbol": "", "line": 490, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 27: assertNoErr(t, c.GenZshCompletion(buf))", "file": "zsh_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 13: // limitations under the License.", "file": "command_notwin.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1585: // NameAndAliases returns a list of the command name and all aliases", "file": "command.go", "symbol": "", "line": 1585, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 30: echoCmd.PersistentFlags().StringP(\"strone\", \"s\", \"one\", \"help message for flag strone\")", "file": "doc/cmd_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 242: # Can't print the prompt. Just print the", "file": "bash_completionsV2.go", "symbol": "", "line": 242, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 249: }", "file": "args_test.go", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "powershell_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 291: _, err := executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"thechild\", \"\")", "file": "active_help_test.go", "symbol": "", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 162: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 121: func processFlagForGroupAnnotation(flags *flag.FlagSet, pflag *flag.Flag, annotation string, groupStatus map[string]map[string]bool) {", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 292: }", "file": "cobra_test.go", "symbol": "", "line": 292, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 419: if subDir, present := flag.Annotations[BashCompSubdirsInDir]; present {", "file": "completions.go", "symbol": "", "line": 419, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 65: // Functions name should have replace the '-'", "file": "fish_completions_test.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 37: func ExampleGenMan() {", "file": "doc/man_examples_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 305: must_have_one_flag=()", "file": "bash_completions.go", "symbol": "", "line": 305, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 336: // call to Find() -> legacyArgs() will return an error if there are any arguments.", "file": "completions.go", "symbol": "", "line": 336, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 76: }", "file": "args.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "这个函数是如何解析标记注解并更新组状态映射的?", "query": "flag group annotation processing", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lang": "zh", "candidates": [{"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "这个函数是如何解析标记注解并更新组状态映射的?", "query": "flag group annotation processing", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lang": "zh", "candidates": [{"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> strings", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> github.com/spf13/pflag", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "这个函数是如何解析标记注解并更新组状态映射的?", "query": "flag group annotation processing", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lang": "zh", "candidates": [{"text": "Next: read command.go lines=654-677\nread hasNoOptDefVal for detail", "file": "command.go", "symbol": "hasNoOptDefVal", "line": 654, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=484-507\nread HelpFunc for detail", "file": "command.go", "symbol": "HelpFunc", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=245-268\nread TestMinimumNArgs_WithLessArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1624-1647\nread TestFlagCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGo", "line": 1624, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=587-610\nread helpOrVersionFlagPresent for detail", "file": "completions.go", "symbol": "helpOrVersionFlagPresent", "line": 587, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=88-111\nread TestSingleCommand for detail", "file": "command_test.go", "symbol": "TestSingleCommand", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=497-520\nread writeShortFlag for detail", "file": "bash_completions.go", "symbol": "writeShortFlag", "line": 497, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=301-324\nread TestMaximumNArgs_WithMoreArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid", "line": 301, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1276-1299\nread TestValidArgsFuncCmdContext for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncCmdContext", "line": 1276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=683-706\nread GenBashCompletion for detail", "file": "bash_completions.go", "symbol": "GenBashCompletion", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=408-431\nread InOrStdin for detail", "file": "command.go", "symbol": "InOrStdin", "line": 408, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=121-144\nread processFlagForGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=748-771\nread InitDefaultCompletionCmd for detail", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=44-67\nread TestGenYamlNoTag for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlNoTag", "line": 44, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "ArbitraryArgs 테스트에서 유효한 인자를 전달했을 때 정상 실행되는지 확인하는 테스트 케이스를 찾아줘.", "query": "TestArbitraryArgs WithValid", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lang": "ko", "candidates": [{"text": "File: active_help_test.go\nLine 46: }", "file": "active_help_test.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 23: )", "file": "doc/man_examples_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "fish_completions_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 73: desc: \"Exclusive flag group not satisfied\",", "file": "flag_groups_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 51: }", "file": "active_help.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 28: rootCmd.PersistentFlags().StringP(\"strtwo\", \"t\", \"two\", \"help message for parent flag strtwo\")", "file": "doc/cmd_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 201: func TestArbitraryArgs_WithValid(t *testing.T) {", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions.go\nLine 973: }", "file": "completions.go", "symbol": "", "line": 973, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/man_examples_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1974: checkStringContains(t, output, \"\\ngroup2\\n cmd2\")", "file": "command_test.go", "symbol": "", "line": 1974, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 175: set -l shellCompDirectiveFilterDirs %[8]d", "file": "fish_completions.go", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 48: fmt.Print(out.String())", "file": "doc/man_examples_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1309: expected := strings.Join([]string{", "file": "completions_test.go", "symbol": "", "line": 1309, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 59: func TestProgWithDash(t *testing.T) {", "file": "fish_completions_test.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 236: processFlagForGroupAnnotation(flags, pflag, oneRequiredAnnotation, oneRequiredGroupStatus)", "file": "flag_groups.go", "symbol": "", "line": 236, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 3: go 1.15", "file": "go.mod", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 162: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 289: # Perform file completion", "file": "zsh_completions.go", "symbol": "", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 127: func TestGenManSeeAlso(t *testing.T) {", "file": "doc/man_docs_test.go", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 66: check(t, output, \"__root_dash_perform_completion\")", "file": "fish_completions_test.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 189: padding int", "file": "cobra_test.go", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 45: t.Errorf(\"Expected UsageString: %v\\nGot: %v\", expected, got)", "file": "cobra_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 28: return true", "file": "doc/util.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 3: go 1.15", "file": "go.mod", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "ArbitraryArgs 테스트에서 유효한 인자를 전달했을 때 정상 실행되는지 확인하는 테스트 케이스를 찾아줘.", "query": "TestArbitraryArgs WithValid", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lang": "ko", "candidates": [{"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestArbitraryArgs_WithValid", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "ArbitraryArgs 테스트에서 유효한 인자를 전달했을 때 정상 실행되는지 확인하는 테스트 케이스를 찾아줘.", "query": "TestArbitraryArgs WithValid", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "ArbitraryArgs 테스트에서 유효한 인자를 전달했을 때 정상 실행되는지 확인하는 테스트 케이스를 찾아줘.", "query": "TestArbitraryArgs WithValid", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lang": "ko", "candidates": [{"text": "Next: read completions_test.go lines=2044-2067\nread TestFlagCompletionWorksRootCommandAddedAfterFlags for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWorksRootCommandAddedAfterFlags", "line": 2044, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2899-2922\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2899, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=444-467\nread UsageFunc for detail", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2850-2873\nread TestCompleteWithRootAndLegacyArgs for detail", "file": "completions_test.go", "symbol": "TestCompleteWithRootAndLegacyArgs", "line": 2850, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=50-73\nread Len for detail", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=169-192\nread TestMultiActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestMultiActiveHelp", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=201-224\nread TestArbitraryArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/rest_docs_test.go lines=80-103\nread TestGenRSTTree for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTTree", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=25-48\nread GenZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFile", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=757-780\nread Find for detail", "file": "command.go", "symbol": "Find", "line": 757, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=447-470\nread writeCommands for detail", "file": "bash_completions.go", "symbol": "writeCommands", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=90-113\nread dummyCmd for detail", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=101-124\nread compCmdNoDescFlagName for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagName", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=114-137\nread child1CmdArgs for detail", "file": "command_test.go", "symbol": "child1CmdArgs", "line": 114, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Je suis en train de vérifier la logique de tri de mes collections. Pourrais-tu me montrer comment est implémentée la méthode qui renvoie la taille de ce type spécifique ?", "query": "len method type", "file": "doc/util.go", "symbol": "Len", "line": 50, "lang": "fr", "candidates": [{"text": "File: bash_completionsV2_test.go\nLine 15: package cobra", "file": "bash_completionsV2_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 350: # in a list and we don't want show escape characters in that list.", "file": "bash_completionsV2.go", "symbol": "", "line": 350, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 120: left = int64(av.Len())", "file": "cobra.go", "symbol": "", "line": 120, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nLine 41: // Only errs if the flag isn't found.", "file": "flag_groups.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 113: __%[1]s_debug \"Activating no space\"", "file": "bash_completionsV2.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 912: }", "file": "command.go", "symbol": "", "line": 912, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 50: func (s byName) Len() int { return len(s) }", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 256: _ = os.Mkdir(dirname, 0770)", "file": "cobra_test.go", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "doc/man_examples_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 103: $Flag,$WordToComplete = $WordToComplete.Split(\"=\",2)", "file": "powershell_completions.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 168: }", "file": "powershell_completions.go", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 24: \"testing\"", "file": "doc/man_docs_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1327: func (c commandSorterByName) Len() int { return len(c) }", "file": "command.go", "symbol": "", "line": 1327, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nLine 71: end", "file": "fish_completions.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 39: return append(compArray, fmt.Sprintf(\"%s%s\", activeHelpMarker, activeHelpStr))", "file": "active_help.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 48: }", "file": "powershell_completions.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 40: if err := c.Flags().SetAnnotation(v, requiredAsGroupAnnotation, append(f.Annotations[requiredAsGroupAnnotation], strings.Join(flagNames, \" \"))); err != nil {", "file": "flag_groups.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 99: flagGroupsOneRequired: []string{\"d e\", \"a b\", \"f g\"},", "file": "flag_groups_test.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 27: activeHelpGlobalEnvVar = configEnvVarGlobalPrefix + \"_\" + activeHelpEnvVarSuffix", "file": "active_help.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 57: // root command in upper case, with all non-ASCII-alphanumeric characters replaced by `_`.", "file": "active_help.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 23: func TestZshCompletionWithActiveHelp(t *testing.T) {", "file": "zsh_completions_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1276: cmd, _, e := c.Root().Find(args)", "file": "command.go", "symbol": "", "line": 1276, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 676: return args", "file": "command.go", "symbol": "", "line": 676, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 34: // The array parameter should be the array that will contain the completions.", "file": "active_help.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Je suis en train de vérifier la logique de tri de mes collections. Pourrais-tu me montrer comment est implémentée la méthode qui renvoie la taille de ce type spécifique ?", "query": "len method type", "file": "doc/util.go", "symbol": "Len", "line": 50, "lang": "fr", "candidates": [{"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nsibling in doc", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Je suis en train de vérifier la logique de tri de mes collections. Pourrais-tu me montrer comment est implémentée la méthode qui renvoie la taille de ce type spécifique ?", "query": "len method type", "file": "doc/util.go", "symbol": "Len", "line": 50, "lang": "fr", "candidates": [{"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Je suis en train de vérifier la logique de tri de mes collections. Pourrais-tu me montrer comment est implémentée la méthode qui renvoie la taille de ce type spécifique ?", "query": "len method type", "file": "doc/util.go", "symbol": "Len", "line": 50, "lang": "fr", "candidates": [{"text": "Next: read command.go lines=308-331\nread SetIn for detail", "file": "command.go", "symbol": "SetIn", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=643-666\nread ErrPrefix for detail", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=50-73\nread Len for detail", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=59-82\nread EnableCommandSorting for detail", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=235-258\nread TestExecute_NoContext for detail", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=57-80\nread GenMarkdownCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownCustom", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2926-2949\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2926, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=592-615\nread UsageTemplate for detail", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=758-781\nread innerfind for detail", "file": "command.go", "symbol": "innerfind", "line": 758, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=30-53\nread printOptionsReST for detail", "file": "doc/rest_docs.go", "symbol": "printOptionsReST", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=508-531\nread writeFlag for detail", "file": "bash_completions.go", "symbol": "writeFlag", "line": 508, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=991-1014\nread CompErrorln for detail", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=48-71\nread byName for detail", "file": "doc/util.go", "symbol": "byName", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=536-559\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=394-417\nread TestPluginWithSubCommands for detail", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=150-173\nread result for detail", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "我正在处理命令行工具的帮助信息展示逻辑。帮我找一下这个实现中是如何处理命令层级继承并最终决定使用哪个帮助输出函数的?", "query": "usage function inheritance", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lang": "zh", "candidates": [{"text": "File: command_notwin.go\nLine 16: // +build !windows", "file": "command_notwin.go", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 103: t.Fatalf(\"GenMarkdownTree failed: %v\", err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 672: if len(lastArg) > 0 && lastArg[0] == '-' {", "file": "completions.go", "symbol": "", "line": 672, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 20: golangci-lint run -v", "file": "Makefile", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "zsh_completions_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 87: t.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/yaml_docs.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 40: }", "file": "shell_completions.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 72: checkStringContains(t, output, echoCmd.Example)", "file": "doc/md_docs_test.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 161: forceMultiLine(flag.Usage),", "file": "doc/yaml_docs.go", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 274: expectSuccess(output, err, t)", "file": "args_test.go", "symbol": "", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 294: _arguments '*:filename:_files'\" ${flagPrefix}\"", "file": "zsh_completions.go", "symbol": "", "line": 294, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 444: func (c *Command) UsageFunc() (f func(*Command) error) {", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/md_docs.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 141: }", "file": "doc/rest_docs.go", "symbol": "", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 42: func TestCompleteCmdInFishScript(t *testing.T) {", "file": "fish_completions_test.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 229: func TestBashCompletionHiddenFlag(t *testing.T) {", "file": "bash_completions_test.go", "symbol": "", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 460: // Test that both sub-commands and validArgs are completed with prefix", "file": "completions_test.go", "symbol": "", "line": 460, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 72: }", "file": "fish_completions_test.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 113: b := genMan(cmd, header)", "file": "doc/man_docs.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 205: return nil", "file": "doc/man_docs_test.go", "symbol": "", "line": 205, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "zsh_completions_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 982: }", "file": "completions.go", "symbol": "", "line": 982, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_win.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "我正在处理命令行工具的帮助信息展示逻辑。帮我找一下这个实现中是如何处理命令层级继承并最终决定使用哪个帮助输出函数的?", "query": "usage function inheritance", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lang": "zh", "candidates": [{"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "我正在处理命令行工具的帮助信息展示逻辑。帮我找一下这个实现中是如何处理命令层级继承并最终决定使用哪个帮助输出函数的?", "query": "usage function inheritance", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lang": "zh", "candidates": [{"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "我正在处理命令行工具的帮助信息展示逻辑。帮我找一下这个实现中是如何处理命令层级继承并最终决定使用哪个帮助输出函数的?", "query": "usage function inheritance", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lang": "zh", "candidates": [{"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=955-978\nread CompDebug for detail", "file": "completions.go", "symbol": "CompDebug", "line": 955, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2929-2952\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2929, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=444-467\nread UsageFunc for detail", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read zsh_completions.go lines=55-78\nread MarkZshCompPositionalArgumentFile for detail", "file": "zsh_completions.go", "symbol": "MarkZshCompPositionalArgumentFile", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=334-357\nread TestAliasPrefixMatching for detail", "file": "command_test.go", "symbol": "TestAliasPrefixMatching", "line": 334, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=301-324\nread TestMaximumNArgs_WithMoreArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid", "line": 301, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=111-134\nread BenchmarkGenMarkdownToFile for detail", "file": "doc/md_docs_test.go", "symbol": "BenchmarkGenMarkdownToFile", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=179-202\nread tmpl for detail", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=209-232\nread sortedKeys for detail", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=169-192\nread TestNoDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=121-144\nread TestStringInSlice for detail", "file": "cobra_test.go", "symbol": "TestStringInSlice", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=202-225\nread genMan for detail", "file": "doc/man_docs.go", "symbol": "genMan", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=67-90\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completionsV2.go lines=482-505\nread GenBashCompletionV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionV2", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=146-169\nread TestRootExecuteUnknownCommand for detail", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=579-602\nread comps for detail", "file": "completions.go", "symbol": "comps", "line": 579, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "busca la implementación del método para añadir un string a la estructura personalizada", "query": "append custom string", "file": "completions_test.go", "symbol": "Set", "line": 684, "lang": "es", "candidates": [{"text": "File: doc/man_docs.go\nLine 19: \"fmt\"", "file": "doc/man_docs.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1261: // It is called automatically by executing the c or by calling help and usage.", "file": "command.go", "symbol": "", "line": 1261, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 24: go test -v $(GO_TEST_FLAGS) ./...", "file": "Makefile", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/md_docs.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 280: // Set the variable that the user would be setting", "file": "active_help_test.go", "symbol": "", "line": 280, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nLine 160: # Set the description to a one space string if there is none set.", "file": "powershell_completions.go", "symbol": "", "line": 160, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nLine 221: parentPath := cmd.Parent().CommandPath()", "file": "doc/man_docs.go", "symbol": "", "line": 221, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 168: c.MarkFlagsRequiredTogether(strings.Split(flagGroup, \" \")...)", "file": "flag_groups_test.go", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 25: )", "file": "cobra_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 137: subCmdFlagGroupsRequired: []string{\"e subonly\"},", "file": "flag_groups_test.go", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 117: `+\" $RequestComp=\\\"$RequestComp\\\" + ' `\\\"`\\\"'\"+`", "file": "powershell_completions.go", "symbol": "", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 54: // Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nLine 218: else", "file": "bash_completionsV2.go", "symbol": "", "line": 218, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 684: func (s *customMultiString) Set(v string) error {", "file": "completions_test.go", "symbol": "Set", "line": 684, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nLine 226: for i := 0; i < b.N; i++ {", "file": "doc/man_docs_test.go", "symbol": "", "line": 226, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 3: go 1.15", "file": "go.mod", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_win.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 21: )", "file": "doc/util.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 242: comps = AppendActiveHelp(comps, activeHelpMessage)", "file": "active_help_test.go", "symbol": "", "line": 242, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 25: \"time\"", "file": "doc/rest_docs.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 50: //", "file": "shell_completions.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 109: })", "file": "doc/rest_docs.go", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 87: }", "file": "fish_completions_test.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "busca la implementación del método para añadir un string a la estructura personalizada", "query": "append custom string", "file": "completions_test.go", "symbol": "Set", "line": 684, "lang": "es", "candidates": [{"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "busca la implementación del método para añadir un string a la estructura personalizada", "query": "append custom string", "file": "completions_test.go", "symbol": "Set", "line": 684, "lang": "es", "candidates": [{"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "busca la implementación del método para añadir un string a la estructura personalizada", "query": "append custom string", "file": "completions_test.go", "symbol": "Set", "line": 684, "lang": "es", "candidates": [{"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=570-593\nread minCommandPathPadding for detail", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=164-187\nread TestGenManTree for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManTree", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=233-256\nread TestMinimumNArgs_WithValid__WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid__WithInvalidArgs", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=94-117\nread GenManHeader for detail", "file": "doc/man_docs.go", "symbol": "GenManHeader", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=684-707\nread Set for detail", "file": "completions_test.go", "symbol": "Set", "line": 684, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=345-368\nread TestExactArgs_WithInvalidCount for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=135-158\nread TestNoArgs_WithValid_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=592-615\nread UsageTemplate for detail", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=201-224\nread directives for detail", "file": "completions.go", "symbol": "directives", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=81-104\nread MousetrapDisplayDuration for detail", "file": "cobra.go", "symbol": "MousetrapDisplayDuration", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=568-591\nread completionFn for detail", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=24-47\nread genBashCompletion for detail", "file": "bash_completionsV2.go", "symbol": "genBashCompletion", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=261-284\nread TestBashCompletionTraverseChildren for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionTraverseChildren", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=57-80\nread GenMarkdownCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownCustom", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=605-628\nread HelpTemplate for detail", "file": "command.go", "symbol": "HelpTemplate", "line": 605, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "중복된 인자가 들어왔을 때 에러가 발생하는지 확인하는 테스트 찾아줘", "query": "duplicate args error", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lang": "ko", "candidates": [{"text": "File: cobra.go\nLine 139: }", "file": "cobra.go", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 429: var completions []Completion", "file": "completions.go", "symbol": "", "line": 429, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 181: func TestNoDuplicateArgs_WithValid_WithDuplicateArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nLine 58: \"SC2034\", // PREFIX appears unused. Verify it or export it.", "file": "bash_completions_test.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 122: var comps []string", "file": "active_help_test.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 58: func activeHelpEnvVar(name string) string {", "file": "active_help.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1922: if output != expected {", "file": "completions_test.go", "symbol": "", "line": 1922, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 12: // See the License for the specific language governing permissions and", "file": "fish_completions.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/man_examples_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 133: Use: \"child\",", "file": "fish_completions_test.go", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 45: return s", "file": "doc/util.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 65: // Functions name should have replace the '-'", "file": "fish_completions_test.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 23: \"strings\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 231: groupStatus := map[string]map[string]bool{}", "file": "flag_groups.go", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 443: __%[1]s_debug \"cur is ${cur}, words[*] is ${words[*]}, #words[@] is ${#words[@]}, cword is $cword\"", "file": "bash_completionsV2.go", "symbol": "", "line": 443, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 67: func MarkFlagFilename(flags *pflag.FlagSet, name string, extensions ...string) error {", "file": "shell_completions.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 121: __%[1]s_debug \"========= checking if order preservation is required ==========\"", "file": "fish_completions.go", "symbol": "", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 325: childCmd := &Command{", "file": "active_help_test.go", "symbol": "", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 43: })", "file": "doc/man_docs.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 62: t.Fatalf(\"Failed to create tmpdir: %s\", err.Error())", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 155: }", "file": "cobra.go", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 57: func GenReST(cmd *cobra.Command, w io.Writer) error {", "file": "doc/rest_docs.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "중복된 인자가 들어왔을 때 에러가 발생하는지 확인하는 테스트 찾아줘", "query": "duplicate args error", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lang": "ko", "candidates": [{"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\ndefines TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "중복된 인자가 들어왔을 때 에러가 발생하는지 확인하는 테스트 찾아줘", "query": "duplicate args error", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lang": "ko", "candidates": [{"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "중복된 인자가 들어왔을 때 에러가 발생하는지 확인하는 테스트 찾아줘", "query": "duplicate args error", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lang": "ko", "candidates": [{"text": "Next: read bash_completions_test.go lines=245-268\nread TestBashCompletionDeprecatedFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionDeprecatedFlag", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=394-417\nread TestPluginWithSubCommands for detail", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=80-103\nread TestGenRSTTree for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTTree", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=403-426\nread ErrOrStderr for detail", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=142-165\nread CompletionWithDesc for detail", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1038-1061\nread TestFlagFileExtFilterCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagFileExtFilterCompletionInGo", "line": 1038, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=281-304\nread SetArgs for detail", "file": "command.go", "symbol": "SetArgs", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=844-867\nread TestRequiredFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestRequiredFlagNameCompletionInGo", "line": 844, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=181-204\nread TestNoDuplicateArgs_WithValid_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read flag_groups.go lines=65-88\nread MarkFlagsMutuallyExclusive for detail", "file": "flag_groups.go", "symbol": "MarkFlagsMutuallyExclusive", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2607-2630\nread TestCompleteCompletion for detail", "file": "completions_test.go", "symbol": "TestCompleteCompletion", "line": 2607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=757-780\nread Find for detail", "file": "command.go", "symbol": "Find", "line": 757, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=81-104\nread MousetrapDisplayDuration for detail", "file": "cobra.go", "symbol": "MousetrapDisplayDuration", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=459-482\nread writeFlagHandler for detail", "file": "bash_completions.go", "symbol": "writeFlagHandler", "line": 459, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "修复在自动补全逻辑中,当命令参数包含引号时,生成的补全字符串会错误地以多余的换行符和闭合引号结尾的问题。", "query": "bash completion quote newline", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lang": "zh", "candidates": [{"text": "File: fish_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "fish_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2742: if err != nil {", "file": "completions_test.go", "symbol": "", "line": 2742, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 157: }", "file": "doc/man_docs.go", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "zsh_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 31: return nil", "file": "args.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 27: assertNoErr(t, c.GenPowerShellCompletion(buf))", "file": "powershell_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 39: // Temporary workaround for yaml lib generating incorrect yaml with long strings", "file": "doc/util.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 186: return t.Execute(w, data)", "file": "cobra.go", "symbol": "", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 103: return err", "file": "flag_groups.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 31: t.Fatal(err)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1652: if err != nil {", "file": "completions_test.go", "symbol": "", "line": 1652, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 182: }", "file": "cobra_test.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 98: func BenchmarkGenReSTToFile(b *testing.B) {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 65: rootCmd.AddCommand(childCmd)", "file": "active_help_test.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 495: const cbn = \"\\\")\\n\"", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions.go\nLine 415: // in case the program also registered a completion function for this flag.", "file": "completions.go", "symbol": "", "line": 415, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 59: }", "file": "doc/rest_docs.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "zsh_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 8: //", "file": "zsh_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 762: }", "file": "command_test.go", "symbol": "", "line": 762, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "zsh_completions_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 108: if err := GenReST(rootCmd, file); err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 106: b.ResetTimer()", "file": "doc/rest_docs_test.go", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 182: t.Fatalf(\"Expected header.Title to be unmodified\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "修复在自动补全逻辑中,当命令参数包含引号时,生成的补全字符串会错误地以多余的换行符和闭合引号结尾的问题。", "query": "bash completion quote newline", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lang": "zh", "candidates": [{"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "修复在自动补全逻辑中,当命令参数包含引号时,生成的补全字符串会错误地以多余的换行符和闭合引号结尾的问题。", "query": "bash completion quote newline", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lang": "zh", "candidates": [{"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions.go -> strings", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> github.com/spf13/pflag", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> io", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> os", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> sort", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "修复在自动补全逻辑中,当命令参数包含引号时,生成的补全字符串会错误地以多余的换行符和闭合引号结尾的问题。", "query": "bash completion quote newline", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lang": "zh", "candidates": [{"text": "Next: read completions.go lines=101-124\nread compCmdNoDescFlagName for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagName", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=43-66\nread expected for detail", "file": "cobra_test.go", "symbol": "expected", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=568-591\nread completionFn for detail", "file": "completions.go", "symbol": "completionFn", "line": 568, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=389-412\nread TestRangeArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=127-150\nread TestGenManSeeAlso for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=308-331\nread aCmdArgs for detail", "file": "command_test.go", "symbol": "aCmdArgs", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=263-286\nread TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=202-225\nread genMan for detail", "file": "doc/man_docs.go", "symbol": "genMan", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=55-78\nread MarkZshCompPositionalArgumentFile for detail", "file": "zsh_completions.go", "symbol": "MarkZshCompPositionalArgumentFile", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=26-49\nread TestGenRSTDoc for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=77-100\nread maximumNArgsWithMoreArgs for detail", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1560-1583\nread TestNoValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestNoValidArgsFuncInBashScript", "line": 1560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=307-330\nread TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=308-331\nread SetIn for detail", "file": "command.go", "symbol": "SetIn", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=337-360\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=30-53\nread BashCompFilenameExt for detail", "file": "bash_completions.go", "symbol": "BashCompFilenameExt", "line": 30, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Gibt es einen Testfall, der prüft, ob der Befehl fehlschlägt, wenn mehrfach dieselben Argumente übergeben werden?", "query": "test duplicate args", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lang": "de", "candidates": [{"text": "File: fish_completions_test.go\nLine 67: checkOmit(t, output, \"__root-dash_perform_completion\")", "file": "fish_completions_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 25: )", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 45: Use: \"child\",", "file": "fish_completions_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 195: if flags.HasAvailableFlags() {", "file": "doc/man_docs.go", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 20: )", "file": "active_help.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 23: $(info ******************** running tests ********************)", "file": "Makefile", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 18: package cobra", "file": "command_notwin.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 17: import (", "file": "bash_completionsV2_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 209: _filedir", "file": "bash_completionsV2.go", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 169: func TestNoDuplicateArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nLine 161: }", "file": "bash_completions_test.go", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 38: checkStringContains(t, output, rootCmd.Short)", "file": "doc/md_docs_test.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 74: // This will only work for bash completion.", "file": "shell_completions.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 223: }", "file": "bash_completions_test.go", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 67: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 451: local out directive", "file": "bash_completionsV2.go", "symbol": "", "line": 451, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/util.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 97: if err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 981: parents = append(parents, p)", "file": "command.go", "symbol": "", "line": 981, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 100: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 20: \"path/filepath\"", "file": "doc/md_docs_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 774: commandFound, a := innerfind(c, args)", "file": "command.go", "symbol": "", "line": 774, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 244: filter=\"\\*.$filter\"", "file": "zsh_completions.go", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Gibt es einen Testfall, der prüft, ob der Befehl fehlschlägt, wenn mehrfach dieselben Argumente übergeben werden?", "query": "test duplicate args", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lang": "de", "candidates": [{"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestNoDuplicateArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Gibt es einen Testfall, der prüft, ob der Befehl fehlschlägt, wenn mehrfach dieselben Argumente übergeben werden?", "query": "test duplicate args", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lang": "de", "candidates": [{"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Gibt es einen Testfall, der prüft, ob der Befehl fehlschlägt, wenn mehrfach dieselben Argumente übergeben werden?", "query": "test duplicate args", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lang": "de", "candidates": [{"text": "Next: read cobra.go lines=55-78\nread EnablePrefixMatching for detail", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=169-192\nread TestNoDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/man_docs.go lines=94-117\nread GenManHeader for detail", "file": "doc/man_docs.go", "symbol": "GenManHeader", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=231-254\nread TestActiveHelpForFlag for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpForFlag", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2899-2922\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2899, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=432-455\nread getIn for detail", "file": "command.go", "symbol": "getIn", "line": 432, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2694-2717\nread TestMultipleShorthandFlagCompletion for detail", "file": "completions_test.go", "symbol": "TestMultipleShorthandFlagCompletion", "line": 2694, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=308-331\nread SetIn for detail", "file": "command.go", "symbol": "SetIn", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=34-57\nread clean for detail", "file": "Makefile", "symbol": "clean", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=111-134\nread BenchmarkGenMarkdownToFile for detail", "file": "doc/md_docs_test.go", "symbol": "BenchmarkGenMarkdownToFile", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=127-150\nread TestGenManSeeAlso for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManSeeAlso", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=225-248\nread enforceFlagGroupsForCompletion for detail", "file": "flag_groups.go", "symbol": "enforceFlagGroupsForCompletion", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=570-593\nread minCommandPathPadding for detail", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Je cherche la valeur utilisée pour désigner l'option qui doit rester invisible dans les tests de complétion. Peux-tu me dire quel est le nom de ce drapeau ?", "query": "hiddenFlag", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lang": "fr", "candidates": [{"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 248: output, err := executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"--flag\", \"\")", "file": "active_help_test.go", "symbol": "", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 78: return nil", "file": "args.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 122: b.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 276: for flagName, isSet := range flagnameAndStatus {", "file": "flag_groups.go", "symbol": "", "line": 276, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nLine 1870: flagName := \"flagOnCommandLine\"", "file": "command_test.go", "symbol": "", "line": 1870, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nLine 134: return nil", "file": "args.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 255: if [[ ${#COMPREPLY[@]} -eq 0 ]]; then", "file": "bash_completions.go", "symbol": "", "line": 255, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 204: cmd.InitDefaultHelpFlag()", "file": "doc/man_docs.go", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 168: expected: false,", "file": "cobra_test.go", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1152: if errors.Is(err, flag.ErrHelp) {", "file": "command.go", "symbol": "", "line": 1152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1117: c.checkCommandGroups()", "file": "command.go", "symbol": "", "line": 1117, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 23: )", "file": "doc/man_examples_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 2: //", "file": "powershell_completions.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 49: flagName string", "file": "completions.go", "symbol": "", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nLine 92: defer file.Close()", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 49: // OnlyValidArgs returns an error if there are any positional args that are not in", "file": "args.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 203: cmd.InitDefaultHelpCmd()", "file": "doc/man_docs.go", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 28: )", "file": "doc/md_docs.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 961: t.Errorf(\"expected: %q, got: %q\", expected, output)", "file": "completions_test.go", "symbol": "", "line": 961, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 232: const flagName = \"hiddenFlag\"", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nLine 87: Long: `an absolutely utterly useless command for testing.`,", "file": "doc/cmd_test.go", "symbol": "", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2125: flagName := fmt.Sprintf(\"flag%d\", i)", "file": "completions_test.go", "symbol": "", "line": 2125, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nLine 66: // limit completions for the named flag to the specified file extensions.", "file": "shell_completions.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Je cherche la valeur utilisée pour désigner l'option qui doit rester invisible dans les tests de complétion. Peux-tu me dire quel est le nom de ce drapeau ?", "query": "hiddenFlag", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lang": "fr", "candidates": [{"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Je cherche la valeur utilisée pour désigner l'option qui doit rester invisible dans les tests de complétion. Peux-tu me dire quel est le nom de ce drapeau ?", "query": "hiddenFlag", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lang": "fr", "candidates": [{"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> regexp", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> os", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions_test.go -> testing", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> strings", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> os/exec", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Je cherche la valeur utilisée pour désigner l'option qui doit rester invisible dans les tests de complétion. Peux-tu me dire quel est le nom de ce drapeau ?", "query": "hiddenFlag", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lang": "fr", "candidates": [{"text": "Next: read completions.go lines=80-103\nread ShellCompDirectiveFilterDirs for detail", "file": "completions.go", "symbol": "ShellCompDirectiveFilterDirs", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=142-165\nread CompletionWithDesc for detail", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=155-178\nread TestOnlyValidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=58-81\nread activeHelpEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=59-82\nread TestProgWithDash for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithDash", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=166-189\nread appendIfNotPresent for detail", "file": "cobra.go", "symbol": "appendIfNotPresent", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=123-146\nread TestNoArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=74-97\nread checkStringContains for detail", "file": "command_test.go", "symbol": "checkStringContains", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=657-680\nread checkIfFlagCompletion for detail", "file": "completions.go", "symbol": "checkIfFlagCompletion", "line": 657, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=75-98\nread TestGenYamlDocRunnable for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDocRunnable", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=232-255\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read powershell_completions.go lines=320-343\nread genPowerShellCompletionFile for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletionFile", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=56-79\nread runShellCheck for detail", "file": "bash_completions_test.go", "symbol": "runShellCheck", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs_test.go lines=57-80\nread TestGenYamlTree for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlTree", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=758-781\nread innerfind for detail", "file": "command.go", "symbol": "innerfind", "line": 758, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=560-583\nread minUsagePadding for detail", "file": "command.go", "symbol": "minUsagePadding", "line": 560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=701-724\nread GenBashCompletionFile for detail", "file": "bash_completions.go", "symbol": "GenBashCompletionFile", "line": 701, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "mesurer les performances de l'écriture du manuel dans un fichier", "query": "benchmark gen man file", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lang": "fr", "candidates": [{"text": "File: doc/man_docs.go\nLine 190: cobra.WriteStringAndCheck(buf, \"# OPTIONS\\n\")", "file": "doc/man_docs.go", "symbol": "", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 124: }", "file": "fish_completions_test.go", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 102: if test -z \"$__%[1]s_perform_completion_once_result\"", "file": "fish_completions.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 5: // You may obtain a copy of the License at", "file": "bash_completionsV2_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 2: //", "file": "command_notwin.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2533: rootCmd.CompletionOptions.DisableDescriptions = true", "file": "completions_test.go", "symbol": "", "line": 2533, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 61: checkStringContains(t, output, echoSubCmd.Short)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 217: func BenchmarkGenManToFile(b *testing.B) {", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 242: // the linker.", "file": "cobra_test.go", "symbol": "", "line": 242, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "bash_completionsV2_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 177: sub.MarkFlagsRequiredTogether(strings.Split(flagGroup, \" \")...)", "file": "flag_groups_test.go", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 116: // RangeArgs returns an error if the number of args is not within the expected range.", "file": "args.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "shell_completions.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 99: flagGroupsOneRequired: []string{\"d e\", \"a b\", \"f g\"},", "file": "flag_groups_test.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 33: // to the user.", "file": "active_help.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 227: return", "file": "flag_groups.go", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 2: //", "file": "command_notwin.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 226: \"help\",", "file": "completions_test.go", "symbol": "", "line": 226, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "powershell_completions_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "args.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 489: }", "file": "bash_completions.go", "symbol": "", "line": 489, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 15: package cobra", "file": "zsh_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 270: else", "file": "zsh_completions.go", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 204: # may not already be filtered so as to allow fish to match on different", "file": "fish_completions.go", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "mesurer les performances de l'écriture du manuel dans un fichier", "query": "benchmark gen man file", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lang": "fr", "candidates": [{"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nelsewhere in the tree", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\ndefines BenchmarkGenManToFile", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "mesurer les performances de l'écriture du manuel dans un fichier", "query": "benchmark gen man file", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lang": "fr", "candidates": [{"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> os", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> strings", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> path/filepath", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> fmt", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> testing", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> github.com/spf13/cobra", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "mesurer les performances de l'écriture du manuel dans un fichier", "query": "benchmark gen man file", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lang": "fr", "candidates": [{"text": "Next: read command.go lines=54-77\nread Command for detail", "file": "command.go", "symbol": "Command", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=57-80\nread GenMarkdownCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownCustom", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2929-2952\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2929, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=588-611\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 588, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=151-174\nread NoFileCompletions for detail", "file": "completions.go", "symbol": "NoFileCompletions", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=383-406\nread TestRangeArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=90-113\nread dummyCmd for detail", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2123-2146\nread maxFlags for detail", "file": "completions_test.go", "symbol": "maxFlags", "line": 2123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=217-240\nread BenchmarkGenManToFile for detail", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=592-615\nread UsageTemplate for detail", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=741-764\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 741, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=150-173\nread result for detail", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read powershell_completions_test.go lines=23-46\nread TestPwshCompletionNoActiveHelp for detail", "file": "powershell_completions_test.go", "symbol": "TestPwshCompletionNoActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2451-2474\nread removeCompCmd for detail", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=283-306\nread TestMaximumNArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=39-62\nread TestGenManDoc for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManDoc", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=523-546\nread writeLocalNonPersistentFlag for detail", "file": "bash_completions.go", "symbol": "writeLocalNonPersistentFlag", "line": 523, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Preciso de uma função vazia para lidar com comandos que não executam nenhuma ação específica. Isso é útil para definir a estrutura do comando sem implementar lógica adicional no momento.", "query": "empty cobra command handler", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lang": "pt", "candidates": [{"text": "File: shell_completions.go\nLine 88: // implementations to limit completions for the named persistent flag to", "file": "shell_completions.go", "symbol": "", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 30: if !cmd.HasSubCommands() {", "file": "args.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 172: usageFunc func(*Command) error", "file": "command.go", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 30: func emptyRun(*Command, []string) {}", "file": "command_test.go", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nLine 153: // Todo, when we mark a shorthand is deprecated, but specify an empty message.", "file": "doc/yaml_docs.go", "symbol": "", "line": 153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3411: // Have a command that DisablesFlagParsing but that also adds its own help and version flags", "file": "completions_test.go", "symbol": "", "line": 3411, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 166: header := &GenManHeader{Section: \"2\"}", "file": "doc/man_docs_test.go", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 35: func translate(in string) string {", "file": "doc/man_docs_test.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 65: func (c *Command) MarkFlagsMutuallyExclusive(flagNames ...string) {", "file": "flag_groups.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 27: rootCmd := &Command{Use: \"root\", Args: NoArgs, Run: emptyRun}", "file": "fish_completions_test.go", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nLine 284: }", "file": "cobra_test.go", "symbol": "", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 128: rootCmd := &cobra.Command{Use: \"root\", Run: emptyRun}", "file": "doc/man_docs_test.go", "symbol": "", "line": 128, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nLine 96: if test -n \"$__%[1]s_perform_completion_once_result\"", "file": "fish_completions.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 22: \"errors\"", "file": "command.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 545: func TestExactValidArgs_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 545, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "powershell_completions_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 89: Run: emptyRun,", "file": "bash_completions_test.go", "symbol": "", "line": 89, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nLine 241: return 1", "file": "fish_completions.go", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 259: if isSet {", "file": "flag_groups.go", "symbol": "", "line": 259, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 24: func emptyRun(*cobra.Command, []string) {}", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args_test.go\nLine 82: expected := \"accepts at most 2 arg(s), received 3\"", "file": "args_test.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "bash_completionsV2_test.go", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\nLine 58: Run: emptyRun,", "file": "completions_test.go", "symbol": "", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\nLine 2413: if output != expected {", "file": "completions_test.go", "symbol": "", "line": 2413, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Preciso de uma função vazia para lidar com comandos que não executam nenhuma ação específica. Isso é útil para definir a estrutura do comando sem implementar lógica adicional no momento.", "query": "empty cobra command handler", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lang": "pt", "candidates": [{"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nelsewhere in the tree", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nelsewhere in the tree", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\ndefines emptyRun", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Preciso de uma função vazia para lidar com comandos que não executam nenhuma ação específica. Isso é útil para definir a estrutura do comando sem implementar lógica adicional no momento.", "query": "empty cobra command handler", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lang": "pt", "candidates": [{"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> github.com/spf13/cobra", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Preciso de uma função vazia para lidar com comandos que não executam nenhuma ação específica. Isso é útil para definir a estrutura do comando sem implementar lógica adicional no momento.", "query": "empty cobra command handler", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lang": "pt", "candidates": [{"text": "Next: read args_test.go lines=187-210\nread TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=339-362\nread TestExactArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=81-104\nread ValidateFlagGroups for detail", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=493-516\nread TestFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGo", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=77-100\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs_test.go lines=57-80\nread TestGenYamlTree for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlTree", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=69-92\nread timesCmd for detail", "file": "doc/cmd_test.go", "symbol": "timesCmd", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=599-622\nread getFlagNameCompletions for detail", "file": "completions.go", "symbol": "getFlagNameCompletions", "line": 599, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=188-211\nread validateExclusiveFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateExclusiveFlagGroups", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=77-100\nread maximumNArgsWithMoreArgs for detail", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=307-330\nread TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=261-284\nread TestBashCompletionTraverseChildren for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionTraverseChildren", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "印刷するためのコマンド定義を探して。", "query": "print command", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lang": "ja", "candidates": [{"text": "File: flag_groups_test.go\nLine 79: flagGroupsRequired: []string{\"a b c\", \"a d\"},", "file": "flag_groups_test.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 17: import (", "file": "shell_completions.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "powershell_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 99: sort.Sort(byName(children))", "file": "doc/md_docs.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 67: # to truncate the command-line ($Command) up to the $CursorPosition location.", "file": "powershell_completions.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 672: if len(lastArg) > 0 && lastArg[0] == '-' {", "file": "completions.go", "symbol": "", "line": 672, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 23: \"os\"", "file": "cobra.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 50: t.Fatal(err)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 90: fmt.Fprintf(buf, \"* [%s](%s)\\t - %s\\n\", pname, linkHandler(link), parent.Short)", "file": "doc/md_docs.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 129: if !hasAllFlags(flags, flagnames...) {", "file": "flag_groups.go", "symbol": "", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 270: __%[1]s_handle_completion_types() {", "file": "bash_completionsV2.go", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "powershell_completions_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 84: var printCmd = &cobra.Command{", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\nLine 99: buf.WriteString(\"~~~~~~~~\\n\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 219: esac", "file": "bash_completions.go", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 8: //", "file": "command_notwin.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2063: _, err := executeCommand(rootCmd, \"--help\")", "file": "command_test.go", "symbol": "", "line": 2063, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 388: childCmd.ValidArgsFunction = func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) {", "file": "active_help_test.go", "symbol": "", "line": 388, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 131: printCmd := &Command{", "file": "bash_completions_test.go", "symbol": "", "line": 131, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nLine 261: // Remove all activeHelp entries if it's disabled.", "file": "completions.go", "symbol": "", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 95: for i := 0; i < b.N; i++ {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 203: line := scanner.Text()", "file": "doc/man_docs_test.go", "symbol": "", "line": 203, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 154: // The flag.ShorthandDeprecated is empty as the shorthand is deprecated.", "file": "doc/yaml_docs.go", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 31: $(info ******************** downloading dependencies ********************)", "file": "Makefile", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "印刷するためのコマンド定義を探して。", "query": "print command", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lang": "ja", "candidates": [{"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nelsewhere in the tree", "file": "go.mod", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nelsewhere in the tree", "file": "Makefile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\ndefines printCmd", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "印刷するためのコマンド定義を探して。", "query": "print command", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lang": "ja", "candidates": [{"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> github.com/spf13/cobra", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "印刷するためのコマンド定義を探して。", "query": "print command", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lang": "ja", "candidates": [{"text": "Next: read doc/cmd_test.go lines=84-107\nread printCmd for detail", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1717-1740\nread TestValidArgsFuncChildCmdsWithDesc for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmdsWithDesc", "line": 1717, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=18-41\nread lint for detail", "file": "Makefile", "symbol": "lint", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=38-61\nread GenManTree for detail", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=29-52\nread TestActiveHelpAlone for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=70-93\nread resetCommandLineFlagSet for detail", "file": "command_test.go", "symbol": "resetCommandLineFlagSet", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=81-104\nread MousetrapDisplayDuration for detail", "file": "cobra.go", "symbol": "MousetrapDisplayDuration", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2141-2164\nread wg for detail", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=170-193\nread RegisterFlagCompletionFunc for detail", "file": "completions.go", "symbol": "RegisterFlagCompletionFunc", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=932-955\nread findFlag for detail", "file": "completions.go", "symbol": "findFlag", "line": 932, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions_test.go lines=23-46\nread TestZshCompletionWithActiveHelp for detail", "file": "zsh_completions_test.go", "symbol": "TestZshCompletionWithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=326-349\nread finalArgs for detail", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=174-197\nread rpad for detail", "file": "cobra.go", "symbol": "rpad", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=105-128\nread OnFinalize for detail", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "find the function that returns an error if extra arguments are provided to a command", "query": "command error arguments", "file": "args.go", "symbol": "NoArgs", "line": 42, "lang": "en", "candidates": [{"text": "File: Makefile\nLine 28: richgo test -v $(GO_TEST_FLAGS) ./...", "file": "Makefile", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 778: Args: NoArgs,", "file": "completions.go", "symbol": "", "line": 778, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nLine 100: args: []string{\"--c=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 123: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1385: rootCmd := &Command{Use: \"root\", Args: NoArgs, Run: emptyRun}", "file": "completions_test.go", "symbol": "", "line": 1385, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nLine 20: golangci-lint run -v", "file": "Makefile", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 27: rootCmd := &Command{Use: \"root\", Args: NoArgs, Run: emptyRun}", "file": "fish_completions_test.go", "symbol": "", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nLine 2289: })", "file": "command_test.go", "symbol": "", "line": 2289, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 32: checkOmit(t, output, fmt.Sprintf(\"%s=0\", activeHelpVar))", "file": "zsh_completions_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_notwin.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 141: Args: NoArgs,", "file": "bash_completions_test.go", "symbol": "", "line": 141, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nLine 121: // NoArgs", "file": "args_test.go", "symbol": "", "line": 121, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_win.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 42: func NoArgs(cmd *Command, args []string) error {", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nLine 21: \"os\"", "file": "doc/md_docs.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 95: aCmd := &Command{Use: \"a\", Args: NoArgs, Run: emptyRun}", "file": "command_test.go", "symbol": "", "line": 95, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "powershell_completions.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 15: //go:build !windows", "file": "command_notwin.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 32: checkOmit(t, output, fmt.Sprintf(\"%s=0\", activeHelpVar))", "file": "zsh_completions_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 32: return MarkFlagRequired(c.PersistentFlags(), name)", "file": "shell_completions.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 841: Short: fmt.Sprintf(shortDesc, \"zsh\"),", "file": "completions.go", "symbol": "", "line": 841, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "flag_groups_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 15: package doc_test", "file": "doc/man_examples_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 69: if f == nil {", "file": "flag_groups.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "find the function that returns an error if extra arguments are provided to a command", "query": "command error arguments", "file": "args.go", "symbol": "NoArgs", "line": 42, "lang": "en", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "find the function that returns an error if extra arguments are provided to a command", "query": "command error arguments", "file": "args.go", "symbol": "NoArgs", "line": 42, "lang": "en", "candidates": [{"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "find the function that returns an error if extra arguments are provided to a command", "query": "command error arguments", "file": "args.go", "symbol": "NoArgs", "line": 42, "lang": "en", "candidates": [{"text": "Next: read command_test.go lines=88-111\nread TestSingleCommand for detail", "file": "command_test.go", "symbol": "TestSingleCommand", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=500-523\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 500, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=142-165\nread CompletionWithDesc for detail", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1038-1061\nread TestFlagFileExtFilterCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagFileExtFilterCompletionInGo", "line": 1038, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=195-218\nread TestArbitraryArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=337-360\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=82-105\nread ArbitraryArgs for detail", "file": "args.go", "symbol": "ArbitraryArgs", "line": 82, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2787-2810\nread TestCompleteWithDisableFlagParsing for detail", "file": "completions_test.go", "symbol": "TestCompleteWithDisableFlagParsing", "line": 2787, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read zsh_completions.go lines=87-110\nread genZshComp for detail", "file": "zsh_completions.go", "symbol": "genZshComp", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=465-488\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=52-75\nread Error for detail", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=22-45\nread PositionalArgs for detail", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=408-431\nread InOrStdin for detail", "file": "command.go", "symbol": "InOrStdin", "line": 408, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=333-356\nread SetHelpFunc for detail", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=157-180\nread TestNoCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=342-365\nread GenPowerShellCompletionFileWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFileWithDesc", "line": 342, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Comment est générée la liste des alias pour les arguments dans le fichier de complétion ?", "query": "noun_aliases bash completion", "file": "bash_completions.go", "symbol": "writeArgAliases", "line": 644, "lang": "fr", "candidates": [{"text": "File: bash_completions.go\nLine 644: func writeArgAliases(buf io.StringWriter, cmd *Command) {", "file": "bash_completions.go", "symbol": "writeArgAliases", "line": 644, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nLine 268: [System.Management.Automation.CompletionResult]::new($CompletionText, \"$($comp.Name)$Description\", 'ParameterValue', \"$($comp.Description)\")", "file": "powershell_completions.go", "symbol": "", "line": 268, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1996: if subcmd.IsAvailableCommand() || subcmd.Name() == helpCommandName {", "file": "command.go", "symbol": "", "line": 1996, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 8: //", "file": "active_help.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 215: }", "file": "flag_groups.go", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 91: Use: \"dummy [action]\",", "file": "doc/cmd_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 311: Use: \"aCmd\",", "file": "command_test.go", "symbol": "", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 44: rootCmd.AddCommand(printCmd, echoCmd, dummyCmd)", "file": "doc/cmd_test.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 13: // limitations under the License.", "file": "doc/cmd_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 15: package cobra", "file": "active_help.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 83: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 50: func (s byName) Len() int { return len(s) }", "file": "doc/util.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 134: args: []string{\"--a=foo\", \"--e=foo\", \"--f=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 5: // You may obtain a copy of the License at", "file": "bash_completions_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 16: // +build !windows", "file": "command_notwin.go", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 543: }", "file": "args_test.go", "symbol": "", "line": 543, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 46: defer func() { rootCmd.DisableAutoGenTag = false }()", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 192: # Do full file completion instead", "file": "fish_completions.go", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "powershell_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 25: \"time\"", "file": "doc/rest_docs.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 182: sort.Strings(set)", "file": "flag_groups.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 273: }", "file": "powershell_completions.go", "symbol": "", "line": 273, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 21: \"github.com/spf13/cobra\"", "file": "doc/man_examples_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 22: \"os\"", "file": "command_win.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Comment est générée la liste des alias pour les arguments dans le fichier de complétion ?", "query": "noun_aliases bash completion", "file": "bash_completions.go", "symbol": "writeArgAliases", "line": 644, "lang": "fr", "candidates": [{"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Comment est générée la liste des alias pour les arguments dans le fichier de complétion ?", "query": "noun_aliases bash completion", "file": "bash_completions.go", "symbol": "writeArgAliases", "line": 644, "lang": "fr", "candidates": [{"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> github.com/spf13/pflag", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> os", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> strings", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> io", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> sort", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Comment est générée la liste des alias pour les arguments dans le fichier de complétion ?", "query": "noun_aliases bash completion", "file": "bash_completions.go", "symbol": "writeArgAliases", "line": 644, "lang": "fr", "candidates": [{"text": "Next: read bash_completions.go lines=30-53\nread BashCompFilenameExt for detail", "file": "bash_completions.go", "symbol": "BashCompFilenameExt", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=560-583\nread minUsagePadding for detail", "file": "command.go", "symbol": "minUsagePadding", "line": 560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=644-667\nread writeArgAliases for detail", "file": "bash_completions.go", "symbol": "writeArgAliases", "line": 644, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=88-111\nread TestSingleCommand for detail", "file": "command_test.go", "symbol": "TestSingleCommand", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=313-336\nread SetUsageFunc for detail", "file": "command.go", "symbol": "SetUsageFunc", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=187-210\nread manPrintOptions for detail", "file": "doc/man_docs.go", "symbol": "manPrintOptions", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=632-655\nread completeRequireFlags for detail", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=185-208\nread TestRpad for detail", "file": "cobra_test.go", "symbol": "TestRpad", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=788-811\nread sb for detail", "file": "command.go", "symbol": "sb", "line": 788, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2141-2164\nread wg for detail", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=192-215\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=357-380\nread TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=171-194\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=537-560\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "입력 데이터의 소스를 설정하는 함수를 찾아줘", "query": "set input source", "file": "command.go", "symbol": "SetIn", "line": 308, "lang": "ko", "candidates": [{"text": "File: args.go\nLine 8: //", "file": "args.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 461: if !strings.Contains(got, expected) {", "file": "args_test.go", "symbol": "", "line": 461, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 19: \"strings\"", "file": "args.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 102: fi", "file": "zsh_completions.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 104: fmt.Fprintf(buf, \"* %s \\t - %s\\n\", linkHandler(pname, ref), parent.Short)", "file": "doc/rest_docs.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 72: }", "file": "fish_completions_test.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 145: Run: emptyRun,", "file": "bash_completions_test.go", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 132: set -l shellCompDirectiveKeepOrder %[9]d", "file": "fish_completions.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/util.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 19: \"fmt\"", "file": "powershell_completions_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 486: if got != onetwo {", "file": "command_test.go", "symbol": "", "line": 486, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2153: func TestSetIn(t *testing.T) {", "file": "command_test.go", "symbol": "", "line": 2153, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 223: defer file.Close()", "file": "doc/man_docs_test.go", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 342: }", "file": "active_help_test.go", "symbol": "", "line": 342, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/util.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2155: c.SetIn(nil)", "file": "command_test.go", "symbol": "", "line": 2155, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nLine 75: ignoreCase: false,", "file": "cobra_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/man_examples_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 188: flags := command.NonInheritedFlags()", "file": "doc/man_docs.go", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 31: func (c *Command) MarkPersistentFlagRequired(name string) error {", "file": "shell_completions.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 145: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 116: __%[1]s_debug \"${FUNCNAME[0]}: the completion directive is: ${directive}\"", "file": "bash_completions.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 308: func (c *Command) SetIn(newIn io.Reader) {", "file": "command.go", "symbol": "SetIn", "line": 308, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nLine 8: //", "file": "bash_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "입력 데이터의 소스를 설정하는 함수를 찾아줘", "query": "set input source", "file": "command.go", "symbol": "SetIn", "line": 308, "lang": "ko", "candidates": [{"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "입력 데이터의 소스를 설정하는 함수를 찾아줘", "query": "set input source", "file": "command.go", "symbol": "SetIn", "line": 308, "lang": "ko", "candidates": [{"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "입력 데이터의 소스를 설정하는 함수를 찾아줘", "query": "set input source", "file": "command.go", "symbol": "SetIn", "line": 308, "lang": "ko", "candidates": [{"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=89-112\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions_test.go lines=23-46\nread TestPwshCompletionNoActiveHelp for detail", "file": "powershell_completions_test.go", "symbol": "TestPwshCompletionNoActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=748-771\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 748, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=232-255\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=465-488\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=62-85\nread ShellCompDirectiveNoSpace for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoSpace", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=129-152\nread TestNoArgs_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithArgs", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=80-103\nread checkStringOmits for detail", "file": "command_test.go", "symbol": "checkStringOmits", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=684-707\nread Set for detail", "file": "completions_test.go", "symbol": "Set", "line": 684, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=101-124\nread checkStringOmits for detail", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=327-350\nread TestExactArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=57-80\nread GenMarkdownCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownCustom", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=186-209\nread GetFlagCompletionFunc for detail", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=308-331\nread SetIn for detail", "file": "command.go", "symbol": "SetIn", "line": 308, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra_test.go lines=185-208\nread TestRpad for detail", "file": "cobra_test.go", "symbol": "TestRpad", "line": 185, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "補完機能のテストコードを書いていますが、サブコマンドがない場合に特定のコマンドが正しく候補として出ないことを検証している部分を探したいです。このテストケースがどのように動作をチェックしているか教えてください。", "query": "test completion command", "file": "completions_test.go", "symbol": "TestCompleteCompletion", "line": 2607, "lang": "ja", "candidates": [{"text": "File: doc/util.go\nLine 34: return true", "file": "doc/util.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 435: if declare -F _init_completion >/dev/null 2>&1; then", "file": "bash_completionsV2.go", "symbol": "", "line": 435, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 35: // This function can be called multiple times before and/or after completions are added to", "file": "active_help.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 72: Short: \"Echo anything to the screen more times\",", "file": "doc/cmd_test.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 39: os.Exit(1)", "file": "command_win.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 83: desc: \"Multiple one-required flag group not satisfied returns first error\",", "file": "flag_groups_test.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 182: allflags=(\"${flags[*]} ${two_word_flags[*]}\")", "file": "bash_completions.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_win.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 58: cmd.InitDefaultHelpCmd()", "file": "doc/md_docs.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "zsh_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 124: }", "file": "doc/rest_docs.go", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2950: t.Errorf(\"Unexpected error: %v\", err)", "file": "command_test.go", "symbol": "", "line": 2950, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "cobra_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 204: ${flags_completion[${index}]}", "file": "bash_completions.go", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 13: // limitations under the License.", "file": "flag_groups.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2607: func TestCompleteCompletion(t *testing.T) {", "file": "completions_test.go", "symbol": "TestCompleteCompletion", "line": 2607, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups_test.go\nLine 152: expectErr: \"if any flags in the group [e subonly] are set none of the others can be; [e subonly] were all set\",", "file": "flag_groups_test.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1858: }", "file": "command.go", "symbol": "", "line": 1858, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/man_docs.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 36: WriteStringAndCheck(buf, fmt.Sprintf(`", "file": "fish_completions.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 13: // limitations under the License.", "file": "doc/man_examples_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 128: echoCmd.Flags().String(\"config\", \"\", \"config to use (located in /config/PROFILE/)\")", "file": "bash_completions_test.go", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 139: // there are any positional args that are not in the `ValidArgs` field of `Command`", "file": "args.go", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 244: _, err := b.WriteString(s)", "file": "cobra.go", "symbol": "", "line": 244, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "補完機能のテストコードを書いていますが、サブコマンドがない場合に特定のコマンドが正しく候補として出ないことを検証している部分を探したいです。このテストケースがどのように動作をチェックしているか教えてください。", "query": "test completion command", "file": "completions_test.go", "symbol": "TestCompleteCompletion", "line": 2607, "lang": "ja", "candidates": [{"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "補完機能のテストコードを書いていますが、サブコマンドがない場合に特定のコマンドが正しく候補として出ないことを検証している部分を探したいです。このテストケースがどのように動作をチェックしているか教えてください。", "query": "test completion command", "file": "completions_test.go", "symbol": "TestCompleteCompletion", "line": 2607, "lang": "ja", "candidates": [{"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "補完機能のテストコードを書いていますが、サブコマンドがない場合に特定のコマンドが正しく候補として出ないことを検証している部分を探したいです。このテストケースがどのように動作をチェックしているか教えてください。", "query": "test completion command", "file": "completions_test.go", "symbol": "TestCompleteCompletion", "line": 2607, "lang": "ja", "candidates": [{"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs_test.go lines=27-50\nread TestGenYamlDoc for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDoc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=146-169\nread TestRootExecuteUnknownCommand for detail", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=394-417\nread TestPluginWithSubCommands for detail", "file": "command_test.go", "symbol": "TestPluginWithSubCommands", "line": 394, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=100-123\nread compCmdName for detail", "file": "completions.go", "symbol": "compCmdName", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=466-489\nread TestChildTakesArgs for detail", "file": "args_test.go", "symbol": "TestChildTakesArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=67-90\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=717-740\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 717, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=526-549\nread UsageString for detail", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=26-49\nread activeHelpEnvVarSuffix for detail", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2607-2630\nread TestCompleteCompletion for detail", "file": "completions_test.go", "symbol": "TestCompleteCompletion", "line": 2607, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=201-224\nread directives for detail", "file": "completions.go", "symbol": "directives", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=225-248\nread stringInSlice for detail", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=175-198\nread TestNoDuplicateArgs_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithDuplicateArgs", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=201-224\nread TestArbitraryArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "메인 명령어가 정의된 부분을 보여줘", "query": "cobra.Command root", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lang": "ko", "candidates": [{"text": "File: doc/md_docs.go\nLine 98: children := cmd.Commands()", "file": "doc/md_docs.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 13: // limitations under the License.", "file": "shell_completions.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 29: // prioritize the named persistent flag when performing completion,", "file": "shell_completions.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 84: rootCmd := &Command{", "file": "bash_completions_test.go", "symbol": "", "line": 84, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nLine 47: var rootCmd = &cobra.Command{", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions.go\nLine 829: DisableFlagsInUseLine: true,", "file": "completions.go", "symbol": "", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 2017: }", "file": "command.go", "symbol": "", "line": 2017, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 38: }", "file": "command_win.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 143: Long: \"an absolutely utterly useless command for testing deprecation!.\",", "file": "bash_completions_test.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 262: \"fmt\"", "file": "cobra_test.go", "symbol": "", "line": 262, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 268: var rootCmd = &cobra.Command{", "file": "cobra_test.go", "symbol": "", "line": 268, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\nLine 105: cmd.VisitParents(func(c *cobra.Command) {", "file": "doc/rest_docs.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 172: for flagname, isSet := range flagnameAndStatus {", "file": "flag_groups.go", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 56: rootCmd := &Command{", "file": "completions_test.go", "symbol": "", "line": 56, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_notwin.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 41: Usage string `yaml:\",omitempty\"`", "file": "doc/yaml_docs.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 63: checkStringContains(t, output, translate(rootCmd.Name()))", "file": "doc/man_docs_test.go", "symbol": "", "line": 63, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nLine 245: func TestMinimumNArgs_WithLessArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 96: if err := GenYaml(rootCmd, file); err != nil {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 620: // \tcompletions = append(completions, CompletionWithDesc(flagName, flag.Usage))", "file": "completions.go", "symbol": "", "line": 620, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 27: activeHelpGlobalEnvVar = configEnvVarGlobalPrefix + \"_\" + activeHelpEnvVarSuffix", "file": "active_help.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 39: checkStringContains(t, output, rootCmd.Short)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nLine 422: rootCmd := &Command{Use: \"root\", Run: emptyRun}", "file": "args_test.go", "symbol": "", "line": 422, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nLine 289: }", "file": "flag_groups.go", "symbol": "", "line": 289, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "메인 명령어가 정의된 부분을 보여줘", "query": "cobra.Command root", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lang": "ko", "candidates": [{"text": "File: doc/rest_docs_test.go\nsibling in doc", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\ndefines rootCmd", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2_test.go\nelsewhere in the tree", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nelsewhere in the tree", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "메인 명령어가 정의된 부분을 보여줘", "query": "cobra.Command root", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lang": "ko", "candidates": [{"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> github.com/spf13/cobra", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "메인 명령어가 정의된 부분을 보여줘", "query": "cobra.Command root", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lang": "ko", "candidates": [{"text": "Next: read doc/man_docs.go lines=84-107\nread GenManTreeOptions for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeOptions", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=24-47\nread emptyRun for detail", "file": "doc/cmd_test.go", "symbol": "emptyRun", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=22-45\nread PositionalArgs for detail", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=818-841\nread TestPersistentFlagsOnChild for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnChild", "line": 818, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2896-2919\nread TestCompletionFuncCompatibility for detail", "file": "completions_test.go", "symbol": "TestCompletionFuncCompatibility", "line": 2896, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=217-240\nread BenchmarkGenManToFile for detail", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=781-804\nread findSuggestions for detail", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1318-1341\nread TestValidArgsFuncSingleCmd for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmd", "line": 1318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=382-405\nread SetGlobalNormalizationFunc for detail", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=122-145\nread comps for detail", "file": "active_help_test.go", "symbol": "comps", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=80-103\nread checkStringOmits for detail", "file": "command_test.go", "symbol": "checkStringOmits", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=133-156\nread GenMarkdownTreeCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTreeCustom", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=89-112\nread rootCmdArgs for detail", "file": "command_test.go", "symbol": "rootCmdArgs", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=149-172\nread TestManPrintFlagsHidesShortDeprecated for detail", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2545-2568\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2545, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=69-92\nread timesCmd for detail", "file": "doc/cmd_test.go", "symbol": "timesCmd", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=605-628\nread HelpTemplate for detail", "file": "command.go", "symbol": "HelpTemplate", "line": 605, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=138-161\nread GenReSTTree for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTree", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=588-611\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 588, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "Estou tentando customizar as mensagens de erro que aparecem no log. Onde eu configuro aquele valor que vai no início de cada mensagem de erro?", "query": "error prefix", "file": "command.go", "symbol": "SetErrPrefix", "line": 376, "lang": "pt", "candidates": [{"text": "File: Makefile\nLine 4: ifeq (, $(shell which golangci-lint))", "file": "Makefile", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1269: rootCmd.SetErrPrefix(\"root error prefix:\")", "file": "command_test.go", "symbol": "", "line": 1269, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nLine 36: return strings.ReplaceAll(in, \"-\", \"\\\\-\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 444: if err != nil {", "file": "args_test.go", "symbol": "", "line": 444, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 118: expectErr: `at least one of the flags in the group [a b] is required`,", "file": "flag_groups_test.go", "symbol": "", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 312: IFS=$'\\n' read -ra completions -d '' < <(printf \"%%q\\n\" \"${completions[@]}\")", "file": "bash_completionsV2.go", "symbol": "", "line": 312, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 132: expected: true,", "file": "cobra_test.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 99: if len(args) > n {", "file": "args.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 376: func (c *Command) SetErrPrefix(s string) {", "file": "command.go", "symbol": "SetErrPrefix", "line": 376, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra.go\nLine 245: CheckErr(err)", "file": "cobra.go", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 21: \"os\"", "file": "fish_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 228: __%[1]s_debug \"Activating nospace.\"", "file": "zsh_completions.go", "symbol": "", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 196: cobra.WriteStringAndCheck(buf, \"# OPTIONS INHERITED FROM PARENT COMMANDS\\n\")", "file": "doc/man_docs.go", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 29: if err := GenMarkdown(echoCmd, buf); err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 76: buf.WriteString(\".. _\" + ref + \":\\n\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 2: //", "file": "zsh_completions_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 97: expected: 3,", "file": "cobra_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2915: // check against new signature", "file": "completions_test.go", "symbol": "", "line": 2915, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 25: \"strings\"", "file": "powershell_completions.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 92: defer file.Close()", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 90: // Help template generation.", "file": "cobra.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2307: // TestUseDeprecatedFlags checks,", "file": "command_test.go", "symbol": "", "line": 2307, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 248: # Since Fish completions are only loaded once the user triggers them, we trigger them ourselves", "file": "fish_completions.go", "symbol": "", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 219: if [ $hasActiveHelp -eq 1 ]; then", "file": "zsh_completions.go", "symbol": "", "line": 219, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Estou tentando customizar as mensagens de erro que aparecem no log. Onde eu configuro aquele valor que vai no início de cada mensagem de erro?", "query": "error prefix", "file": "command.go", "symbol": "SetErrPrefix", "line": 376, "lang": "pt", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Estou tentando customizar as mensagens de erro que aparecem no log. Onde eu configuro aquele valor que vai no início de cada mensagem de erro?", "query": "error prefix", "file": "command.go", "symbol": "SetErrPrefix", "line": 376, "lang": "pt", "candidates": [{"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Estou tentando customizar as mensagens de erro que aparecem no log. Onde eu configuro aquele valor que vai no início de cada mensagem de erro?", "query": "error prefix", "file": "command.go", "symbol": "SetErrPrefix", "line": 376, "lang": "pt", "candidates": [{"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=101-124\nread TestGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=133-156\nread GenMarkdownTreeCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTreeCustom", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=26-49\nread activeHelpEnvVarSuffix for detail", "file": "active_help.go", "symbol": "activeHelpEnvVarSuffix", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs_test.go lines=57-80\nread TestGenYamlTree for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlTree", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=593-616\nread writeRequiredFlag for detail", "file": "bash_completions.go", "symbol": "writeRequiredFlag", "line": 593, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=376-399\nread SetErrPrefix for detail", "file": "command.go", "symbol": "SetErrPrefix", "line": 376, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=105-128\nread OnFinalize for detail", "file": "cobra.go", "symbol": "OnFinalize", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=195-218\nread TestArbitraryArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=129-152\nread TestNoArgs_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithArgs", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2451-2474\nread removeCompCmd for detail", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=345-368\nread TestExactArgs_WithInvalidCount for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=389-412\nread TestRangeArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValidOnly_WithInvalidArgs", "line": 389, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=716-739\nread TestDisableFlagParsing for detail", "file": "command_test.go", "symbol": "TestDisableFlagParsing", "line": 716, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "파워쉘 자동 완성 파일 생성하는 메서드 어디 있어?", "query": "powershell completion generate", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFile", "line": 331, "lang": "ko", "candidates": [{"text": "File: args.go\nLine 103: }", "file": "args.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 1009: v = configEnvVarPrefixSubstRegexp.ReplaceAllString(v, \"_\")", "file": "completions.go", "symbol": "", "line": 1009, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 29: t.Errorf(\"Got: %q\\nBut should not have!\\n\", unexpected)", "file": "bash_completions_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 74: return err", "file": "doc/yaml_docs.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 146: description = cmd.Short", "file": "doc/man_docs.go", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 26: // Variables should not contain a '-' or ':' character", "file": "fish_completions.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "bash_completionsV2.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 18: \"strings\"", "file": "doc/util.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 18: \"fmt\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 34: checkStringContains(t, output, echoCmd.Long)", "file": "doc/md_docs_test.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 59: got := err.Error()", "file": "args_test.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 31: if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {", "file": "doc/util.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 132: rootCmd.AddCommand(aCmd, bCmd, cCmd)", "file": "doc/man_docs_test.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 331: func (c *Command) GenPowerShellCompletionFile(filename string) error {", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFile", "line": 331, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help_test.go\nLine 98: childCmd.ValidArgsFunction = func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) {", "file": "active_help_test.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 92: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 67: t.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 171: fi", "file": "zsh_completions.go", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 86: flags := c.Flags()", "file": "flag_groups.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 41: parentFlags := cmd.InheritedFlags()", "file": "doc/md_docs.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 61: // To achieve the same behavior across all shells, one can use", "file": "zsh_completions.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 21: )", "file": "powershell_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "flag_groups.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 276: c.ctx = ctx", "file": "command.go", "symbol": "", "line": 276, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "파워쉘 자동 완성 파일 생성하는 메서드 어디 있어?", "query": "powershell completion generate", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFile", "line": 331, "lang": "ko", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "파워쉘 자동 완성 파일 생성하는 메서드 어디 있어?", "query": "powershell completion generate", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFile", "line": 331, "lang": "ko", "candidates": [{"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> os", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> io", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> strings", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "파워쉘 자동 완성 파일 생성하는 메서드 어디 있어?", "query": "powershell completion generate", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFile", "line": 331, "lang": "ko", "candidates": [{"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=77-100\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=84-107\nread printCmd for detail", "file": "doc/cmd_test.go", "symbol": "printCmd", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=643-666\nread ErrPrefix for detail", "file": "command.go", "symbol": "ErrPrefix", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=28-51\nread genPowerShellComp for detail", "file": "powershell_completions.go", "symbol": "genPowerShellComp", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=187-210\nread TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=331-354\nread GenPowerShellCompletionFile for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFile", "line": 331, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=674-697\nread stripFlags for detail", "file": "command.go", "symbol": "stripFlags", "line": 674, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=342-365\nread GenPowerShellCompletionFileWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFileWithDesc", "line": 342, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=110-133\nread noDuplicateArgsWithDuplicate for detail", "file": "args_test.go", "symbol": "noDuplicateArgsWithDuplicate", "line": 110, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=195-218\nread TestArbitraryArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=316-339\nread getCompletions for detail", "file": "completions.go", "symbol": "getCompletions", "line": 316, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=173-196\nread indentString for detail", "file": "doc/rest_docs.go", "symbol": "indentString", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=320-343\nread genPowerShellCompletionFile for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletionFile", "line": 320, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=328-351\nread SetFlagErrorFunc for detail", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=313-336\nread genPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletion", "line": 313, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=75-98\nread TestGenYamlDocRunnable for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDocRunnable", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "사용법 및 에러 메시지가 출력되는 대상이 하나로 통합되어 설정되는 기능이 있는데, 이를 각각 분리해서 설정할 수 있는 방법이 무엇인가요? 현재 방식은 지원 중단 예정(Deprecated)이라고 되어 있습니다.", "query": "set output deprecated", "file": "command.go", "symbol": "SetOutput", "line": 289, "lang": "ko", "candidates": [{"text": "File: doc/rest_docs.go\nLine 32: flags.SetOutput(buf)", "file": "doc/rest_docs.go", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nLine 24: \"github.com/spf13/cobra\"", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 150: var result []cmdOption", "file": "doc/yaml_docs.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 218: # - file completion will be performed (so there will be choices after the activeHelp)", "file": "zsh_completions.go", "symbol": "", "line": 218, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 2: //", "file": "fish_completions.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 83: return nil", "file": "args.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 289: func (c *Command) SetOutput(output io.Writer) {", "file": "command.go", "symbol": "SetOutput", "line": 289, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nLine 2: //", "file": "active_help.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 34: // The array parameter should be the array that will contain the completions.", "file": "active_help.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 157: ValidArgs: []string{\"one\", \"two\", \"three\", \"four\"},", "file": "bash_completions_test.go", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 91: fmt.Fprintf(buf, \"::\\n\\n%s\\n\\n\", indentString(cmd.Example, \" \"))", "file": "doc/rest_docs.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 2: //", "file": "active_help_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2131: c.SetOutput(nil)", "file": "command_test.go", "symbol": "", "line": 2131, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nLine 34: return true", "file": "doc/util.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 225: # For completion type: menu-complete/menu-complete-backward and insert-completions", "file": "bash_completionsV2.go", "symbol": "", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 142: a: \"APPLE\",", "file": "cobra_test.go", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 271: Short: \"example_program - test fixture to check that deadcode elimination is allowed\",", "file": "cobra_test.go", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 15: package cobra", "file": "zsh_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 22: \"os\"", "file": "command_win.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 103: }", "file": "zsh_completions.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 176: Use: \"thechild\",", "file": "active_help_test.go", "symbol": "", "line": 176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 202: for j := range d[0] {", "file": "cobra.go", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 34: flags.SetOutput(buf)", "file": "doc/md_docs.go", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "사용법 및 에러 메시지가 출력되는 대상이 하나로 통합되어 설정되는 기능이 있는데, 이를 각각 분리해서 설정할 수 있는 방법이 무엇인가요? 현재 방식은 지원 중단 예정(Deprecated)이라고 되어 있습니다.", "query": "set output deprecated", "file": "command.go", "symbol": "SetOutput", "line": 289, "lang": "ko", "candidates": [{"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "사용법 및 에러 메시지가 출력되는 대상이 하나로 통합되어 설정되는 기능이 있는데, 이를 각각 분리해서 설정할 수 있는 방법이 무엇인가요? 현재 방식은 지원 중단 예정(Deprecated)이라고 되어 있습니다.", "query": "set output deprecated", "file": "command.go", "symbol": "SetOutput", "line": 289, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "사용법 및 에러 메시지가 출력되는 대상이 하나로 통합되어 설정되는 기능이 있는데, 이를 각각 분리해서 설정할 수 있는 방법이 무엇인가요? 현재 방식은 지원 중단 예정(Deprecated)이라고 되어 있습니다.", "query": "set output deprecated", "file": "command.go", "symbol": "SetOutput", "line": 289, "lang": "ko", "candidates": [{"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2323-2346\nread TestArgAliasesCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestArgAliasesCompletionInGo", "line": 2323, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=333-356\nread TestExactArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1624-1647\nread TestFlagCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGo", "line": 1624, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=27-50\nread TestGenYamlDoc for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDoc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=29-52\nread TestActiveHelpAlone for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=120-143\nread TestFailGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestFailGenFishCompletionFile", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=60-83\nread GenYamlTreeCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTreeCustom", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=123-146\nread SetDefaultShellCompDirective for detail", "file": "completions.go", "symbol": "SetDefaultShellCompDirective", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=289-312\nread SetOutput for detail", "file": "command.go", "symbol": "SetOutput", "line": 289, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=159-182\nread TestSubcommandExecuteC for detail", "file": "command_test.go", "symbol": "TestSubcommandExecuteC", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=261-284\nread TestBashCompletionTraverseChildren for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionTraverseChildren", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=363-386\nread TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=135-158\nread TestNoArgs_WithValid_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=311-334\nread SliceValue for detail", "file": "completions.go", "symbol": "SliceValue", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=307-330\nread TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=844-867\nread TestRequiredFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestRequiredFlagNameCompletionInGo", "line": 844, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=313-336\nread genPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletion", "line": 313, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "補完機能のシグネチャが変更された影響を確認したいので、異なる戻り値の型を持つ関数が正しく型インターフェースに適合しているかを検証しているテストコードを探してください。", "query": "completion signature test", "file": "completions_test.go", "symbol": "TestCompletionFuncCompatibility", "line": 2896, "lang": "ja", "candidates": [{"text": "File: active_help_test.go\nLine 222: fmt.Sprintf(\"%s%s\", activeHelpMarker, activeHelpMessage2),", "file": "active_help_test.go", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 39: // Temporary workaround for yaml lib generating incorrect yaml with long strings", "file": "doc/util.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 158: Short: \"Echo anything to the screen more times\",", "file": "bash_completions_test.go", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 152: expectErr: \"if any flags in the group [e subonly] are set none of the others can be; [e subonly] were all set\",", "file": "flag_groups_test.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 49: // in the directory given. This function may not work", "file": "doc/yaml_docs.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 86: func BenchmarkGenYamlToFile(b *testing.B) {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 54: // Deprecated", "file": "zsh_completions.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 68: local w word=$1; shift", "file": "bash_completions.go", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 103: // OnFinalize sets the passed functions to be run when each command's", "file": "cobra.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 190: expected string", "file": "cobra_test.go", "symbol": "", "line": 190, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 30: for _, c := range cmd.Commands() {", "file": "doc/util.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 15: package doc_test", "file": "doc/man_examples_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 73: Long: `a slightly useless command for testing.`,", "file": "doc/cmd_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 104: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 688: // Normal flag completion", "file": "completions.go", "symbol": "", "line": 688, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 2: //", "file": "doc/rest_docs.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 52: assertNoErr(t, rootCmd.GenFishCompletion(buf, true))", "file": "fish_completions_test.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 253: } else {", "file": "powershell_completions.go", "symbol": "", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 315: _, err := executeCommand(c, \"a\", \"b\", \"c\")", "file": "args_test.go", "symbol": "", "line": 315, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 256: if declare -F __%[1]s_custom_func >/dev/null; then", "file": "bash_completions.go", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "bash_completionsV2_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 5: // You may obtain a copy of the License at", "file": "fish_completions_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2896: func TestCompletionFuncCompatibility(t *testing.T) {", "file": "completions_test.go", "symbol": "TestCompletionFuncCompatibility", "line": 2896, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "補完機能のシグネチャが変更された影響を確認したいので、異なる戻り値の型を持つ関数が正しく型インターフェースに適合しているかを検証しているテストコードを探してください。", "query": "completion signature test", "file": "completions_test.go", "symbol": "TestCompletionFuncCompatibility", "line": 2896, "lang": "ja", "candidates": [{"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "補完機能のシグネチャが変更された影響を確認したいので、異なる戻り値の型を持つ関数が正しく型インターフェースに適合しているかを検証しているテストコードを探してください。", "query": "completion signature test", "file": "completions_test.go", "symbol": "TestCompletionFuncCompatibility", "line": 2896, "lang": "ja", "candidates": [{"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "補完機能のシグネチャが変更された影響を確認したいので、異なる戻り値の型を持つ関数が正しく型インターフェースに適合しているかを検証しているテストコードを探してください。", "query": "completion signature test", "file": "completions_test.go", "symbol": "TestCompletionFuncCompatibility", "line": 2896, "lang": "ja", "candidates": [{"text": "Next: read active_help_test.go lines=29-52\nread TestActiveHelpAlone for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=466-489\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=563-586\nread UsagePadding for detail", "file": "command.go", "symbol": "UsagePadding", "line": 563, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=618-641\nread VersionTemplate for detail", "file": "command.go", "symbol": "VersionTemplate", "line": 618, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=339-362\nread TestExactArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=289-312\nread SetOutput for detail", "file": "command.go", "symbol": "SetOutput", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=484-507\nread HelpFunc for detail", "file": "command.go", "symbol": "HelpFunc", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=279-302\nread TestBashCompletionNoActiveHelp for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionNoActiveHelp", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2896-2919\nread TestCompletionFuncCompatibility for detail", "file": "completions_test.go", "symbol": "TestCompletionFuncCompatibility", "line": 2896, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read fish_completions_test.go lines=42-65\nread TestCompleteCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteCmdInFishScript", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=652-675\nread gen for detail", "file": "bash_completions.go", "symbol": "gen", "line": 652, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=465-488\nread TestGrandChildSameName for detail", "file": "command_test.go", "symbol": "TestGrandChildSameName", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=717-740\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 717, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=99-122\nread OnInitialize for detail", "file": "cobra.go", "symbol": "OnInitialize", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=997-1020\nread configEnvVarGlobalPrefix for detail", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=58-81\nread ShellCompDirectiveError for detail", "file": "completions.go", "symbol": "ShellCompDirectiveError", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=251-274\nread TestMinimumNArgs_WithLessArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=30-53\nread install_deps for detail", "file": "Makefile", "symbol": "install_deps", "line": 30, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Wo wird die Logik zum Löschen der kompilierten Binärdateien definiert?", "query": "rm -rf BIN", "file": "Makefile", "symbol": "clean", "line": 34, "lang": "de", "candidates": [{"text": "File: doc/man_docs.go\nLine 218: buf.WriteString(\"# SEE ALSO\\n\")", "file": "doc/man_docs.go", "symbol": "", "line": 218, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_win.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "powershell_completions_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 119: cname := name + \" \" + child.Name()", "file": "doc/rest_docs.go", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 56: // GenMarkdownCustom creates custom markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/md_docs_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 58: Long: \"an utterly useless command for testing\",", "file": "doc/cmd_test.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 45: }", "file": "args.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 112: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 96: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 34: time.Sleep(MousetrapDisplayDuration)", "file": "command_win.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/man_examples_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 42: }", "file": "flag_groups_test.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 53: }", "file": "active_help.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 38: checkStringContains(t, output, \"rootflag\")", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 261: func TestBashCompletionTraverseChildren(t *testing.T) {", "file": "bash_completions_test.go", "symbol": "", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1094: expected = strings.Join([]string{", "file": "completions_test.go", "symbol": "", "line": 1094, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 34: clean:", "file": "Makefile", "symbol": "clean", "line": 34, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nLine 52: func (s byName) Less(i, j int) bool { return s[i].Name() < s[j].Name() }", "file": "doc/util.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 30: // check that active help is not being disabled", "file": "bash_completionsV2_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 6: //", "file": "doc/yaml_docs.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 25: func ExampleGenManTree() {", "file": "doc/man_examples_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Wo wird die Logik zum Löschen der kompilierten Binärdateien definiert?", "query": "rm -rf BIN", "file": "Makefile", "symbol": "clean", "line": 34, "lang": "de", "candidates": [{"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\ndefines clean", "file": "Makefile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Wo wird die Logik zum Löschen der kompilierten Binärdateien definiert?", "query": "rm -rf BIN", "file": "Makefile", "symbol": "clean", "line": 34, "lang": "de", "candidates": [{"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=308-331\nread aCmdArgs for detail", "file": "command_test.go", "symbol": "aCmdArgs", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=55-78\nread MarkZshCompPositionalArgumentFile for detail", "file": "zsh_completions.go", "symbol": "MarkZshCompPositionalArgumentFile", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=50-73\nread Len for detail", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=683-706\nread GenBashCompletion for detail", "file": "bash_completions.go", "symbol": "GenBashCompletion", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=32-55\nread printOptions for detail", "file": "doc/md_docs.go", "symbol": "printOptions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=49-72\nread defaultTraverseRunHooks for detail", "file": "cobra.go", "symbol": "defaultTraverseRunHooks", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=466-489\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs_test.go lines=80-103\nread TestGenRSTTree for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTTree", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=401-424\nread TestRangeArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=34-57\nread clean for detail", "file": "Makefile", "symbol": "clean", "line": 34, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=30-53\nread markdownExtension for detail", "file": "doc/md_docs.go", "symbol": "markdownExtension", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Wo werden die Argumente für den Befehl als String-Slice definiert?", "query": "cmd args slice", "file": "command_test.go", "symbol": "cArgs", "line": 717, "lang": "de", "candidates": [{"text": "File: fish_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "fish_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 633: if output != expected {", "file": "completions_test.go", "symbol": "", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 42: Section: \"2\",", "file": "doc/man_docs_test.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 168: keys := sortedKeys(data)", "file": "flag_groups.go", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/man_examples_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 15: package cobra", "file": "bash_completionsV2_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 38: set -l file \"$BASH_COMP_DEBUG_FILE\"", "file": "fish_completions.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 44: rootCmd.AddCommand(printCmd, echoCmd, dummyCmd)", "file": "doc/cmd_test.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_notwin.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 717: var cArgs []string", "file": "command_test.go", "symbol": "cArgs", "line": 717, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\nLine 56: // GenReST creates reStructured Text output.", "file": "doc/rest_docs.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "bash_completions_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 93: fi", "file": "bash_completionsV2.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 479: return c.UsageFunc()(c)", "file": "command.go", "symbol": "", "line": 479, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 55: func (c *Command) MarkZshCompPositionalArgumentFile(argPosition int, patterns ...string) error {", "file": "zsh_completions.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 139: }", "file": "doc/man_docs.go", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "command_notwin.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 50: // the `ValidArgs` field of `Command`", "file": "args.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 247: if ($ExecutionContext.SessionState.LanguageMode -eq \"FullLanguage\"){", "file": "powershell_completions.go", "symbol": "", "line": 247, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 71: checkStringContains(t, output, echoCmd.Long)", "file": "doc/md_docs_test.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 519: }", "file": "bash_completions.go", "symbol": "", "line": 519, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 171: var set []string", "file": "flag_groups.go", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Wo werden die Argumente für den Befehl als String-Slice definiert?", "query": "cmd args slice", "file": "command_test.go", "symbol": "cArgs", "line": 717, "lang": "de", "candidates": [{"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Wo werden die Argumente für den Befehl als String-Slice definiert?", "query": "cmd args slice", "file": "command_test.go", "symbol": "cArgs", "line": 717, "lang": "de", "candidates": [{"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Wo werden die Argumente für den Befehl als String-Slice definiert?", "query": "cmd args slice", "file": "command_test.go", "symbol": "cArgs", "line": 717, "lang": "de", "candidates": [{"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=49-72\nread defaultTraverseRunHooks for detail", "file": "cobra.go", "symbol": "defaultTraverseRunHooks", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=296-319\nread SetOut for detail", "file": "command.go", "symbol": "SetOut", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=83-106\nread MarkFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=261-284\nread TestBashCompletionTraverseChildren for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionTraverseChildren", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=123-146\nread SetDefaultShellCompDirective for detail", "file": "completions.go", "symbol": "SetDefaultShellCompDirective", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=383-406\nread TestRangeArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1575-1598\nread TestCompleteCmdInBashScript for detail", "file": "completions_test.go", "symbol": "TestCompleteCmdInBashScript", "line": 1575, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=31-54\nread MarkPersistentFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=333-356\nread TestExactArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=105-128\nread GenMan for detail", "file": "doc/man_docs.go", "symbol": "GenMan", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=717-740\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 717, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=2929-2952\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2929, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=47-70\nread GetActiveHelpConfig for detail", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "O comando falha ao tentar executar uma instrução quando a configuração está definida para aceitar apenas argumentos válidos, mas um valor inválido é passado.", "query": "invalid args error", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValidOnly_WithInvalidArgs", "line": 213, "lang": "pt", "candidates": [{"text": "File: doc/md_docs.go\nLine 135: if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {", "file": "doc/md_docs.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 231: children := cmd.Commands()", "file": "doc/man_docs.go", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 102: if !child.IsAvailableCommand() || child.IsAdditionalHelpTopicCommand() {", "file": "doc/md_docs.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 60: flagGroupsRequired: []string{\"a b\"},", "file": "flag_groups_test.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 68: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 45: // We generate on a subcommand so we have both subcommands and parents", "file": "doc/man_docs_test.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 71: for _, arg := range args {", "file": "args.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 80: ShellCompDirectiveFilterDirs", "file": "completions.go", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 8: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3230: expectedOutput: strings.Join([]string{", "file": "completions_test.go", "symbol": "", "line": 3230, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 40: }", "file": "command_win.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 103: t.Fatalf(\"GenMarkdownTree failed: %v\", err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_notwin.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 15: package cobra", "file": "zsh_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 52: subCmdFlagGroupsExclusive []string", "file": "flag_groups_test.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 28: \"time\"", "file": "cobra.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3526: \"extra2\",", "file": "completions_test.go", "symbol": "", "line": 3526, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 32: check(t, output, fmt.Sprintf(\"${env:%s}=0\", activeHelpVar))", "file": "powershell_completions_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 32: echoCmd.Flags().IntP(\"intone\", \"i\", 123, \"help message for flag intone\")", "file": "doc/cmd_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 30: t.Fatal(err)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "bash_completionsV2_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 304: local tab=$'\\t'", "file": "bash_completionsV2.go", "symbol": "", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 267: if ($ExecutionContext.SessionState.LanguageMode -eq \"FullLanguage\"){", "file": "powershell_completions.go", "symbol": "", "line": 267, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 213: func TestArbitraryArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValidOnly_WithInvalidArgs", "line": 213, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "O comando falha ao tentar executar uma instrução quando a configuração está definida para aceitar apenas argumentos válidos, mas um valor inválido é passado.", "query": "invalid args error", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValidOnly_WithInvalidArgs", "line": 213, "lang": "pt", "candidates": [{"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestArbitraryArgs_WithValidOnly_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "O comando falha ao tentar executar uma instrução quando a configuração está definida para aceitar apenas argumentos válidos, mas um valor inválido é passado.", "query": "invalid args error", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValidOnly_WithInvalidArgs", "line": 213, "lang": "pt", "candidates": [{"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "O comando falha ao tentar executar uma instrução quando a configuração está definida para aceitar apenas argumentos válidos, mas um valor inválido é passado.", "query": "invalid args error", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValidOnly_WithInvalidArgs", "line": 213, "lang": "pt", "candidates": [{"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2461-2484\nread TestDefaultCompletionCmd for detail", "file": "completions_test.go", "symbol": "TestDefaultCompletionCmd", "line": 2461, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=123-146\nread SetDefaultShellCompDirective for detail", "file": "completions.go", "symbol": "SetDefaultShellCompDirective", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=142-165\nread ExactValidArgs for detail", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=313-336\nread SetUsageFunc for detail", "file": "command.go", "symbol": "SetUsageFunc", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=77-100\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=245-268\nread TestDeadcodeElimination for detail", "file": "cobra_test.go", "symbol": "TestDeadcodeElimination", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=27-50\nread TestGenYamlDoc for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDoc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=604-627\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=991-1014\nread CompErrorln for detail", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=31-54\nread GenZshCompletion for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletion", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=107-130\nread CompletionOptions for detail", "file": "completions.go", "symbol": "CompletionOptions", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread right for detail", "file": "cobra.go", "symbol": "right", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=213-236\nread TestArbitraryArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValidOnly_WithInvalidArgs", "line": 213, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "tarea: al usar la validación 'solo argumentos válidos' combinada con el requisito de un mínimo de 2 argumentos, el sistema debería rechazar la ejecución correctamente si se proporcionan argumentos no válidos, aunque la cantidad sea suficiente. Verificar que el error se genere y proporcione la información adecuada.", "query": "valid only invalid args min", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lang": "es", "candidates": [{"text": "File: zsh_completions.go\nLine 109: local shellCompDirectiveNoFileComp=%[5]d", "file": "zsh_completions.go", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 6: //", "file": "doc/rest_docs_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "args.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 36: compCmd = ShellCompNoDescRequestCmd", "file": "powershell_completions.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 235: // If reflect.Value.MethodByName/reflect.Value.Method are reachable the", "file": "cobra_test.go", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 13: // limitations under the License.", "file": "bash_completionsV2_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 189: if flags.HasAvailableFlags() {", "file": "doc/man_docs.go", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 21: )", "file": "bash_completionsV2_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_win.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 593: len(helpFlag.Annotations[FlagSetByCobraAnnotation]) > 0 && helpFlag.Changed {", "file": "completions.go", "symbol": "", "line": 593, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 239: func TestMinimumNArgs_WithValidOnly_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions.go\nLine 697: return flag.Hidden || len(flag.Deprecated) > 0", "file": "bash_completions.go", "symbol": "", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "powershell_completions_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 23: )", "file": "doc/man_examples_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 48: }", "file": "powershell_completions.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 36: c.Println(\"Press return to continue...\")", "file": "command_win.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 73: s: \"kitten\",", "file": "cobra_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "zsh_completions.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 18: \"fmt\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 43: fi", "file": "bash_completionsV2.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 35: }", "file": "bash_completionsV2.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "active_help.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 223: hasActiveHelp=0", "file": "zsh_completions.go", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "tarea: al usar la validación 'solo argumentos válidos' combinada con el requisito de un mínimo de 2 argumentos, el sistema debería rechazar la ejecución correctamente si se proporcionan argumentos no válidos, aunque la cantidad sea suficiente. Verificar que el error se genere y proporcione la información adecuada.", "query": "valid only invalid args min", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lang": "es", "candidates": [{"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "tarea: al usar la validación 'solo argumentos válidos' combinada con el requisito de un mínimo de 2 argumentos, el sistema debería rechazar la ejecución correctamente si se proporcionan argumentos no válidos, aunque la cantidad sea suficiente. Verificar que el error se genere y proporcione la información adecuada.", "query": "valid only invalid args min", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lang": "es", "candidates": [{"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "tarea: al usar la validación 'solo argumentos válidos' combinada con el requisito de un mínimo de 2 argumentos, el sistema debería rechazar la ejecución correctamente si se proporcionan argumentos no válidos, aunque la cantidad sea suficiente. Verificar que el error se genere y proporcione la información adecuada.", "query": "valid only invalid args min", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lang": "es", "candidates": [{"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_examples_test.go lines=37-60\nread ExampleGenMan for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenMan", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=149-172\nread TestManPrintFlagsHidesShortDeprecated for detail", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=1018-1041\nread getEnvConfig for detail", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=177-200\nread TestExecuteContext for detail", "file": "command_test.go", "symbol": "TestExecuteContext", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=551-574\nread writeFlags for detail", "file": "bash_completions.go", "symbol": "writeFlags", "line": 551, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=58-81\nread ShellCompDirectiveError for detail", "file": "completions.go", "symbol": "ShellCompDirectiveError", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=74-97\nread checkStringContains for detail", "file": "command_test.go", "symbol": "checkStringContains", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=819-842\nread childCmdArgs for detail", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=678-701\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=100-123\nread compCmdName for detail", "file": "completions.go", "symbol": "compCmdName", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=84-107\nread ShellCompDirectiveKeepOrder for detail", "file": "completions.go", "symbol": "ShellCompDirectiveKeepOrder", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=348-371\nread GenPowerShellCompletionWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionWithDesc", "line": 348, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=74-97\nread TestProgWithColon for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithColon", "line": 74, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "查找根据参数生成拼写建议提示的逻辑", "query": "suggestions argument string", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lang": "zh", "candidates": [{"text": "File: completions_test.go\nLine 3200: },", "file": "completions_test.go", "symbol": "", "line": 3200, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 112: if !cmd.DisableAutoGenTag {", "file": "doc/md_docs.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 92: buf := new(bytes.Buffer)", "file": "fish_completions_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 136: Run: emptyRun,", "file": "bash_completions_test.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 6: //", "file": "doc/util.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "args.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 97: b.Fatal(err)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 271: func TestMaximumNArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 355: __%[1]s_debug \"${FUNCNAME[0]}: c is $c words[c] is ${words[c]}\"", "file": "bash_completions.go", "symbol": "", "line": 355, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 99: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 75: func TestGenYamlDocRunnable(t *testing.T) {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 125: __%[1]s_debug \"Activating keep order\"", "file": "bash_completionsV2.go", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 104: rootCmd.Flags().String(\"filename-ext\", \"\", \"Enter a filename (extension limited)\")", "file": "bash_completions_test.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 781: func (c *Command) findSuggestions(arg string) string {", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\nLine 1612: Run: emptyRun,", "file": "completions_test.go", "symbol": "", "line": 1612, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2594: compCmd, _, err = rootCmd.Find([]string{compCmdName})", "file": "completions_test.go", "symbol": "", "line": 2594, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 20: \"io\"", "file": "doc/md_docs.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 89: if err := GenReSTTree(c, tmpdir); err != nil {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 155: cobra.WriteStringAndCheck(buf, \"# DESCRIPTION\\n\")", "file": "doc/man_docs.go", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 683: flagName = lastArg[index-1 : index]", "file": "completions.go", "symbol": "", "line": 683, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 36: return fmt.Errorf(\"unknown command %q for %q%s\", args[0], cmd.CommandPath(), cmd.findSuggestions(args[0]))", "file": "args.go", "symbol": "", "line": 36, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nLine 183: t := template.New(\"top\")", "file": "cobra.go", "symbol": "", "line": 183, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 35: rm -rf $(BIN)", "file": "Makefile", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "查找根据参数生成拼写建议提示的逻辑", "query": "suggestions argument string", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lang": "zh", "candidates": [{"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "查找根据参数生成拼写建议提示的逻辑", "query": "suggestions argument string", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lang": "zh", "candidates": [{"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "查找根据参数生成拼写建议提示的逻辑", "query": "suggestions argument string", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lang": "zh", "candidates": [{"text": "Next: read completions.go lines=1018-1041\nread getEnvConfig for detail", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=781-804\nread findSuggestions for detail", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions_test.go lines=232-255\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups_test.go lines=22-45\nread TestValidateFlagGroups for detail", "file": "flag_groups_test.go", "symbol": "TestValidateFlagGroups", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=101-124\nread compCmdNoDescFlagName for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagName", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1276-1299\nread TestValidArgsFuncCmdContext for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncCmdContext", "line": 1276, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=25-48\nread ExampleGenManTree for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenManTree", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=141-164\nread TestNoArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithInvalidArgs", "line": 141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=209-232\nread sortedKeys for detail", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=202-225\nread genMan for detail", "file": "doc/man_docs.go", "symbol": "genMan", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=632-655\nread completeRequireFlags for detail", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1821-1844\nread TestFlagCompletionWithNotInterspersedArgs for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWithNotInterspersedArgs", "line": 1821, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=493-516\nread TestFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGo", "line": 493, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=67-90\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 67, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "查找调用自定义帮助函数来展示命令说明的方法", "query": "help command function", "file": "command.go", "symbol": "Help", "line": 520, "lang": "zh", "candidates": [{"text": "File: command.go\nLine 520: func (c *Command) Help() error {", "file": "command.go", "symbol": "Help", "line": 520, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\nLine 1314: t.Errorf(\"expected: %q, got: %q\", expected, output)", "file": "completions_test.go", "symbol": "", "line": 1314, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 217: d[i][j] = min + 1", "file": "cobra.go", "symbol": "", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 161: },", "file": "flag_groups_test.go", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 362: else", "file": "bash_completionsV2.go", "symbol": "", "line": 362, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 83: // AddTemplateFunc adds a template function that's available to Usage and Help", "file": "cobra.go", "symbol": "", "line": 83, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nLine 30: // check that active help is not being disabled", "file": "bash_completionsV2_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 6: github.com/cpuguy83/go-md2man/v2 v2.0.6", "file": "go.mod", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 13: // limitations under the License.", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 34: // in the directory given. The header may be nil. This function may not work", "file": "doc/man_docs.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 241: t.Errorf(\"Expected completion to not include %q flag: Got %v\", flagName, output)", "file": "bash_completions_test.go", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 540: // Make sure the completion script calls the __*_go_custom_completion function for", "file": "bash_completions.go", "symbol": "", "line": 540, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 3: go 1.15", "file": "go.mod", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 243: fmt.Fprintf(buf, \"# HISTORY\\n%s Auto generated by spf13/cobra\\n\", header.Date.Format(\"2-Jan-2006\"))", "file": "doc/man_docs.go", "symbol": "", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 179: end", "file": "fish_completions.go", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 15: package cobra", "file": "bash_completionsV2_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 18: \"strings\"", "file": "doc/util.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 622: }", "file": "completions.go", "symbol": "", "line": 622, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 112: if !cmd.DisableAutoGenTag {", "file": "doc/md_docs.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 17: import (", "file": "powershell_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 994: t.Errorf(\"Help text mismatch.\\nExpected:\\n%s\\n\\nGot:\\n%s\\n\", expected, got)", "file": "command_test.go", "symbol": "", "line": 994, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nLine 473: WriteStringAndCheck(buf, fmt.Sprintf(\" flags_with_completion+=(%q)\\n\", name))", "file": "bash_completions.go", "symbol": "", "line": 473, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 271: func TestMaximumNArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 104: }", "file": "args.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "查找调用自定义帮助函数来展示命令说明的方法", "query": "help command function", "file": "command.go", "symbol": "Help", "line": 520, "lang": "zh", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "查找调用自定义帮助函数来展示命令说明的方法", "query": "help command function", "file": "command.go", "symbol": "Help", "line": 520, "lang": "zh", "candidates": [{"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "查找调用自定义帮助函数来展示命令说明的方法", "query": "help command function", "file": "command.go", "symbol": "Help", "line": 520, "lang": "zh", "candidates": [{"text": "Next: read completions.go lines=58-81\nread ShellCompDirectiveError for detail", "file": "completions.go", "symbol": "ShellCompDirectiveError", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=173-196\nread indentString for detail", "file": "doc/rest_docs.go", "symbol": "indentString", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=81-104\nread ValidateFlagGroups for detail", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=604-627\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=520-543\nread Help for detail", "file": "command.go", "symbol": "Help", "line": 520, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=283-306\nread TestMaximumNArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=127-150\nread MatchAll for detail", "file": "args.go", "symbol": "MatchAll", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=351-374\nread TestExactArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=207-230\nread TestArbitraryArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=66-89\nread TestGenRSTNoTag for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoTag", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=717-740\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 717, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "I'm trying to figure out how to define the syntax pattern for our CLI arguments. Where is the structure that holds the usage string and the alternative names for a subcommand?", "query": "usage aliases structure", "file": "command.go", "symbol": "Command", "line": 54, "lang": "en", "candidates": [{"text": "File: bash_completionsV2_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "bash_completionsV2_test.go", "symbol": "", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nLine 40: c := &Command{}", "file": "cobra_test.go", "symbol": "", "line": 40, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nLine 64: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 31: if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {", "file": "doc/util.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 54: type Command struct {", "file": "command.go", "symbol": "Command", "line": 54, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nLine 58: $Command = $CommandAst.CommandElements", "file": "powershell_completions.go", "symbol": "", "line": 58, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_notwin.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 154: a: \"\",", "file": "cobra_test.go", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 78: return flags.SetAnnotation(name, BashCompCustom, []string{f})", "file": "shell_completions.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 37: output := buf.String()", "file": "fish_completions_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 185: local hasActiveHelp=0", "file": "zsh_completions.go", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 84: flagGroupsOneRequired: []string{\"a b\", \"d e\"},", "file": "flag_groups_test.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 23: func TestPwshCompletionNoActiveHelp(t *testing.T) {", "file": "powershell_completions_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 22: type PositionalArgs func(cmd *Command, args []string) error", "file": "args.go", "symbol": "", "line": 22, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\nLine 30: func printOptionsReST(buf *bytes.Buffer, cmd *cobra.Command, name string) error {", "file": "doc/rest_docs.go", "symbol": "", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nLine 53: func GenYamlTree(cmd *cobra.Command, dir string) error {", "file": "doc/yaml_docs.go", "symbol": "", "line": 53, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nLine 2319: checkStringContains(t, output, \"This flag is deprecated\")", "file": "command_test.go", "symbol": "", "line": 2319, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 168: output := buf.String()", "file": "bash_completions_test.go", "symbol": "", "line": 168, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "bash_completionsV2_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 171: output, err := executeCommand(c, \"one\", \"two\")", "file": "args_test.go", "symbol": "", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 19: \"fmt\"", "file": "zsh_completions_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 15: package doc", "file": "doc/cmd_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 75: set -l directiveLine $results[-1]", "file": "fish_completions.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "doc/man_examples_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "I'm trying to figure out how to define the syntax pattern for our CLI arguments. Where is the structure that holds the usage string and the alternative names for a subcommand?", "query": "usage aliases structure", "file": "command.go", "symbol": "Command", "line": 54, "lang": "en", "candidates": [{"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "I'm trying to figure out how to define the syntax pattern for our CLI arguments. Where is the structure that holds the usage string and the alternative names for a subcommand?", "query": "usage aliases structure", "file": "command.go", "symbol": "Command", "line": 54, "lang": "en", "candidates": [{"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "I'm trying to figure out how to define the syntax pattern for our CLI arguments. Where is the structure that holds the usage string and the alternative names for a subcommand?", "query": "usage aliases structure", "file": "command.go", "symbol": "Command", "line": 54, "lang": "en", "candidates": [{"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=88-111\nread exactArgsWithInvalidCount for detail", "file": "args_test.go", "symbol": "exactArgsWithInvalidCount", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=819-842\nread childCmdArgs for detail", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=209-232\nread sortedKeys for detail", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=66-89\nread EnableTraverseRunHooks for detail", "file": "cobra.go", "symbol": "EnableTraverseRunHooks", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=325-348\nread finalCmd for detail", "file": "completions.go", "symbol": "finalCmd", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=251-274\nread TestMinimumNArgs_WithLessArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid", "line": 251, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=629-652\nread writeCmdAliases for detail", "file": "bash_completions.go", "symbol": "writeCmdAliases", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups_test.go lines=22-45\nread TestValidateFlagGroups for detail", "file": "flag_groups_test.go", "symbol": "TestValidateFlagGroups", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=54-77\nread Command for detail", "file": "command.go", "symbol": "Command", "line": 54, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=123-146\nread TestNoArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=326-349\nread finalArgs for detail", "file": "completions.go", "symbol": "finalArgs", "line": 326, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=114-137\nread child1CmdArgs for detail", "file": "command_test.go", "symbol": "child1CmdArgs", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=30-53\nread markdownExtension for detail", "file": "doc/md_docs.go", "symbol": "markdownExtension", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=985-1008\nread CompError for detail", "file": "completions.go", "symbol": "CompError", "line": 985, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "retourner les complétions 'three' et 'four' si l'argument est vide", "query": "validArgsFunc2 completion", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lang": "fr", "candidates": [{"text": "File: args_test.go\nLine 35: func expectSuccess(output string, err error, t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 6: //", "file": "powershell_completions_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 93: desc: \"Validation of required groups occurs on groups in sorted order\",", "file": "flag_groups_test.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 134: buf := new(bytes.Buffer)", "file": "doc/man_docs_test.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 96: }", "file": "doc/rest_docs.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 860: }", "file": "command.go", "symbol": "", "line": 860, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 285: # matching algorithms to attempt to find completions.", "file": "zsh_completions.go", "symbol": "", "line": 285, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 81: Deprecated: \"Please use echo instead\",", "file": "doc/cmd_test.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 50: tests := []struct {", "file": "cobra_test.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 127: lastParam=${words[-1]}", "file": "zsh_completions.go", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 703: flagName = prevArg[2:]", "file": "completions.go", "symbol": "", "line": 703, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 41: func validArgsFunc2(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) {", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/cmd_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 158: flag.Name,", "file": "doc/yaml_docs.go", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 60: }", "file": "flag_groups.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 75: }", "file": "bash_completions_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 35: } else {", "file": "command_win.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 231: __%[1]s_debug \"Adding second completion to perform nospace directive\"", "file": "fish_completions.go", "symbol": "", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 13: // limitations under the License.", "file": "doc/man_examples_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 83: tmpdir, err := os.MkdirTemp(\"\", \"test-gen-rst-tree\")", "file": "doc/rest_docs_test.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 31: $(info ******************** downloading dependencies ********************)", "file": "Makefile", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 349: # the completion because this length is only used when printing the completions", "file": "bash_completionsV2.go", "symbol": "", "line": 349, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 17: import (", "file": "powershell_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 120: ref = strings.ReplaceAll(cname, \" \", \"_\")", "file": "doc/rest_docs.go", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "retourner les complétions 'three' et 'four' si l'argument est vide", "query": "validArgsFunc2 completion", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lang": "fr", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "retourner les complétions 'three' et 'four' si l'argument est vide", "query": "validArgsFunc2 completion", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lang": "fr", "candidates": [{"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "retourner les complétions 'three' et 'four' si l'argument est vide", "query": "validArgsFunc2 completion", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lang": "fr", "candidates": [{"text": "Next: read completions_test.go lines=157-180\nread TestNoCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=201-224\nread TestArbitraryArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=274-297\nread TestCommandAlias for detail", "file": "command_test.go", "symbol": "TestCommandAlias", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=371-394\nread TestRangeArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_examples_test.go lines=37-60\nread ExampleGenMan for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenMan", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=351-374\nread TestExactArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=358-381\nread SetHelpTemplate for detail", "file": "command.go", "symbol": "SetHelpTemplate", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=69-92\nread timesCmd for detail", "file": "doc/cmd_test.go", "symbol": "timesCmd", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=129-152\nread TestNoArgs_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithArgs", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread left for detail", "file": "cobra.go", "symbol": "left", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=225-248\nread stringInSlice for detail", "file": "cobra.go", "symbol": "stringInSlice", "line": 225, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "El código de abajo intenta obtener el valor de una variable de entorno para la configuración. Parece que primero busca una variable específica del comando raíz (en mayúsculas) y, si está vacía, intenta buscar una variable global con un prefijo 'COBRA_'. Necesito entender cómo se construye el nombre de estas variables de entorno, ya que la lógica parece un poco compleja y quiero asegurarme de que está funcionando como se espera. ¿Podrías explicarme exactamente cómo se formatea el nombre de la variable de entorno en cada caso?", "query": "env config resolution", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lang": "es", "candidates": [{"text": "File: doc/yaml_docs_test.go\nLine 66: if err := GenYamlTree(c, tmpdir); err != nil {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3814: got := getEnvConfig(cmd, tc.suffix)", "file": "completions_test.go", "symbol": "", "line": 3814, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nLine 132: case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:", "file": "cobra.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 15: package cobra", "file": "zsh_completions.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 59: Example: \"Just run cobra-test echo\",", "file": "doc/cmd_test.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 15: //go:build !windows", "file": "command_notwin.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 185: return 1", "file": "fish_completions.go", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 142: t.Fatalf(\"Couldn't find SEE ALSO section header: %v\", err)", "file": "doc/man_docs_test.go", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2504: t.Errorf(\"Should have a 'completion' command when there are other sub-commands of root\")", "file": "completions_test.go", "symbol": "", "line": 2504, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 55: return MarkFlagCustom(c.Flags(), name, f)", "file": "shell_completions.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 28: output := buf.String()", "file": "zsh_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 29: if err := GenMarkdown(echoCmd, buf); err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 1018: func getEnvConfig(cmd *Command, suffix string) string {", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nLine 5: // You may obtain a copy of the License at", "file": "active_help.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 6: //", "file": "bash_completions_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 103: t.Errorf(\"Expected to not contain: \\n %v\\nGot: %v\", expected, got)", "file": "doc/cmd_test.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 90: func (c *Command) MarkPersistentFlagDirname(name string) error {", "file": "shell_completions.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 53: }", "file": "active_help.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 45: parentFlags.PrintDefaults()", "file": "doc/rest_docs.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 8: //", "file": "shell_completions.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 35: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 239: }", "file": "cobra.go", "symbol": "", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 814: t.Error(`LocalFlags expected to contain \"intf\", got \"nil\"`)", "file": "command_test.go", "symbol": "", "line": 814, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 192: }", "file": "active_help_test.go", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "El código de abajo intenta obtener el valor de una variable de entorno para la configuración. Parece que primero busca una variable específica del comando raíz (en mayúsculas) y, si está vacía, intenta buscar una variable global con un prefijo 'COBRA_'. Necesito entender cómo se construye el nombre de estas variables de entorno, ya que la lógica parece un poco compleja y quiero asegurarme de que está funcionando como se espera. ¿Podrías explicarme exactamente cómo se formatea el nombre de la variable de entorno en cada caso?", "query": "env config resolution", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lang": "es", "candidates": [{"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "El código de abajo intenta obtener el valor de una variable de entorno para la configuración. Parece que primero busca una variable específica del comando raíz (en mayúsculas) y, si está vacía, intenta buscar una variable global con un prefijo 'COBRA_'. Necesito entender cómo se construye el nombre de estas variables de entorno, ya que la lógica parece un poco compleja y quiero asegurarme de que está funcionando como se espera. ¿Podrías explicarme exactamente cómo se formatea el nombre de la variable de entorno en cada caso?", "query": "env config resolution", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lang": "es", "candidates": [{"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "El código de abajo intenta obtener el valor de una variable de entorno para la configuración. Parece que primero busca una variable específica del comando raíz (en mayúsculas) y, si está vacía, intenta buscar una variable global con un prefijo 'COBRA_'. Necesito entender cómo se construye el nombre de estas variables de entorno, ya que la lógica parece un poco compleja y quiero asegurarme de que está funcionando como se espera. ¿Podrías explicarme exactamente cómo se formatea el nombre de la variable de entorno en cada caso?", "query": "env config resolution", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lang": "es", "candidates": [{"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=1018-1041\nread getEnvConfig for detail", "file": "completions.go", "symbol": "getEnvConfig", "line": 1018, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=313-336\nread SetUsageFunc for detail", "file": "command.go", "symbol": "SetUsageFunc", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=52-75\nread defaultLinkHandler for detail", "file": "doc/rest_docs.go", "symbol": "defaultLinkHandler", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=497-520\nread writeShortFlag for detail", "file": "bash_completions.go", "symbol": "writeShortFlag", "line": 497, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=107-130\nread ExactArgs for detail", "file": "args.go", "symbol": "ExactArgs", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=65-88\nread MarkFlagsMutuallyExclusive for detail", "file": "flag_groups.go", "symbol": "MarkFlagsMutuallyExclusive", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=30-53\nread cmdOption for detail", "file": "doc/yaml_docs.go", "symbol": "cmdOption", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=253-276\nread dirname for detail", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=295-318\nread TestMaximumNArgs_WithMoreArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs", "line": 295, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=274-297\nread TestCommandAlias for detail", "file": "command_test.go", "symbol": "TestCommandAlias", "line": 274, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=149-172\nread genFlagResult for detail", "file": "doc/yaml_docs.go", "symbol": "genFlagResult", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=678-701\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 678, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=492-515\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Estoy intentando entender cómo se gestiona la entrada de datos cuando se ejecutan subcomandos. ¿Podrías explicarme la lógica para determinar qué lector se utiliza si el actual es nulo y cómo se propaga hacia arriba en la jerarquía?", "query": "io.Reader parent", "file": "command.go", "symbol": "getIn", "line": 432, "lang": "es", "candidates": [{"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 432: func (c *Command) getIn(def io.Reader) io.Reader {", "file": "command.go", "symbol": "getIn", "line": 432, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 286: if err != nil {", "file": "cobra_test.go", "symbol": "", "line": 286, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 10: default: all", "file": "Makefile", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 27: assertNoErr(t, c.GenZshCompletion(buf))", "file": "zsh_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 27: assertNoErr(t, c.GenZshCompletion(buf))", "file": "zsh_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 97: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 97, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 6: //", "file": "active_help.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/md_docs_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 170: _filedir -d", "file": "bash_completionsV2.go", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 283: # We must return an error code here to let zsh know that there were no", "file": "zsh_completions.go", "symbol": "", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1759: t.Errorf(\"expected: %q, got: %q\", expected, output)", "file": "completions_test.go", "symbol": "", "line": 1759, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 140: return GenReSTTreeCustom(cmd, dir, emptyStr, defaultLinkHandler)", "file": "doc/rest_docs.go", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 45: }", "file": "args.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 18: lint:", "file": "Makefile", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 20: \"testing\"", "file": "bash_completionsV2_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 18: \"fmt\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 216: check(t, output, `local_nonpersistent_flags+=(\"-T\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 216, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 20: \"testing\"", "file": "zsh_completions_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 241: // of that group required so that the shell completion suggests them automatically", "file": "flag_groups.go", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "zsh_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/man_examples_test.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 85: buf := new(bytes.Buffer)", "file": "doc/md_docs_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 284: flag.Hidden = true", "file": "flag_groups.go", "symbol": "", "line": 284, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Estoy intentando entender cómo se gestiona la entrada de datos cuando se ejecutan subcomandos. ¿Podrías explicarme la lógica para determinar qué lector se utiliza si el actual es nulo y cómo se propaga hacia arriba en la jerarquía?", "query": "io.Reader parent", "file": "command.go", "symbol": "getIn", "line": 432, "lang": "es", "candidates": [{"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Estoy intentando entender cómo se gestiona la entrada de datos cuando se ejecutan subcomandos. ¿Podrías explicarme la lógica para determinar qué lector se utiliza si el actual es nulo y cómo se propaga hacia arriba en la jerarquía?", "query": "io.Reader parent", "file": "command.go", "symbol": "getIn", "line": 432, "lang": "es", "candidates": [{"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Estoy intentando entender cómo se gestiona la entrada de datos cuando se ejecutan subcomandos. ¿Podrías explicarme la lógica para determinar qué lector se utiliza si el actual es nulo y cómo se propaga hacia arriba en la jerarquía?", "query": "io.Reader parent", "file": "command.go", "symbol": "getIn", "line": 432, "lang": "es", "candidates": [{"text": "Next: read completions.go lines=231-254\nread initCompleteCmd for detail", "file": "completions.go", "symbol": "initCompleteCmd", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=26-49\nread TestGenMdDoc for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=26-49\nread activeHelpMessage2 for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=122-145\nread comps for detail", "file": "active_help_test.go", "symbol": "comps", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=155-178\nread TestOnlyValidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=429-452\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 429, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=438-461\nread TestRootTakesArgs for detail", "file": "args_test.go", "symbol": "TestRootTakesArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=206-229\nread TestExecuteContextC for detail", "file": "command_test.go", "symbol": "TestExecuteContextC", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=77-100\nread maximumNArgsWithMoreArgs for detail", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=395-418\nread TestRangeArgs_WithInvalidCount for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount", "line": 395, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2545-2568\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2545, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=818-841\nread TestPersistentFlagsOnChild for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnChild", "line": 818, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=72-95\nread MousetrapHelpText for detail", "file": "cobra.go", "symbol": "MousetrapHelpText", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=25-48\nread activeHelpMessage for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=432-455\nread getIn for detail", "file": "command.go", "symbol": "getIn", "line": 432, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "Wie prüft man, dass es keine Vervollständigungen für die Unterbefehle des Vervollständigungsbefehls gibt?", "query": "completion subcommand no completions test", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lang": "de", "candidates": [{"text": "File: fish_completions.go\nLine 31: compCmd := ShellCompRequestCmd", "file": "fish_completions.go", "symbol": "", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions.go\nLine 34: compCmd := ShellCompRequestCmd", "file": "powershell_completions.go", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "active_help.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 394: comp=${comp%%%%$tab*}", "file": "bash_completionsV2.go", "symbol": "", "line": 394, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 61: Use: \"thechild\",", "file": "active_help_test.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 43: Title: \"MINE\",", "file": "doc/man_examples_test.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "powershell_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 208: d[i][j] = d[i-1][j-1]", "file": "cobra.go", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1978: fmt.Fprintf(w, \"\\n %s\", c.UseLine())", "file": "command.go", "symbol": "", "line": 1978, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 989: if !EnableTraverseRunHooks {", "file": "command.go", "symbol": "", "line": 989, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2858: {", "file": "command_test.go", "symbol": "", "line": 2858, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 88: compCmd := ShellCompRequestCmd", "file": "zsh_completions.go", "symbol": "", "line": 88, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nLine 181: checkNumOccurrences(t, output, `__root_custom_func`, 3) // 1. check existence, 2. invoke, 3. actual definition", "file": "bash_completions_test.go", "symbol": "", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2670: var compCmd *Command", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nLine 35: // This function can be called multiple times before and/or after completions are added to", "file": "active_help.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 94: }", "file": "powershell_completions.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 3: go 1.15", "file": "go.mod", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1379: return false", "file": "command.go", "symbol": "", "line": 1379, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 44: }", "file": "bash_completionsV2.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 62: checkStringContains(t, output, \"rootflag\")", "file": "doc/man_docs_test.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 48: fmt.Print(out.String())", "file": "doc/man_examples_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 32: compCmd := ShellCompRequestCmd", "file": "bash_completionsV2.go", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nLine 156: if len(flag.ShorthandDeprecated) == 0 && len(flag.Shorthand) > 0 {", "file": "doc/yaml_docs.go", "symbol": "", "line": 156, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 75: # When completing a flag with an = (e.g., %[1]s -n=)", "file": "bash_completionsV2.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Wie prüft man, dass es keine Vervollständigungen für die Unterbefehle des Vervollständigungsbefehls gibt?", "query": "completion subcommand no completions test", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lang": "de", "candidates": [{"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Wie prüft man, dass es keine Vervollständigungen für die Unterbefehle des Vervollständigungsbefehls gibt?", "query": "completion subcommand no completions test", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lang": "de", "candidates": [{"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Wie prüft man, dass es keine Vervollständigungen für die Unterbefehle des Vervollständigungsbefehls gibt?", "query": "completion subcommand no completions test", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lang": "de", "candidates": [{"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=91-114\nread AddTemplateFuncs for detail", "file": "cobra.go", "symbol": "AddTemplateFuncs", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=592-615\nread UsageTemplate for detail", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=788-811\nread sb for detail", "file": "command.go", "symbol": "sb", "line": 788, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=77-100\nread maximumNArgsWithMoreArgs for detail", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=279-302\nread TestBashCompletionNoActiveHelp for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionNoActiveHelp", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=633-656\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=25-48\nread activeHelpMessage for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2670-2693\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2670, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read active_help_test.go lines=29-52\nread TestActiveHelpAlone for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=142-165\nread ExactValidArgs for detail", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=65-88\nread MarkFlagsMutuallyExclusive for detail", "file": "flag_groups.go", "symbol": "MarkFlagsMutuallyExclusive", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=629-652\nread writeCmdAliases for detail", "file": "bash_completions.go", "symbol": "writeCmdAliases", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=171-194\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=604-627\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 604, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "두 값을 비교할 때 문자열을 숫자로 변환해서 비교하는 로직에서, 숫자가 아닌 문자열이 들어오면 에러 처리가 안 되고 0으로 처리되는 문제가 있는 것 같습니다. 비교 연산 시 타입별 처리 방식 확인 부탁드립니다.", "query": "compare string int", "file": "cobra.go", "symbol": "Gt", "line": 114, "lang": "ko", "candidates": [{"text": "File: cobra.go\nLine 114: func Gt(a interface{}, b interface{}) bool {", "file": "cobra.go", "symbol": "Gt", "line": 114, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: shell_completions.go\nLine 22: // prioritize the named flag when performing completion,", "file": "shell_completions.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 15: package cobra", "file": "powershell_completions_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 12: // See the License for the specific language governing permissions and", "file": "doc/util.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_notwin.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 119: if len(args) < min || len(args) > max {", "file": "args.go", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 272: Run: func(cmd *cobra.Command, args []string) {", "file": "cobra_test.go", "symbol": "", "line": 272, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 76: // to register a Go function which will work across all shells.", "file": "shell_completions.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 18: \"strings\"", "file": "doc/util.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 22: type PositionalArgs func(cmd *Command, args []string) error", "file": "args.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 147: # - Obtain the completions and store them in the global __%[1]s_comp_results", "file": "fish_completions.go", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 53: return fmt.Sprintf(\"`%s <%s.rst>`_\", name, ref)", "file": "doc/rest_docs.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 30: // check that active help is not being disabled", "file": "zsh_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 80: Long: `an absolutely utterly useless command for testing deprecation!.`,", "file": "doc/cmd_test.go", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 541: // every registered flag. We need to do this here (and not when the flag was registered", "file": "bash_completions.go", "symbol": "", "line": 541, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 31: return nil", "file": "args.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 62: done", "file": "bash_completions.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1003: requiredPersistent.Changed = false", "file": "completions_test.go", "symbol": "", "line": 1003, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 143: }", "file": "fish_completions_test.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 83: // Used only in GenManTreeFromOpts.", "file": "doc/man_docs.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 76: // to register a Go function which will work across all shells.", "file": "shell_completions.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 18: package cobra", "file": "command_win.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 73: Long: `a slightly useless command for testing.`,", "file": "doc/cmd_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "두 값을 비교할 때 문자열을 숫자로 변환해서 비교하는 로직에서, 숫자가 아닌 문자열이 들어오면 에러 처리가 안 되고 0으로 처리되는 문제가 있는 것 같습니다. 비교 연산 시 타입별 처리 방식 확인 부탁드립니다.", "query": "compare string int", "file": "cobra.go", "symbol": "Gt", "line": 114, "lang": "ko", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "두 값을 비교할 때 문자열을 숫자로 변환해서 비교하는 로직에서, 숫자가 아닌 문자열이 들어오면 에러 처리가 안 되고 0으로 처리되는 문제가 있는 것 같습니다. 비교 연산 시 타입별 처리 방식 확인 부탁드립니다.", "query": "compare string int", "file": "cobra.go", "symbol": "Gt", "line": 114, "lang": "ko", "candidates": [{"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "두 값을 비교할 때 문자열을 숫자로 변환해서 비교하는 로직에서, 숫자가 아닌 문자열이 들어오면 에러 처리가 안 되고 0으로 처리되는 문제가 있는 것 같습니다. 비교 연산 시 타입별 처리 방식 확인 부탁드립니다.", "query": "compare string int", "file": "cobra.go", "symbol": "Gt", "line": 114, "lang": "ko", "candidates": [{"text": "Next: read args_test.go lines=77-100\nread maximumNArgsWithMoreArgs for detail", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=114-137\nread Gt for detail", "file": "cobra.go", "symbol": "Gt", "line": 114, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2280-2303\nread TestValidArgsNotValidArgsFunc for detail", "file": "completions_test.go", "symbol": "TestValidArgsNotValidArgsFunc", "line": 2280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=333-356\nread SetHelpFunc for detail", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=508-531\nread writeFlag for detail", "file": "bash_completions.go", "symbol": "writeFlag", "line": 508, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=526-549\nread UsageString for detail", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=187-210\nread TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=155-178\nread TestOnlyValidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=284-307\nread GenFishCompletionFile for detail", "file": "fish_completions.go", "symbol": "GenFishCompletionFile", "line": 284, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=283-306\nread TestMaximumNArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid_WithInvalidArgs", "line": 283, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=770-793\nread TestEmptyInputs for detail", "file": "command_test.go", "symbol": "TestEmptyInputs", "line": 770, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=991-1014\nread CompErrorln for detail", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=376-399\nread SetErrPrefix for detail", "file": "command.go", "symbol": "SetErrPrefix", "line": 376, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=478-501\nread Usage for detail", "file": "command.go", "symbol": "Usage", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=748-771\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 748, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "find where to register functions to run before command execution", "query": "command execute hook", "file": "cobra.go", "symbol": "OnInitialize", "line": 99, "lang": "en", "candidates": [{"text": "File: active_help.go\nLine 50: activeHelpCfg = os.Getenv(activeHelpEnvVar(cmd.Root().Name()))", "file": "active_help.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 25: \"github.com/spf13/cobra\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 655: continue", "file": "bash_completions.go", "symbol": "", "line": 655, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 142: return 1", "file": "fish_completions.go", "symbol": "", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_notwin.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2842: \":4\",", "file": "completions_test.go", "symbol": "", "line": 2842, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 99: func OnInitialize(y ...func()) {", "file": "cobra.go", "symbol": "OnInitialize", "line": 99, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nLine 78: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 539: func TestExactValidArgs_WithInvalidCount_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 539, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 264: }", "file": "powershell_completions.go", "symbol": "", "line": 264, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 233: __%[1]s_debug \"Completions are now: $__%[1]s_comp_results\"", "file": "fish_completions.go", "symbol": "", "line": 233, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 70: basename := strings.ReplaceAll(cmd.CommandPath(), \" \", \"_\") + \".yaml\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 256: isSet := false", "file": "flag_groups.go", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 105: if err := validateExclusiveFlagGroups(mutuallyExclusiveGroupStatus); err != nil {", "file": "flag_groups.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 15: package doc", "file": "doc/man_docs.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1922: })", "file": "command.go", "symbol": "", "line": 1922, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 249: if err != nil {", "file": "active_help_test.go", "symbol": "", "line": 249, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 16: @test -z $(shell gofmt -l $(SRC)) || (gofmt -d $(SRC); exit 1)", "file": "Makefile", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 131: # For zsh, when completing a flag with an = (e.g., %[1]s -n=)", "file": "zsh_completions.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 8: //", "file": "doc/util.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 95: // limit completions for the named flag to directory names.", "file": "shell_completions.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "bash_completionsV2_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 83: return nil", "file": "flag_groups.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "find where to register functions to run before command execution", "query": "command execute hook", "file": "cobra.go", "symbol": "OnInitialize", "line": 99, "lang": "en", "candidates": [{"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "find where to register functions to run before command execution", "query": "command execute hook", "file": "cobra.go", "symbol": "OnInitialize", "line": 99, "lang": "en", "candidates": [{"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "find where to register functions to run before command execution", "query": "command execute hook", "file": "cobra.go", "symbol": "OnInitialize", "line": 99, "lang": "en", "candidates": [{"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=45-68\nread Group for detail", "file": "command.go", "symbol": "Group", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=403-426\nread ErrOrStderr for detail", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/rest_docs_test.go lines=43-66\nread TestGenRSTNoHiddenParents for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoHiddenParents", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups_test.go lines=22-45\nread TestValidateFlagGroups for detail", "file": "flag_groups_test.go", "symbol": "TestValidateFlagGroups", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=444-467\nread UsageFunc for detail", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=187-210\nread TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValidOnly_WithInvalidArgs", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=383-406\nread TestRangeArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=333-356\nread SetHelpFunc for detail", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=36-59\nread GenZshCompletionFileNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFileNoDesc", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=227-250\nread TestMinimumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValid", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=482-505\nread GenBashCompletionV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionV2", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=750-773\nread isFlagArg for detail", "file": "command.go", "symbol": "isFlagArg", "line": 750, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=177-200\nread TestExecuteContext for detail", "file": "command_test.go", "symbol": "TestExecuteContext", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=84-107\nread ShellCompDirectiveKeepOrder for detail", "file": "completions.go", "symbol": "ShellCompDirectiveKeepOrder", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=99-122\nread OnInitialize for detail", "file": "cobra.go", "symbol": "OnInitialize", "line": 99, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "여러 옵션 중 하나는 반드시 입력되어야 하는 제약 조건을 설정하는 과정에서, 존재하지 않는 옵션 이름을 전달할 경우 프로그램이 즉시 중단(panic)되는 현상이 있습니다. 관련 로직을 확인해 주세요.", "query": "one required flag", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lang": "ko", "candidates": [{"text": "File: doc/md_docs_test.go\nLine 113: if err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 43: }", "file": "bash_completions_test.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1495: }", "file": "completions_test.go", "symbol": "", "line": 1495, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 27: assertNoErr(t, c.GenBashCompletionV2(buf, true))", "file": "bash_completionsV2_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 229: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 21: \"os\"", "file": "fish_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 6: //", "file": "zsh_completions_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 45: const (", "file": "cobra.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 112: return nil", "file": "args.go", "symbol": "", "line": 112, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 171: c.MarkFlagsOneRequired(strings.Split(flagGroup, \" \")...)", "file": "flag_groups_test.go", "symbol": "", "line": 171, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "bash_completionsV2_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 23: func TestZshCompletionWithActiveHelp(t *testing.T) {", "file": "zsh_completions_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 50: activeHelpCfg = os.Getenv(activeHelpEnvVar(cmd.Root().Name()))", "file": "active_help.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 37: func ExampleGenMan() {", "file": "doc/man_examples_test.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3179: childCmd.MarkFlagsOneRequired(\"ingroup1\", \"ingroup2\", \"ingroup3\")", "file": "completions_test.go", "symbol": "", "line": 3179, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nLine 49: // The bash completion script will call the bash function f for the flag.", "file": "shell_completions.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 93: }", "file": "doc/cmd_test.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 33: // to the user.", "file": "active_help.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 71: done", "file": "bash_completions.go", "symbol": "", "line": 71, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 161: }", "file": "bash_completions_test.go", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 49: func (c *Command) MarkFlagsOneRequired(flagNames ...string) {", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups_test.go\nLine 160: args: []string{\"--e=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 123: func TestNoArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 62: name := cmd.CommandPath()", "file": "doc/md_docs.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "여러 옵션 중 하나는 반드시 입력되어야 하는 제약 조건을 설정하는 과정에서, 존재하지 않는 옵션 이름을 전달할 경우 프로그램이 즉시 중단(panic)되는 현상이 있습니다. 관련 로직을 확인해 주세요.", "query": "one required flag", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lang": "ko", "candidates": [{"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "여러 옵션 중 하나는 반드시 입력되어야 하는 제약 조건을 설정하는 과정에서, 존재하지 않는 옵션 이름을 전달할 경우 프로그램이 즉시 중단(panic)되는 현상이 있습니다. 관련 로직을 확인해 주세요.", "query": "one required flag", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lang": "ko", "candidates": [{"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> strings", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> github.com/spf13/pflag", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "여러 옵션 중 하나는 반드시 입력되어야 하는 제약 조건을 설정하는 과정에서, 존재하지 않는 옵션 이름을 전달할 경우 프로그램이 즉시 중단(panic)되는 현상이 있습니다. 관련 로직을 확인해 주세요.", "query": "one required flag", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lang": "ko", "candidates": [{"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=114-137\nread child1CmdArgs for detail", "file": "command_test.go", "symbol": "child1CmdArgs", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=319-342\nread TestDisableActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestDisableActiveHelp", "line": 319, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=466-489\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=245-268\nread TestDeadcodeElimination for detail", "file": "cobra_test.go", "symbol": "TestDeadcodeElimination", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=644-667\nread writeArgAliases for detail", "file": "bash_completions.go", "symbol": "writeArgAliases", "line": 644, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=186-209\nread assertLineFound for detail", "file": "doc/man_docs_test.go", "symbol": "assertLineFound", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=54-77\nread echoCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoCmd", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=22-45\nread test for detail", "file": "Makefile", "symbol": "test", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=382-405\nread SetGlobalNormalizationFunc for detail", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=383-406\nread TestRangeArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=781-804\nread findSuggestions for detail", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=147-170\nread TestNoArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValidOnly_WithInvalidArgs", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=129-152\nread TestNoArgs_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithArgs", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=932-955\nread findFlag for detail", "file": "completions.go", "symbol": "findFlag", "line": 932, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=65-88\nread MarkFlagsMutuallyExclusive for detail", "file": "flag_groups.go", "symbol": "MarkFlagsMutuallyExclusive", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "쉘 완성 스크립트가 자동 완성을 요청하기 위해 사용하는 내부 명령어가 무엇인지 확인해주세요.", "query": "shell completion command", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lang": "ko", "candidates": [{"text": "File: command_win.go\nLine 37: fmt.Scanln()", "file": "command_win.go", "symbol": "", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 31: flags := cmd.NonInheritedFlags()", "file": "doc/rest_docs.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 55: check(t, output, ShellCompRequestCmd)", "file": "fish_completions_test.go", "symbol": "", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nLine 81: output := buf.String()", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 18: lint:", "file": "Makefile", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 41: func forceMultiLine(s string) string {", "file": "doc/util.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 138: output, err = executeCommand(rootCmd, ShellCompRequestCmd, \"\")", "file": "completions_test.go", "symbol": "", "line": 138, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nLine 32: compCmd := ShellCompRequestCmd", "file": "bash_completionsV2.go", "symbol": "", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nLine 115: local -a completions", "file": "zsh_completions.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "zsh_completions_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 116: // RangeArgs returns an error if the number of args is not within the expected range.", "file": "args.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 30: for _, c := range cmd.Commands() {", "file": "doc/util.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 31: ShellCompRequestCmd = \"__complete\"", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nLine 93: func GenYamlCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string) string) error {", "file": "doc/yaml_docs.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 137: __%[1]s_debug \"The completion directive is: $Directive\"", "file": "powershell_completions.go", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 31: compCmd := ShellCompRequestCmd", "file": "fish_completions.go", "symbol": "", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "fish_completions_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "args_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 167: if strings.Contains(s, stringToAppend) {", "file": "cobra.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/man_docs.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1917: expectedNames := []string{\"afirst\", \"middle\", \"zlast\"}", "file": "command_test.go", "symbol": "", "line": 1917, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 34: compCmd := ShellCompRequestCmd", "file": "powershell_completions.go", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nLine 88: compCmd := ShellCompRequestCmd", "file": "zsh_completions.go", "symbol": "", "line": 88, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nLine 30: // check that active help is not being disabled", "file": "bash_completionsV2_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "쉘 완성 스크립트가 자동 완성을 요청하기 위해 사용하는 내부 명령어가 무엇인지 확인해주세요.", "query": "shell completion command", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lang": "ko", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "쉘 완성 스크립트가 자동 완성을 요청하기 위해 사용하는 내부 명령어가 무엇인지 확인해주세요.", "query": "shell completion command", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lang": "ko", "candidates": [{"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "쉘 완성 스크립트가 자동 완성을 요청하기 위해 사용하는 내부 명령어가 무엇인지 확인해주세요.", "query": "shell completion command", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lang": "ko", "candidates": [{"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=305-328\nread TestEnablePrefixMatching for detail", "file": "command_test.go", "symbol": "TestEnablePrefixMatching", "line": 305, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1357-1380\nread TestValidArgsFuncSingleCmdInvalidArg for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=693-716\nread GetSlice for detail", "file": "completions_test.go", "symbol": "GetSlice", "line": 693, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=48-71\nread byName for detail", "file": "doc/util.go", "symbol": "byName", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=466-489\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2044-2067\nread TestFlagCompletionWorksRootCommandAddedAfterFlags for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWorksRootCommandAddedAfterFlags", "line": 2044, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=529-552\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 529, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=377-400\nread TestRangeArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=105-128\nread GenMan for detail", "file": "doc/man_docs.go", "symbol": "GenMan", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=86-109\nread onetwo for detail", "file": "command_test.go", "symbol": "onetwo", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=398-421\nread OutOrStderr for detail", "file": "command.go", "symbol": "OutOrStderr", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2896-2919\nread TestCompletionFuncCompatibility for detail", "file": "completions_test.go", "symbol": "TestCompletionFuncCompatibility", "line": 2896, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=26-49\nread TestGenMdDoc for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=351-374\nread TestExactArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=235-258\nread CheckErr for detail", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "최대 플래그 수를 50으로 설정하는 상수 찾기", "query": "max flags constant", "file": "completions_test.go", "symbol": "maxFlags", "line": 2123, "lang": "ko", "candidates": [{"text": "File: doc/util.go\nLine 40: // that do not contain \\n.", "file": "doc/util.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 5: // You may obtain a copy of the License at", "file": "command_notwin.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 20: \"testing\"", "file": "bash_completionsV2_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 266: if declare -F __ltrim_colon_completions >/dev/null; then", "file": "bash_completions.go", "symbol": "", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 56: {", "file": "flag_groups_test.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "bash_completionsV2_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 95: for i := 0; i < b.N; i++ {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 26: \"github.com/spf13/pflag\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 6: //", "file": "bash_completionsV2_test.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/man_docs.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 78: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 96: if test -n \"$__%[1]s_perform_completion_once_result\"", "file": "fish_completions.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 24: )", "file": "fish_completions_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "zsh_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 62: return MarkFlagFilename(c.PersistentFlags(), name, extensions...)", "file": "shell_completions.go", "symbol": "", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 53: args []string", "file": "flag_groups_test.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 684: buf := new(bytes.Buffer)", "file": "bash_completions.go", "symbol": "", "line": 684, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 60: }", "file": "doc/cmd_test.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 230: }", "file": "doc/man_docs_test.go", "symbol": "", "line": 230, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2123: const maxFlags = 50", "file": "completions_test.go", "symbol": "maxFlags", "line": 2123, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Makefile\nLine 31: $(info ******************** downloading dependencies ********************)", "file": "Makefile", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 135: func TestNoArgs_WithValid_WithArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 114: b.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "최대 플래그 수를 50으로 설정하는 상수 찾기", "query": "max flags constant", "file": "completions_test.go", "symbol": "maxFlags", "line": 2123, "lang": "ko", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "cobra", "task": "최대 플래그 수를 50으로 설정하는 상수 찾기", "query": "max flags constant", "file": "completions_test.go", "symbol": "maxFlags", "line": 2123, "lang": "ko", "candidates": [{"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "최대 플래그 수를 50으로 설정하는 상수 찾기", "query": "max flags constant", "file": "completions_test.go", "symbol": "maxFlags", "line": 2123, "lang": "ko", "candidates": [{"text": "Next: read zsh_completions.go lines=66-89\nread MarkZshCompPositionalArgumentWords for detail", "file": "zsh_completions.go", "symbol": "MarkZshCompPositionalArgumentWords", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=307-330\nread TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs", "line": 307, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=333-356\nread TestExactArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=382-405\nread SetGlobalNormalizationFunc for detail", "file": "command.go", "symbol": "SetGlobalNormalizationFunc", "line": 382, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=201-224\nread assertNextLineEquals for detail", "file": "doc/man_docs_test.go", "symbol": "assertNextLineEquals", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=758-781\nread innerfind for detail", "file": "command.go", "symbol": "innerfind", "line": 758, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=22-45\nread PositionalArgs for detail", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=245-268\nread TestBashCompletionDeprecatedFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionDeprecatedFlag", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=275-298\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=395-418\nread TestRangeArgs_WithInvalidCount for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount", "line": 395, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2123-2146\nread maxFlags for detail", "file": "completions_test.go", "symbol": "maxFlags", "line": 2123, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=231-254\nread initCompleteCmd for detail", "file": "completions.go", "symbol": "initCompleteCmd", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=25-48\nread GenZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFile", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=81-104\nread ValidateFlagGroups for detail", "file": "flag_groups.go", "symbol": "ValidateFlagGroups", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=57-80\nread GenMarkdownCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownCustom", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=114-137\nread Gt for detail", "file": "cobra.go", "symbol": "Gt", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "명령어 그룹 관리 구조체 찾아줘", "query": "command group structure", "file": "command.go", "symbol": "Group", "line": 45, "lang": "ko", "candidates": [{"text": "File: shell_completions.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "shell_completions.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 127: func MatchAll(pargs ...PositionalArgs) PositionalArgs {", "file": "args.go", "symbol": "", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 275: for flagList, flagnameAndStatus := range mutuallyExclusiveGroupStatus {", "file": "flag_groups.go", "symbol": "", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 6: //", "file": "powershell_completions.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 169: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 256: complete --do-complete \"%[2]s \" > /dev/null 2>&1", "file": "fish_completions.go", "symbol": "", "line": 256, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1580: Run: emptyRun,", "file": "completions_test.go", "symbol": "", "line": 1580, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 210: keys := make([]string, len(m))", "file": "flag_groups.go", "symbol": "", "line": 210, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 18: package cobra", "file": "command_notwin.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 15: package doc_test", "file": "doc/man_examples_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1960: rootCmd.AddGroup(&Group{ID: \"group1\", Title: \"group1\"})", "file": "command_test.go", "symbol": "", "line": 1960, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nLine 147: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 103: ref = strings.ReplaceAll(pname, \" \", \"_\")", "file": "doc/rest_docs.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 115: var left, right int64", "file": "cobra.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "powershell_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "bash_completionsV2_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 60: flagGroupsRequired: []string{\"a b\"},", "file": "flag_groups_test.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 154: Use: \"times [# times] [string to echo]\",", "file": "bash_completions_test.go", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 35: rm -rf $(BIN)", "file": "Makefile", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 108: __%[1]s_debug \"Received error from custom completion go code\"", "file": "bash_completionsV2.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 38: return nil", "file": "args.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 45: type Group struct {", "file": "command.go", "symbol": "Group", "line": 45, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nLine 8: //", "file": "doc/man_docs_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 180: format += \"]\"", "file": "doc/man_docs.go", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "명령어 그룹 관리 구조체 찾아줘", "query": "command group structure", "file": "command.go", "symbol": "Group", "line": 45, "lang": "ko", "candidates": [{"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "명령어 그룹 관리 구조체 찾아줘", "query": "command group structure", "file": "command.go", "symbol": "Group", "line": 45, "lang": "ko", "candidates": [{"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "명령어 그룹 관리 구조체 찾아줘", "query": "command group structure", "file": "command.go", "symbol": "Group", "line": 45, "lang": "ko", "candidates": [{"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=377-400\nread TestRangeArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=84-107\nread TestActiveHelpWithComps for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpWithComps", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=164-187\nread TestGenManTree for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManTree", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=30-53\nread BashCompFilenameExt for detail", "file": "bash_completions.go", "symbol": "BashCompFilenameExt", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=537-560\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 537, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=45-68\nread Group for detail", "file": "command.go", "symbol": "Group", "line": 45, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions.go lines=629-652\nread writeCmdAliases for detail", "file": "bash_completions.go", "symbol": "writeCmdAliases", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=508-531\nread writeFlag for detail", "file": "bash_completions.go", "symbol": "writeFlag", "line": 508, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=62-85\nread EnableCaseInsensitive for detail", "file": "cobra.go", "symbol": "EnableCaseInsensitive", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=593-616\nread writeRequiredFlag for detail", "file": "bash_completions.go", "symbol": "writeRequiredFlag", "line": 593, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=80-103\nread genZshCompletion for detail", "file": "zsh_completions.go", "symbol": "genZshCompletion", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=69-92\nread TestGenManNoHiddenParents for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoHiddenParents", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=357-380\nread TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=31-54\nread MarkPersistentFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=536-559\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=327-350\nread TestExactArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=604-627\nread TestFlagInvalidInput for detail", "file": "command_test.go", "symbol": "TestFlagInvalidInput", "line": 604, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Estoy revisando la lógica de validación de los argumentos de los comandos. ¿Podrías mostrarme los casos de prueba donde se verifica que falle cuando se pasan más parámetros de los permitidos?", "query": "test exact args invalid", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid", "line": 351, "lang": "es", "candidates": [{"text": "File: cobra.go\nLine 204: }", "file": "cobra.go", "symbol": "", "line": 204, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 656: {", "file": "command_test.go", "symbol": "", "line": 656, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 78: buf.WriteString(strings.Repeat(\"-\", len(name)) + \"\\n\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 351: func TestExactArgs_WithInvalidCount_WithValid(t *testing.T) {", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid", "line": 351, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nLine 166: format = fmt.Sprintf(\"**-%s**, **--%s**\", flag.Shorthand, flag.Name)", "file": "doc/man_docs.go", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 5: // You may obtain a copy of the License at", "file": "powershell_completions.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 202: if d&ShellCompDirectiveError != 0 {", "file": "completions.go", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 16: // +build !windows", "file": "command_notwin.go", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 50: // correctly if your command names have `-` in them. If you have `cmd` with two", "file": "doc/yaml_docs.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 20: )", "file": "args.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 46: return nil", "file": "args.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 26: \"github.com/spf13/pflag\"", "file": "doc/yaml_docs.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 18: \"fmt\"", "file": "active_help.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 85: rootCmd := &Command{", "file": "active_help_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 51: func (s byName) Swap(i, j int) { s[i], s[j] = s[j], s[i] }", "file": "doc/util.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 72: Short: \"Echo anything to the screen more times\",", "file": "doc/cmd_test.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 35: \"trimTrailingWhitespaces\": trimRightSpace,", "file": "cobra.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/util.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 135: header := &GenManHeader{}", "file": "doc/man_docs_test.go", "symbol": "", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 238: # File extension filtering", "file": "zsh_completions.go", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "powershell_completions.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 611: \"Completion ended with directive: ShellCompDirectiveNoFileComp\", \"\"}, \"\\n\")", "file": "completions_test.go", "symbol": "", "line": 611, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 643: }", "file": "bash_completions.go", "symbol": "", "line": 643, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 27: )", "file": "doc/man_docs_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Estoy revisando la lógica de validación de los argumentos de los comandos. ¿Podrías mostrarme los casos de prueba donde se verifica que falle cuando se pasan más parámetros de los permitidos?", "query": "test exact args invalid", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid", "line": 351, "lang": "es", "candidates": [{"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestExactArgs_WithInvalidCount_WithValid", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Estoy revisando la lógica de validación de los argumentos de los comandos. ¿Podrías mostrarme los casos de prueba donde se verifica que falle cuando se pasan más parámetros de los permitidos?", "query": "test exact args invalid", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid", "line": 351, "lang": "es", "candidates": [{"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Estoy revisando la lógica de validación de los argumentos de los comandos. ¿Podrías mostrarme los casos de prueba donde se verifica que falle cuando se pasan más parámetros de los permitidos?", "query": "test exact args invalid", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid", "line": 351, "lang": "es", "candidates": [{"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=51-74\nread Swap for detail", "file": "doc/util.go", "symbol": "Swap", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=107-130\nread CompletionOptions for detail", "file": "completions.go", "symbol": "CompletionOptions", "line": 107, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=66-89\nread ShellCompDirectiveNoFileComp for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoFileComp", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=269-292\nread Context for detail", "file": "command.go", "symbol": "Context", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=192-215\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=529-552\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 529, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1006-1029\nread configEnvVar for detail", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=101-124\nread TestGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=654-677\nread hasNoOptDefVal for detail", "file": "command.go", "symbol": "hasNoOptDefVal", "line": 654, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=55-78\nread EnablePrefixMatching for detail", "file": "cobra.go", "symbol": "EnablePrefixMatching", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=664-687\nread flagName for detail", "file": "completions.go", "symbol": "flagName", "line": 664, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=351-374\nread TestExactArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid", "line": 351, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=604-627\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=629-652\nread writeCmdAliases for detail", "file": "bash_completions.go", "symbol": "writeCmdAliases", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Where is the helper function that compares two values for equality but panics if they are arrays, slices, or maps?", "query": "compare equality panic", "file": "cobra.go", "symbol": "Eq", "line": 144, "lang": "en", "candidates": [{"text": "File: zsh_completions_test.go\nLine 27: assertNoErr(t, c.GenZshCompletion(buf))", "file": "zsh_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 19: $(info ******************** running lint tools ********************)", "file": "Makefile", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 195: fi", "file": "zsh_completions.go", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 241: // of that group required so that the shell completion suggests them automatically", "file": "flag_groups.go", "symbol": "", "line": 241, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 89: link = strings.ReplaceAll(link, \" \", \"_\")", "file": "doc/md_docs.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 64: {", "file": "cobra_test.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 320: rootCmd := &Command{", "file": "active_help_test.go", "symbol": "", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 196: // check for filename extension flags in a subcommand", "file": "bash_completions_test.go", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 13: // limitations under the License.", "file": "flag_groups.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 982: parent child [flags]", "file": "command_test.go", "symbol": "", "line": 982, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_notwin.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 69: # Found non-empty line, we have our proper output", "file": "fish_completions.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 34: cobra.CheckErr(doc.GenManTree(cmd, header, \"/tmp\"))", "file": "doc/man_examples_test.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 98: buf.WriteString(\"SEE ALSO\\n\")", "file": "doc/rest_docs.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "active_help.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 96: processFlagForGroupAnnotation(flags, pflag, mutuallyExclusiveAnnotation, mutuallyExclusiveGroupStatus)", "file": "flag_groups.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 144: func Eq(a interface{}, b interface{}) bool {", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs_test.go\nLine 174: t.Fatalf(\"GenManTree failed: %s\", err.Error())", "file": "doc/man_docs_test.go", "symbol": "", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 86: func BenchmarkGenYamlToFile(b *testing.B) {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 518: // - there are no arguments on the command-line and", "file": "completions.go", "symbol": "", "line": 518, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 66: if err := GenYamlTree(c, tmpdir); err != nil {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 120: for i := 0; i < b.N; i++ {", "file": "doc/md_docs_test.go", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Where is the helper function that compares two values for equality but panics if they are arrays, slices, or maps?", "query": "compare equality panic", "file": "cobra.go", "symbol": "Eq", "line": 144, "lang": "en", "candidates": [{"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Where is the helper function that compares two values for equality but panics if they are arrays, slices, or maps?", "query": "compare equality panic", "file": "cobra.go", "symbol": "Eq", "line": 144, "lang": "en", "candidates": [{"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Where is the helper function that compares two values for equality but panics if they are arrays, slices, or maps?", "query": "compare equality panic", "file": "cobra.go", "symbol": "Eq", "line": 144, "lang": "en", "candidates": [{"text": "Next: read command.go lines=333-356\nread SetHelpFunc for detail", "file": "command.go", "symbol": "SetHelpFunc", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=74-97\nread checkStringContains for detail", "file": "command_test.go", "symbol": "checkStringContains", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=536-559\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=505-528\nread getHelpTemplateFunc for detail", "file": "command.go", "symbol": "getHelpTemplateFunc", "line": 505, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=654-677\nread hasNoOptDefVal for detail", "file": "command.go", "symbol": "hasNoOptDefVal", "line": 654, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=438-461\nread fooCmdArgs for detail", "file": "command_test.go", "symbol": "fooCmdArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=114-137\nread child1CmdArgs for detail", "file": "command_test.go", "symbol": "child1CmdArgs", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=187-210\nread manPrintOptions for detail", "file": "doc/man_docs.go", "symbol": "manPrintOptions", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=66-89\nread ShellCompDirectiveNoFileComp for detail", "file": "completions.go", "symbol": "ShellCompDirectiveNoFileComp", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=788-811\nread sb for detail", "file": "command.go", "symbol": "sb", "line": 788, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=426-449\nread TestValidArgsFuncAndCmdCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAndCmdCompletionInGo", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=69-92\nread timesCmd for detail", "file": "doc/cmd_test.go", "symbol": "timesCmd", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=339-362\nread TestExactArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=171-194\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=715-738\nread argsMinusFirstX for detail", "file": "command.go", "symbol": "argsMinusFirstX", "line": 715, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2451-2474\nread removeCompCmd for detail", "file": "completions_test.go", "symbol": "removeCompCmd", "line": 2451, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=844-867\nread TestRequiredFlagNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestRequiredFlagNameCompletionInGo", "line": 844, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Il y a un risque de plantage (panic) si une commande tente de lier un groupe d'options obligatoires mais qu'une des options spécifiées est introuvable dans la configuration de la commande.", "query": "required flag group", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lang": "fr", "candidates": [{"text": "File: bash_completions.go\nLine 664: WriteStringAndCheck(buf, fmt.Sprintf(\"_%s_root_command()\\n{\\n\", commandName))", "file": "bash_completions.go", "symbol": "", "line": 664, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 22: \"os\"", "file": "command_win.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 42: \"$args\" | Out-File -Append -FilePath \"$env:BASH_COMP_DEBUG_FILE\"", "file": "powershell_completions.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 33: func (c *Command) MarkFlagsRequiredTogether(flagNames ...string) {", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\nLine 1802: if output != expected {", "file": "completions_test.go", "symbol": "", "line": 1802, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 168: c.MarkFlagsRequiredTogether(strings.Split(flagGroup, \" \")...)", "file": "flag_groups_test.go", "symbol": "", "line": 168, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nLine 5: // You may obtain a copy of the License at", "file": "args.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 124: // help output will be in the file `cmd-sub-third.1`.", "file": "doc/md_docs.go", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 125: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 297: [System.Management.Automation.CompletionResult]::new($CompletionText, \"$($comp.Name)\", 'ParameterValue', \"$($comp.Description)\")", "file": "powershell_completions.go", "symbol": "", "line": 297, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 40: }", "file": "shell_completions.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3079: childCmd.MarkFlagsRequiredTogether(\"ingroup1\", \"ingroup2\", \"ingroup3\")", "file": "completions_test.go", "symbol": "", "line": 3079, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nLine 207: check(t, output, `two_word_flags+=(\"-t\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "bash_completionsV2_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 28: func legacyArgs(cmd *Command, args []string) error {", "file": "args.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 46: // MarkZshCompPositionalArgumentFile only worked for zsh and its behavior was", "file": "zsh_completions.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 191: __%[1]s_debug \"File extension filtering or directory filtering not supported\"", "file": "fish_completions.go", "symbol": "", "line": 191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 308: # if you set a flag which only applies to this command, don't show subcommands", "file": "bash_completions.go", "symbol": "", "line": 308, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 30: install_deps:", "file": "Makefile", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 78: return nil", "file": "args.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 666: WriteStringAndCheck(buf, fmt.Sprintf(\"_%s()\\n{\\n\", commandName))", "file": "bash_completions.go", "symbol": "", "line": 666, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/md_docs_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 151: __%[1]s_debug \"========= starting completion logic ==========\"", "file": "fish_completions.go", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 24: // legacyArgs validation has the following behaviour:", "file": "args.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Il y a un risque de plantage (panic) si une commande tente de lier un groupe d'options obligatoires mais qu'une des options spécifiées est introuvable dans la configuration de la commande.", "query": "required flag group", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lang": "fr", "candidates": [{"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Il y a un risque de plantage (panic) si une commande tente de lier un groupe d'options obligatoires mais qu'une des options spécifiées est introuvable dans la configuration de la commande.", "query": "required flag group", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lang": "fr", "candidates": [{"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> strings", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> github.com/spf13/pflag", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Il y a un risque de plantage (panic) si une commande tente de lier un groupe d'options obligatoires mais qu'une des options spécifiées est introuvable dans la configuration de la commande.", "query": "required flag group", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lang": "fr", "candidates": [{"text": "Next: read args_test.go lines=395-418\nread TestRangeArgs_WithInvalidCount for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount", "line": 395, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=500-523\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 500, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=54-77\nread Command for detail", "file": "command.go", "symbol": "Command", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=31-54\nread MarkPersistentFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=59-82\nread TestProgWithDash for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithDash", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=30-53\nread install_deps for detail", "file": "Makefile", "symbol": "install_deps", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=80-103\nread checkStringOmits for detail", "file": "command_test.go", "symbol": "checkStringOmits", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=138-161\nread TestCallCommandWithoutSubcommands for detail", "file": "command_test.go", "symbol": "TestCallCommandWithoutSubcommands", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=652-675\nread gen for detail", "file": "bash_completions.go", "symbol": "gen", "line": 652, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=65-88\nread MarkFlagsMutuallyExclusive for detail", "file": "flag_groups.go", "symbol": "MarkFlagsMutuallyExclusive", "line": 65, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=605-628\nread HelpTemplate for detail", "file": "command.go", "symbol": "HelpTemplate", "line": 605, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=169-192\nread TestMultiActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestMultiActiveHelp", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2121-2144\nread TestFlagCompletionConcurrentRegistration for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionConcurrentRegistration", "line": 2121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=271-294\nread TestMaximumNArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=125-148\nread GenMarkdownTree for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownTree", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=213-236\nread TestArbitraryArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValidOnly_WithInvalidArgs", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "how can I log a string with a trailing newline to the error stream?", "query": "print error newline", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lang": "en", "candidates": [{"text": "File: doc/man_docs.go\nLine 36: // subcmds, `sub` and `sub-third`, and `sub` has a subcommand called `third`", "file": "doc/man_docs.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 25: // both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 35: rm -rf $(BIN)", "file": "Makefile", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 13: // limitations under the License.", "file": "command_notwin.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 57: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 20: var preExecHookFn func(*Command)", "file": "command_notwin.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 91: Use: \"root\",", "file": "command_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 27: rootCmd.PersistentFlags().StringP(\"rootflag\", \"r\", \"two\", \"\")", "file": "doc/cmd_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "active_help_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "powershell_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 55: }{", "file": "flag_groups_test.go", "symbol": "", "line": 55, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 6: //", "file": "command_notwin.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/man_examples_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 185: return string(res)", "file": "doc/rest_docs.go", "symbol": "", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 26: func TestCompleteNoDesCmdInFishScript(t *testing.T) {", "file": "fish_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "bash_completionsV2_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 13: // limitations under the License.", "file": "doc/md_docs_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 991: func CompErrorln(msg string) {", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nLine 61: for _, c := range cmd.Commands() {", "file": "doc/yaml_docs.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "zsh_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 51: }", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "bash_completionsV2_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "zsh_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "how can I log a string with a trailing newline to the error stream?", "query": "print error newline", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lang": "en", "candidates": [{"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "how can I log a string with a trailing newline to the error stream?", "query": "print error newline", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lang": "en", "candidates": [{"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "how can I log a string with a trailing newline to the error stream?", "query": "print error newline", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lang": "en", "candidates": [{"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=526-549\nread UsageString for detail", "file": "command.go", "symbol": "UsageString", "line": 526, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=254-277\nread progname for detail", "file": "cobra_test.go", "symbol": "progname", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=74-97\nread checkStringContains for detail", "file": "command_test.go", "symbol": "checkStringContains", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=991-1014\nread CompErrorln for detail", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=157-180\nread TestNoCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=43-66\nread TestGenRSTNoHiddenParents for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTNoHiddenParents", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=195-218\nread TestArbitraryArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=500-523\nread stringFlagValue for detail", "file": "command_test.go", "symbol": "stringFlagValue", "line": 500, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=81-104\nread TestGenMdNoTag for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoTag", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=674-697\nread stripFlags for detail", "file": "command.go", "symbol": "stripFlags", "line": 674, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=482-505\nread GenBashCompletionV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionV2", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=345-368\nread TestExactArgs_WithInvalidCount for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount", "line": 345, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=57-80\nread GenMarkdownCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownCustom", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=357-380\nread TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=334-357\nread TestAliasPrefixMatching for detail", "file": "command_test.go", "symbol": "TestAliasPrefixMatching", "line": 334, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "schreibe eine methode die den fehlerausgabestrom zurückgibt", "query": "stderr writer", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lang": "de", "candidates": [{"text": "File: shell_completions.go\nLine 65: // MarkFlagFilename instructs the various shell completion implementations to", "file": "shell_completions.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 403: func (c *Command) ErrOrStderr() io.Writer {", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions.go\nLine 209: fi", "file": "bash_completions.go", "symbol": "", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 50: func (s byName) Len() int { return len(s) }", "file": "doc/util.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 447: }", "file": "args_test.go", "symbol": "", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 705: // Flag is shorthand", "file": "completions.go", "symbol": "", "line": 705, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 211: return fmt.Errorf(\"scan failed: %v\", err)", "file": "doc/man_docs_test.go", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 115: t.Errorf(\"Expected ld: %v\\nGot: %v\", tt.expected, got)", "file": "cobra_test.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 248: # Since Fish completions are only loaded once the user triggers them, we trigger them ourselves", "file": "fish_completions.go", "symbol": "", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 23: func getCommand(args PositionalArgs, withValid bool) *Command {", "file": "args_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 39: return append(compArray, fmt.Sprintf(\"%s%s\", activeHelpMarker, activeHelpStr))", "file": "active_help.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 306: }", "file": "completions.go", "symbol": "", "line": 306, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 192: }", "file": "active_help_test.go", "symbol": "", "line": 192, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 113: yamlDoc.Options = genFlagResult(flags)", "file": "doc/yaml_docs.go", "symbol": "", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 75: func TestGenYamlDocRunnable(t *testing.T) {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2148: if out := c.ErrOrStderr(); out != os.Stderr {", "file": "command_test.go", "symbol": "", "line": 2148, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nLine 749: if c.CompletionOptions.DisableDefaultCmd {", "file": "completions.go", "symbol": "", "line": 749, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 20: golangci-lint run -v", "file": "Makefile", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 306: ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs, ShellCompDirectiveKeepOrder,", "file": "zsh_completions.go", "symbol": "", "line": 306, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 93: assertNoErr(t, c.GenFishCompletion(buf, true))", "file": "fish_completions_test.go", "symbol": "", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 260: __%[1]s_debug \"Listing directories in .\"", "file": "zsh_completions.go", "symbol": "", "line": 260, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 211: if d[i][j-1] < min {", "file": "cobra.go", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 293: fmt.Fprintf(finalCmd.ErrOrStderr(), \"Completion ended with directive: %s\\n\", directive.string())", "file": "completions.go", "symbol": "", "line": 293, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "schreibe eine methode die den fehlerausgabestrom zurückgibt", "query": "stderr writer", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lang": "de", "candidates": [{"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "schreibe eine methode die den fehlerausgabestrom zurückgibt", "query": "stderr writer", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lang": "de", "candidates": [{"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "schreibe eine methode die den fehlerausgabestrom zurückgibt", "query": "stderr writer", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lang": "de", "candidates": [{"text": "Next: read command_test.go lines=138-161\nread TestCallCommandWithoutSubcommands for detail", "file": "command_test.go", "symbol": "TestCallCommandWithoutSubcommands", "line": 138, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=30-53\nread markdownExtension for detail", "file": "doc/md_docs.go", "symbol": "markdownExtension", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=129-152\nread TestNoArgs_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithArgs", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=101-124\nread TestGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=689-712\nread Type for detail", "file": "completions_test.go", "symbol": "Type", "line": 689, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=169-192\nread TestMultiActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestMultiActiveHelp", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=403-426\nread ErrOrStderr for detail", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=123-146\nread SetDefaultShellCompDirective for detail", "file": "completions.go", "symbol": "SetDefaultShellCompDirective", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=579-602\nread comps for detail", "file": "completions.go", "symbol": "comps", "line": 579, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=372-395\nread TestPlugin for detail", "file": "command_test.go", "symbol": "TestPlugin", "line": 372, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=333-356\nread TestExactArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=53-76\nread GenYamlTree for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTree", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=101-124\nread checkStringOmits for detail", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=225-248\nread enforceFlagGroupsForCompletion for detail", "file": "flag_groups.go", "symbol": "enforceFlagGroupsForCompletion", "line": 225, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=44-67\nread TestGenYamlNoTag for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlNoTag", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Estoy intentando permitir que los usuarios personalicen cómo se muestra la versión en la salida. ¿Dónde puedo configurar el formato de la plantilla para que el sistema lo procese?", "query": "set version template", "file": "command.go", "symbol": "SetVersionTemplate", "line": 367, "lang": "es", "candidates": [{"text": "File: doc/man_docs.go\nLine 38: func GenManTree(cmd *cobra.Command, header *GenManHeader, dir string) error {", "file": "doc/man_docs.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 304: `, name, compCmd,", "file": "zsh_completions.go", "symbol": "", "line": 304, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 31: $(info ******************** downloading dependencies ********************)", "file": "Makefile", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 158: flag.Name,", "file": "doc/yaml_docs.go", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 222: dashParentPath := strings.ReplaceAll(parentPath, \" \", \"-\")", "file": "doc/man_docs.go", "symbol": "", "line": 222, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 24: \"testing\"", "file": "bash_completions_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 285: $CompletionText", "file": "powershell_completions.go", "symbol": "", "line": 285, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 13: // limitations under the License.", "file": "doc/man_docs_test.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 214: }", "file": "powershell_completions.go", "symbol": "", "line": 214, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1245: rootCmd.SetVersionTemplate(`customized version: {{.Version}}`)", "file": "command_test.go", "symbol": "", "line": 1245, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nLine 19: )", "file": "shell_completions.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 53: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 14: fmt:", "file": "Makefile", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 40: {", "file": "bash_completionsV2.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 352: \"first\",", "file": "active_help_test.go", "symbol": "", "line": 352, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 367: func (c *Command) SetVersionTemplate(s string) {", "file": "command.go", "symbol": "SetVersionTemplate", "line": 367, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/man_docs.go\nLine 17: import (", "file": "doc/man_docs.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 211: }", "file": "active_help_test.go", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 527: format += \" local_nonpersistent_flags+=(\\\"--%[1]s=\" + cbn", "file": "bash_completions.go", "symbol": "", "line": 527, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 115: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 131: printCmd := &Command{", "file": "bash_completions_test.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 119: if len(args) < min || len(args) > max {", "file": "args.go", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 332: // Test the disabling of activeHelp using the specific program", "file": "active_help_test.go", "symbol": "", "line": 332, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2436: output, err = executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"help\", \"child1\", \"\")", "file": "completions_test.go", "symbol": "", "line": 2436, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Estoy intentando permitir que los usuarios personalicen cómo se muestra la versión en la salida. ¿Dónde puedo configurar el formato de la plantilla para que el sistema lo procese?", "query": "set version template", "file": "command.go", "symbol": "SetVersionTemplate", "line": 367, "lang": "es", "candidates": [{"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Estoy intentando permitir que los usuarios personalicen cómo se muestra la versión en la salida. ¿Dónde puedo configurar el formato de la plantilla para que el sistema lo procese?", "query": "set version template", "file": "command.go", "symbol": "SetVersionTemplate", "line": 367, "lang": "es", "candidates": [{"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra_test.go -> os", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra_test.go -> os/exec", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Estoy intentando permitir que los usuarios personalicen cómo se muestra la versión en la salida. ¿Dónde puedo configurar el formato de la plantilla para que el sistema lo procese?", "query": "set version template", "file": "command.go", "symbol": "SetVersionTemplate", "line": 367, "lang": "es", "candidates": [{"text": "Next: read flag_groups.go lines=27-50\nread oneRequiredAnnotation for detail", "file": "flag_groups.go", "symbol": "oneRequiredAnnotation", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=59-82\nread EnableCommandSorting for detail", "file": "cobra.go", "symbol": "EnableCommandSorting", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=327-350\nread TestExactArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=30-53\nread install_deps for detail", "file": "Makefile", "symbol": "install_deps", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=676-699\nread customMultiString for detail", "file": "completions_test.go", "symbol": "customMultiString", "line": 676, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=789-812\nread TestChildFlagShadowsParentPersistentFlag for detail", "file": "command_test.go", "symbol": "TestChildFlagShadowsParentPersistentFlag", "line": 789, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=383-406\nread TestRangeArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid_WithInvalidArgs", "line": 383, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=429-452\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 429, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=58-81\nread ShellCompDirectiveError for detail", "file": "completions.go", "symbol": "ShellCompDirectiveError", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=84-107\nread TestActiveHelpWithComps for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpWithComps", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=127-150\nread MatchAll for detail", "file": "args.go", "symbol": "MatchAll", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=579-602\nread comps for detail", "file": "completions.go", "symbol": "comps", "line": 579, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=367-390\nread SetVersionTemplate for detail", "file": "command.go", "symbol": "SetVersionTemplate", "line": 367, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=377-400\nread TestRangeArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithValid", "line": 377, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=94-117\nread TestGenMdTree for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdTree", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2162-2185\nread output for detail", "file": "completions_test.go", "symbol": "output", "line": 2162, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=90-113\nread MarkPersistentFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagDirname", "line": 90, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "帮我找一下那个只会一直返回 hello 的最烂自定义测试函数在哪里", "query": "COMPREPLY hello", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lang": "zh", "candidates": [{"text": "File: bash_completions.go\nLine 167: }", "file": "bash_completions.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 104: }", "file": "args.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1668: PersistentPostRun: func(_ *Command, args []string) {", "file": "command_test.go", "symbol": "", "line": 1668, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 78: const bashCompletionFunc = `__root_custom_func() {", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: cobra_test.go\nLine 81: t: \"Sitting\",", "file": "cobra_test.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3375: Run: emptyRun,", "file": "completions_test.go", "symbol": "", "line": 3375, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 40: // that do not contain \\n.", "file": "doc/util.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 101: b.Fatal(err)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 125: return comps, ShellCompDirectiveDefault", "file": "active_help_test.go", "symbol": "", "line": 125, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 17: import (", "file": "bash_completionsV2_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3103: \"--ingroup2\",", "file": "completions_test.go", "symbol": "", "line": 3103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 28: rootCmd.PersistentFlags().StringP(\"strtwo\", \"t\", \"two\", \"help message for parent flag strtwo\")", "file": "doc/cmd_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 44: // We generate on a subcommand so we have both subcommands and parents", "file": "doc/rest_docs_test.go", "symbol": "", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 166: func appendIfNotPresent(s, stringToAppend string) string {", "file": "cobra.go", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 43: // limit completions for the named flag to the specified file extensions.", "file": "shell_completions.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 6: endif", "file": "Makefile", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 177: format += \"=%s\"", "file": "doc/man_docs.go", "symbol": "", "line": 177, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 18: \"strings\"", "file": "doc/util.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 91: }", "file": "args.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 19: \"fmt\"", "file": "powershell_completions_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 80: // Functions name should have replace the ':'", "file": "fish_completions_test.go", "symbol": "", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 73: desc: \"Exclusive flag group not satisfied\",", "file": "flag_groups_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1927: output, err = executeCommand(rootCmd, ShellCompRequestCmd, \"child\", \"--\", \"\")", "file": "completions_test.go", "symbol": "", "line": 1927, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 196: }", "file": "flag_groups.go", "symbol": "", "line": 196, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "帮我找一下那个只会一直返回 hello 的最烂自定义测试函数在哪里", "query": "COMPREPLY hello", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lang": "zh", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "cobra", "task": "帮我找一下那个只会一直返回 hello 的最烂自定义测试函数在哪里", "query": "COMPREPLY hello", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lang": "zh", "candidates": [{"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> testing", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> strings", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> os", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> regexp", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> os/exec", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "帮我找一下那个只会一直返回 hello 的最烂自定义测试函数在哪里", "query": "COMPREPLY hello", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lang": "zh", "candidates": [{"text": "Next: read command.go lines=318-341\nread SetUsageTemplate for detail", "file": "command.go", "symbol": "SetUsageTemplate", "line": 318, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=547-570\nread FlagErrorFunc for detail", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=447-470\nread writeCommands for detail", "file": "bash_completions.go", "symbol": "writeCommands", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2280-2303\nread TestValidArgsNotValidArgsFunc for detail", "file": "completions_test.go", "symbol": "TestValidArgsNotValidArgsFunc", "line": 2280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=39-62\nread checkNumOccurrences for detail", "file": "bash_completions_test.go", "symbol": "checkNumOccurrences", "line": 39, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=77-100\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=337-360\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=90-113\nread dummyCmd for detail", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=96-119\nread MarkFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=49-72\nread MarkFlagsOneRequired for detail", "file": "flag_groups.go", "symbol": "MarkFlagsOneRequired", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=788-811\nread sb for detail", "file": "command.go", "symbol": "sb", "line": 788, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=146-169\nread TestRootExecuteUnknownCommand for detail", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=313-336\nread TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=78-101\nread bashCompletionFunc for detail", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=161-184\nread TestOnlyValidArgs_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs_WithInvalidArgs", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=175-198\nread TestNoDuplicateArgs_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithDuplicateArgs", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=351-374\nread TestExactArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=56-79\nread runShellCheck for detail", "file": "bash_completions_test.go", "symbol": "runShellCheck", "line": 56, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Verifique o teste que valida o comportamento quando um contador inválido é fornecido para RangeArgs.", "query": "range args invalid count test", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount", "line": 395, "lang": "pt", "candidates": [{"text": "File: doc/md_docs_test.go\nLine 95: c := &cobra.Command{Use: \"do [OPTIONS] arg1 arg2\"}", "file": "doc/md_docs_test.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 227: # - Complete (works like bash)", "file": "powershell_completions.go", "symbol": "", "line": 227, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 150: for flagname, isSet := range flagnameAndStatus {", "file": "flag_groups.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 235: end", "file": "fish_completions.go", "symbol": "", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 31: }", "file": "cobra_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1884: if c.flagErrorBuf.Len()-beforeErrorBufLen > 0 && err == nil {", "file": "command.go", "symbol": "", "line": 1884, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 133: flagGroupsExclusive: []string{\"f g\"},", "file": "flag_groups_test.go", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 395: func TestRangeArgs_WithInvalidCount(t *testing.T) {", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount", "line": 395, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions_test.go\nLine 24: c := &Command{Use: \"c\", Run: emptyRun}", "file": "zsh_completions_test.go", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2997: \"banana\",", "file": "completions_test.go", "symbol": "", "line": 2997, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 28: )", "file": "doc/md_docs.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 30: if err := GenYaml(echoCmd, buf); err != nil {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 207: }", "file": "flag_groups.go", "symbol": "", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "bash_completionsV2_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 133: // descendants in the directory given.", "file": "doc/rest_docs.go", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 398: maxdesclength=$(( COLUMNS - longest - 4 ))", "file": "bash_completionsV2.go", "symbol": "", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 41: checkStringContains(t, output, fmt.Sprintf(\"- %s - %s\", echoSubCmd.CommandPath(), echoSubCmd.Short))", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2368: t.Errorf(\"Unexpected error: %v\", err)", "file": "completions_test.go", "symbol": "", "line": 2368, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 328: func (c *Command) SetFlagErrorFunc(f func(*Command, error) error) {", "file": "command.go", "symbol": "", "line": 328, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 288: return nil, ShellCompDirectiveDefault", "file": "active_help_test.go", "symbol": "", "line": 288, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 463: `, name, compCmd,", "file": "bash_completionsV2.go", "symbol": "", "line": 463, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 60: }", "file": "doc/cmd_test.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 197: \":4\",", "file": "active_help_test.go", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 297: activeHelpCfg = \"a config for a flag\"", "file": "active_help_test.go", "symbol": "", "line": 297, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Verifique o teste que valida o comportamento quando um contador inválido é fornecido para RangeArgs.", "query": "range args invalid count test", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount", "line": 395, "lang": "pt", "candidates": [{"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\ndefines TestRangeArgs_WithInvalidCount", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Verifique o teste que valida o comportamento quando um contador inválido é fornecido para RangeArgs.", "query": "range args invalid count test", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount", "line": 395, "lang": "pt", "candidates": [{"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Verifique o teste que valida o comportamento quando um contador inválido é fornecido para RangeArgs.", "query": "range args invalid count test", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount", "line": 395, "lang": "pt", "candidates": [{"text": "Next: read doc/md_docs_test.go lines=44-67\nread TestGenMdDocWithNoLongOrSynopsis for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDocWithNoLongOrSynopsis", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=352-375\nread SetCompletionCommandGroupID for detail", "file": "command.go", "symbol": "SetCompletionCommandGroupID", "line": 352, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=523-546\nread writeLocalNonPersistentFlag for detail", "file": "bash_completions.go", "symbol": "writeLocalNonPersistentFlag", "line": 523, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=327-350\nread err for detail", "file": "completions.go", "symbol": "err", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=188-211\nread validateExclusiveFlagGroups for detail", "file": "flag_groups.go", "symbol": "validateExclusiveFlagGroups", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=587-610\nread helpOrVersionFlagPresent for detail", "file": "completions.go", "symbol": "helpOrVersionFlagPresent", "line": 587, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=59-82\nread TestProgWithDash for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithDash", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions_test.go lines=23-46\nread TestZshCompletionWithActiveHelp for detail", "file": "zsh_completions_test.go", "symbol": "TestZshCompletionWithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=29-52\nread TestActiveHelpAlone for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=570-593\nread minCommandPathPadding for detail", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=508-531\nread writeFlag for detail", "file": "bash_completions.go", "symbol": "writeFlag", "line": 508, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=395-418\nread TestRangeArgs_WithInvalidCount for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount", "line": 395, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions_test.go lines=279-302\nread TestBashCompletionNoActiveHelp for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionNoActiveHelp", "line": 279, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=36-59\nread GenZshCompletionFileNoDesc for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletionFileNoDesc", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=34-57\nread clean for detail", "file": "Makefile", "symbol": "clean", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "帮我找一下测试最小参数数量的单元测试", "query": "minimum args test", "file": "args_test.go", "symbol": "TestMinimumNArgs", "line": 221, "lang": "zh", "candidates": [{"text": "File: active_help_test.go\nLine 240: _ = rootCmd.RegisterFlagCompletionFunc(flagname, func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) {", "file": "active_help_test.go", "symbol": "", "line": 240, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 75: checkStringContains(t, output, rootCmd.Short)", "file": "doc/md_docs_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 58: // To disable sorting, set it to false.", "file": "cobra.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 31: compCmd := ShellCompRequestCmd", "file": "fish_completions.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 221: func TestMinimumNArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestMinimumNArgs", "line": 221, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\nLine 884: \"-r\",", "file": "completions_test.go", "symbol": "", "line": 884, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 69: flagGroupsOneRequired: []string{\"a b\"},", "file": "flag_groups_test.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 195: }", "file": "flag_groups_test.go", "symbol": "", "line": 195, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 161: if len(flag.Deprecated) > 0 || flag.Hidden {", "file": "doc/man_docs.go", "symbol": "", "line": 161, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 119: b.ResetTimer()", "file": "doc/md_docs_test.go", "symbol": "", "line": 119, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 148: # File extension filtering", "file": "bash_completionsV2.go", "symbol": "", "line": 148, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 21: )", "file": "powershell_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 790: // We also create the 'completion' command if the user is triggering", "file": "completions.go", "symbol": "", "line": 790, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 162: directive=${lastLine[2,-1]}", "file": "zsh_completions.go", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 24: go test -v $(GO_TEST_FLAGS) ./...", "file": "Makefile", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 32: output := buf.String()", "file": "doc/rest_docs_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 6: //", "file": "doc/util.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 45: return s", "file": "doc/util.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 172: else", "file": "bash_completionsV2.go", "symbol": "", "line": 172, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 396: _, err = executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"thechild\", \"\")", "file": "active_help_test.go", "symbol": "", "line": 396, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 29: buf := new(bytes.Buffer)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 8: //", "file": "powershell_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 34: clean:", "file": "Makefile", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 34: return true", "file": "doc/util.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "帮我找一下测试最小参数数量的单元测试", "query": "minimum args test", "file": "args_test.go", "symbol": "TestMinimumNArgs", "line": 221, "lang": "zh", "candidates": [{"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nsibling in", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines TestMinimumNArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "帮我找一下测试最小参数数量的单元测试", "query": "minimum args test", "file": "args_test.go", "symbol": "TestMinimumNArgs", "line": 221, "lang": "zh", "candidates": [{"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "帮我找一下测试最小参数数量的单元测试", "query": "minimum args test", "file": "args_test.go", "symbol": "TestMinimumNArgs", "line": 221, "lang": "zh", "candidates": [{"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=209-232\nread sortedKeys for detail", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=26-49\nread TestGenRSTDoc for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=122-145\nread comps for detail", "file": "active_help_test.go", "symbol": "comps", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1357-1380\nread TestValidArgsFuncSingleCmdInvalidArg for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncSingleCmdInvalidArg", "line": 1357, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=78-101\nread bashCompletionFunc for detail", "file": "bash_completions_test.go", "symbol": "bashCompletionFunc", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=997-1020\nread configEnvVarGlobalPrefix for detail", "file": "completions.go", "symbol": "configEnvVarGlobalPrefix", "line": 997, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=101-124\nread checkStringOmits for detail", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=27-50\nread TestGenYamlDoc for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDoc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2280-2303\nread TestValidArgsNotValidArgsFunc for detail", "file": "completions_test.go", "symbol": "TestValidArgsNotValidArgsFunc", "line": 2280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=573-596\nread CommandPathPadding for detail", "file": "command.go", "symbol": "CommandPathPadding", "line": 573, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=243-266\nread WriteStringAndCheck for detail", "file": "cobra.go", "symbol": "WriteStringAndCheck", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=70-93\nread genZshCompletionFile for detail", "file": "zsh_completions.go", "symbol": "genZshCompletionFile", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=991-1014\nread CompErrorln for detail", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=80-103\nread genZshCompletion for detail", "file": "zsh_completions.go", "symbol": "genZshCompletion", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help.go lines=47-70\nread GetActiveHelpConfig for detail", "file": "active_help.go", "symbol": "GetActiveHelpConfig", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=221-244\nread TestMinimumNArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs", "line": 221, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "¿Qué es lo que se ejecuta por defecto al hacer un build?", "query": "default target", "file": "Makefile", "symbol": "default", "line": 10, "lang": "es", "candidates": [{"text": "File: bash_completions.go\nLine 586: writeShortFlag(buf, flag, cmd)", "file": "bash_completions.go", "symbol": "", "line": 586, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 57: // EnableCommandSorting controls sorting of the slice of commands, which is turned on by default.", "file": "cobra.go", "symbol": "", "line": 57, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\nLine 51: // defaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nLine 135: compopt +o default", "file": "bash_completionsV2.go", "symbol": "", "line": 135, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nLine 179: func tmpl(text string) *tmplFunc {", "file": "cobra.go", "symbol": "", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1176: return c.Args(c, args)", "file": "command.go", "symbol": "", "line": 1176, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "zsh_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 30: func preExecHook(c *Command) {", "file": "command_win.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 116: child1Cmd := &Command{", "file": "command_test.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 10: default: all", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_notwin.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_notwin.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 226: # - TabCompleteNext (default windows style - on each key press the next option is displayed)", "file": "powershell_completions.go", "symbol": "", "line": 226, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nLine 470: }", "file": "bash_completions.go", "symbol": "", "line": 470, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 57: if err := GenManTreeFromOpts(c, opts); err != nil {", "file": "doc/man_docs.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "doc/util.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 49: // default for every argument. One can disable file completion on a per-argument", "file": "zsh_completions.go", "symbol": "", "line": 49, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nLine 180: __%[1]s_handle_activeHelp", "file": "bash_completionsV2.go", "symbol": "", "line": 180, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 51: // This will only work for bash completion.", "file": "shell_completions.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 937: t.Errorf(\"Expected the help flag from the root command with usage: %v\\nGot the default with usage: %v\", usage, got)", "file": "command_test.go", "symbol": "", "line": 937, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nLine 32: check(t, output, fmt.Sprintf(\"${env:%s}=0\", activeHelpVar))", "file": "powershell_completions_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 399: Annotations: map[string]string{", "file": "command_test.go", "symbol": "", "line": 399, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 128: flagGroupsExclusive: []string{\"f g\"},", "file": "flag_groups_test.go", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1191: }", "file": "completions_test.go", "symbol": "", "line": 1191, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 56: for _, v := range cmd.ValidArgs {", "file": "args.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "¿Qué es lo que se ejecuta por defecto al hacer un build?", "query": "default target", "file": "Makefile", "symbol": "default", "line": 10, "lang": "es", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\ndefines default", "file": "Makefile", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "¿Qué es lo que se ejecuta por defecto al hacer un build?", "query": "default target", "file": "Makefile", "symbol": "default", "line": 10, "lang": "es", "candidates": [{"text": "Next: read Makefile lines=12-35\nread all for detail", "file": "Makefile", "symbol": "all", "line": 12, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=520-543\nread Help for detail", "file": "command.go", "symbol": "Help", "line": 520, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=105-128\nread TestGenManNoGenTag for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManNoGenTag", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=492-515\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 492, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=2-25\nread SRC for detail", "file": "Makefile", "symbol": "SRC", "line": 2, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completionsV2.go lines=24-47\nread genBashCompletion for detail", "file": "bash_completionsV2.go", "symbol": "genBashCompletion", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2141-2164\nread wg for detail", "file": "completions_test.go", "symbol": "wg", "line": 2141, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=716-739\nread TestDisableFlagParsing for detail", "file": "command_test.go", "symbol": "TestDisableFlagParsing", "line": 716, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=253-276\nread dirname for detail", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/cmd_test.go lines=90-113\nread dummyCmd for detail", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=135-158\nread TestNoArgs_WithValid_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValid_WithArgs", "line": 135, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=49-72\nread defaultTraverseRunHooks for detail", "file": "cobra.go", "symbol": "defaultTraverseRunHooks", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=1-24\nread BIN for detail", "file": "Makefile", "symbol": "BIN", "line": 1, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2913-2936\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2913, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=26-49\nread TestGenRSTDoc for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread left for detail", "file": "cobra.go", "symbol": "left", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Estamos validando si se pasó una bandera para mostrar ayuda o versión, así que necesito una función que devuelva true si alguna de esas opciones fue explícitamente solicitada por el usuario en la línea de comandos.", "query": "check help version flag", "file": "completions.go", "symbol": "helpOrVersionFlagPresent", "line": 587, "lang": "es", "candidates": [{"text": "File: doc/rest_docs_test.go\nLine 34: checkStringContains(t, output, echoCmd.Long)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "powershell_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 69: output := buf.String()", "file": "doc/md_docs_test.go", "symbol": "", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_win.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "bash_completionsV2_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 20: )", "file": "flag_groups_test.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 95: c := &cobra.Command{Use: \"do [OPTIONS] arg1 arg2\"}", "file": "doc/md_docs_test.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 167: for _, flagGroup := range tc.flagGroupsRequired {", "file": "flag_groups_test.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 15: package doc", "file": "doc/util.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 587: func helpOrVersionFlagPresent(cmd *Command) bool {", "file": "completions.go", "symbol": "helpOrVersionFlagPresent", "line": 587, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "powershell_completions_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1282: cmd = c.Root()", "file": "command.go", "symbol": "", "line": 1282, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 169: __%[1]s_debug \"No directive found. Setting do default\"", "file": "zsh_completions.go", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 123: header.Section = \"1\"", "file": "doc/man_docs.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 38: return nil", "file": "args.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 27: assertNoErr(t, c.GenPowerShellCompletion(buf))", "file": "powershell_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 72: Section: \"2\",", "file": "doc/man_docs_test.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 95: // limit completions for the named flag to directory names.", "file": "shell_completions.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 96: // check that active help is being disabled", "file": "fish_completions_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 70: check(t, output, \"-c root-dash\")", "file": "fish_completions_test.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 82: // Example is examples of how to use the command.", "file": "command.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1964: rootCmd.AddCommand(&Command{Use: \"cmd2\", GroupID: \"group2\", Run: emptyRun})", "file": "command_test.go", "symbol": "", "line": 1964, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 5: $(warning \"could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh\")", "file": "Makefile", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "powershell_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Estamos validando si se pasó una bandera para mostrar ayuda o versión, así que necesito una función que devuelva true si alguna de esas opciones fue explícitamente solicitada por el usuario en la línea de comandos.", "query": "check help version flag", "file": "completions.go", "symbol": "helpOrVersionFlagPresent", "line": 587, "lang": "es", "candidates": [{"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Estamos validando si se pasó una bandera para mostrar ayuda o versión, así que necesito una función que devuelva true si alguna de esas opciones fue explícitamente solicitada por el usuario en la línea de comandos.", "query": "check help version flag", "file": "completions.go", "symbol": "helpOrVersionFlagPresent", "line": 587, "lang": "es", "candidates": [{"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Estamos validando si se pasó una bandera para mostrar ayuda o versión, así que necesito una función que devuelva true si alguna de esas opciones fue explícitamente solicitada por el usuario en la línea de comandos.", "query": "check help version flag", "file": "completions.go", "symbol": "helpOrVersionFlagPresent", "line": 587, "lang": "es", "candidates": [{"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=296-319\nread SetOut for detail", "file": "command.go", "symbol": "SetOut", "line": 296, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=253-276\nread dirname for detail", "file": "cobra_test.go", "symbol": "dirname", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=393-416\nread OutOrStdout for detail", "file": "command.go", "symbol": "OutOrStdout", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=74-97\nread TestProgWithColon for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithColon", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=781-804\nread findSuggestions for detail", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=38-61\nread AppendActiveHelp for detail", "file": "active_help.go", "symbol": "AppendActiveHelp", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions.go lines=25-48\nread genFishComp for detail", "file": "fish_completions.go", "symbol": "genFishComp", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=587-610\nread helpOrVersionFlagPresent for detail", "file": "completions.go", "symbol": "helpOrVersionFlagPresent", "line": 587, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions_test.go lines=2162-2185\nread output for detail", "file": "completions_test.go", "symbol": "output", "line": 2162, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=447-470\nread writeCommands for detail", "file": "bash_completions.go", "symbol": "writeCommands", "line": 447, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=371-394\nread TestRangeArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs", "line": 371, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=313-336\nread TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs", "line": 313, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2280-2303\nread TestValidArgsNotValidArgsFunc for detail", "file": "completions_test.go", "symbol": "TestValidArgsNotValidArgsFunc", "line": 2280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=352-375\nread SetCompletionCommandGroupID for detail", "file": "command.go", "symbol": "SetCompletionCommandGroupID", "line": 352, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=113-136\nread TestChildCommand for detail", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Tengo un problema al generar las páginas de manual para la estructura de comandos. Parece que la función que invoca la generación no maneja correctamente los nombres de los comandos que contienen guiones (como `sub-third`), lo que causa que la jerarquía de subcomandos se rompa o se genere incorrectamente en el directorio de salida. Necesito entender por qué falla con estos nombres específicos y cómo se propaga la estructura.", "query": "man page command separator", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lang": "es", "candidates": [{"text": "File: active_help_test.go\nLine 393: return nil, ShellCompDirectiveDefault", "file": "active_help_test.go", "symbol": "", "line": 393, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 35: if flags.HasAvailableFlags() {", "file": "doc/md_docs.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 8: //", "file": "active_help.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 86: if err := GenMarkdown(rootCmd, buf); err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 12: // See the License for the specific language governing permissions and", "file": "command_win.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 35: // This function can be called multiple times before and/or after completions are added to", "file": "active_help.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 173: if err := GenManTree(c, header, tmpdir); err != nil {", "file": "doc/man_docs_test.go", "symbol": "", "line": 173, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nLine 123: }", "file": "doc/md_docs_test.go", "symbol": "", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 463: `, name, compCmd,", "file": "bash_completionsV2.go", "symbol": "", "line": 463, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 331: func (c *Command) GenPowerShellCompletionFile(filename string) error {", "file": "powershell_completions.go", "symbol": "", "line": 331, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3775: globalVal: \"\",", "file": "completions_test.go", "symbol": "", "line": 3775, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 96: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 56: // variable. It has the format _ACTIVE_HELP where is the name of the", "file": "active_help.go", "symbol": "", "line": 56, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_win.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "bash_completionsV2_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2500: c.Flags().BoolP(\"boola\", \"a\", false, \"a boolean flag\")", "file": "command_test.go", "symbol": "", "line": 2500, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 72: if _, ok := seen[arg]; ok {", "file": "args.go", "symbol": "", "line": 72, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 34: cobra.CheckErr(doc.GenManTree(cmd, header, \"/tmp\"))", "file": "doc/man_examples_test.go", "symbol": "", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nLine 157: output, err := executeCommand(c, \"one\", \"two\")", "file": "args_test.go", "symbol": "", "line": 157, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 39: return flags.SetAnnotation(name, BashCompOneRequiredFlag, []string{\"true\"})", "file": "shell_completions.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 74: // This will only work for bash completion.", "file": "shell_completions.go", "symbol": "", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 38: func GenManTree(cmd *cobra.Command, header *GenManHeader, dir string) error {", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Tengo un problema al generar las páginas de manual para la estructura de comandos. Parece que la función que invoca la generación no maneja correctamente los nombres de los comandos que contienen guiones (como `sub-third`), lo que causa que la jerarquía de subcomandos se rompa o se genere incorrectamente en el directorio de salida. Necesito entender por qué falla con estos nombres específicos y cómo se propaga la estructura.", "query": "man page command separator", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lang": "es", "candidates": [{"text": "File: doc/yaml_docs_test.go\nsibling in doc", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nelsewhere in the tree", "file": "Makefile", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nelsewhere in the tree", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nsibling in doc", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nelsewhere in the tree", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nelsewhere in the tree", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nsibling in doc", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nelsewhere in the tree", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nsibling in doc", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nelsewhere in the tree", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups_test.go\nelsewhere in the tree", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Tengo un problema al generar las páginas de manual para la estructura de comandos. Parece que la función que invoca la generación no maneja correctamente los nombres de los comandos que contienen guiones (como `sub-third`), lo que causa que la jerarquía de subcomandos se rompa o se genere incorrectamente en el directorio de salida. Necesito entender por qué falla con estos nombres específicos y cómo se propaga la estructura.", "query": "man page command separator", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lang": "es", "candidates": [{"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> path/filepath", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> os", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> strconv", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> strings", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> io", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> sort", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Tengo un problema al generar las páginas de manual para la estructura de comandos. Parece que la función que invoca la generación no maneja correctamente los nombres de los comandos que contienen guiones (como `sub-third`), lo que causa que la jerarquía de subcomandos se rompa o se genere incorrectamente en el directorio de salida. Necesito entender por qué falla con estos nombres específicos y cómo se propaga la estructura.", "query": "man page command separator", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lang": "es", "candidates": [{"text": "Next: read doc/man_docs.go lines=118-141\nread fillHeader for detail", "file": "doc/man_docs.go", "symbol": "fillHeader", "line": 118, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=547-570\nread FlagErrorFunc for detail", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=327-350\nread TestExactArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=84-107\nread GenManTreeOptions for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeOptions", "line": 84, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read zsh_completions.go lines=87-110\nread genZshComp for detail", "file": "zsh_completions.go", "symbol": "genZshComp", "line": 87, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=94-117\nread GenManHeader for detail", "file": "doc/man_docs.go", "symbol": "GenManHeader", "line": 94, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=105-128\nread GenMan for detail", "file": "doc/man_docs.go", "symbol": "GenMan", "line": 105, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=828-851\nread parentFlagValue for detail", "file": "command_test.go", "symbol": "parentFlagValue", "line": 828, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=171-194\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 171, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=53-76\nread GenYamlTree for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTree", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=277-300\nread TestMaximumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=38-61\nread GenManTree for detail", "file": "doc/man_docs.go", "symbol": "GenManTree", "line": 38, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions_test.go lines=46-69\nread checkRegex for detail", "file": "bash_completions_test.go", "symbol": "checkRegex", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=142-165\nread CompletionWithDesc for detail", "file": "completions.go", "symbol": "CompletionWithDesc", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=333-356\nread TestExactArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=201-224\nread directives for detail", "file": "completions.go", "symbol": "directives", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=235-258\nread TestExecute_NoContext for detail", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=629-652\nread writeCmdAliases for detail", "file": "bash_completions.go", "symbol": "writeCmdAliases", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=570-593\nread minCommandPathPadding for detail", "file": "command.go", "symbol": "minCommandPathPadding", "line": 570, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Identify where the integer bounds for the positional constraints are defined and updated, as the current logic for handling range limits seems to be causing unexpected behavior during execution.", "query": "int64 range bounds", "file": "cobra.go", "symbol": "left", "line": 115, "lang": "en", "candidates": [{"text": "File: zsh_completions.go\nLine 178: __%[1]s_debug \"Completion received error. Ignoring completions.\"", "file": "zsh_completions.go", "symbol": "", "line": 178, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 17: import (", "file": "active_help.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 243: __%[1]s_debug \"Only one completion left\"", "file": "powershell_completions.go", "symbol": "", "line": 243, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nLine 36: // prioritize the named flag when performing completion,", "file": "shell_completions.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 134: for _, c := range cmd.Commands() {", "file": "doc/md_docs.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 280: # If there are no completions, we don't need to do anything", "file": "bash_completionsV2.go", "symbol": "", "line": 280, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 132: # completions must be prefixed with the flag", "file": "zsh_completions.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 59: // | indicates mutually exclusive information. You can use the argument to the left of the separator or the", "file": "command.go", "symbol": "", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nLine 673: if index := strings.Index(lastArg, \"=\"); index >= 0 {", "file": "completions.go", "symbol": "", "line": 673, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 67: # to truncate the command-line ($Command) up to the $CursorPosition location.", "file": "powershell_completions.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 357: # If there is a single completion left, remove the description text and escape any special characters", "file": "bash_completionsV2.go", "symbol": "", "line": 357, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completionsV2_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "bash_completionsV2_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 131: }", "file": "doc/yaml_docs.go", "symbol": "", "line": 131, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 202: # The description is preceded by a TAB character.", "file": "zsh_completions.go", "symbol": "", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 466: func TestChildTakesArgs(t *testing.T) {", "file": "args_test.go", "symbol": "", "line": 466, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 38: func MarkFlagRequired(flags *pflag.FlagSet, name string) error {", "file": "shell_completions.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 12: // See the License for the specific language governing permissions and", "file": "active_help.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 151: if _, err := io.WriteString(f, filePrepender(filename)); err != nil {", "file": "doc/md_docs.go", "symbol": "", "line": 151, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 32: go get -v ./...", "file": "Makefile", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 341: return comps, ShellCompDirectiveDefault", "file": "active_help_test.go", "symbol": "", "line": 341, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 238: output, err = executeCommand(rootCmd, ShellCompNoDescRequestCmd, \"--localroot\", \"value\", \"childCmd1\", \"--nonPersistent\", \"value\", \"\")", "file": "completions_test.go", "symbol": "", "line": 238, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 115: var left, right int64", "file": "cobra.go", "symbol": "left", "line": 115, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions.go\nLine 986: msg = fmt.Sprintf(\"[Error] %s\", msg)", "file": "completions.go", "symbol": "", "line": 986, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 45: parentFlags.PrintDefaults()", "file": "doc/md_docs.go", "symbol": "", "line": 45, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Identify where the integer bounds for the positional constraints are defined and updated, as the current logic for handling range limits seems to be causing unexpected behavior during execution.", "query": "int64 range bounds", "file": "cobra.go", "symbol": "left", "line": 115, "lang": "en", "candidates": [{"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Identify where the integer bounds for the positional constraints are defined and updated, as the current logic for handling range limits seems to be causing unexpected behavior during execution.", "query": "int64 range bounds", "file": "cobra.go", "symbol": "left", "line": 115, "lang": "en", "candidates": [{"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> os", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> time", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> text/template", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strconv", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra.go -> reflect", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> strings", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Identify where the integer bounds for the positional constraints are defined and updated, as the current logic for handling range limits seems to be causing unexpected behavior during execution.", "query": "int64 range bounds", "file": "cobra.go", "symbol": "left", "line": 115, "lang": "en", "candidates": [{"text": "Next: read active_help.go lines=23-46\nread activeHelpMarker for detail", "file": "active_help.go", "symbol": "activeHelpMarker", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups_test.go lines=22-45\nread TestValidateFlagGroups for detail", "file": "flag_groups_test.go", "symbol": "TestValidateFlagGroups", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=113-136\nread TestChildCommand for detail", "file": "command_test.go", "symbol": "TestChildCommand", "line": 113, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=697-720\nread TestFlagNameCompletionRepeat for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionRepeat", "line": 697, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=229-252\nread TestBashCompletionHiddenFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionHiddenFlag", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=401-424\nread TestRangeArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=80-103\nread ShellCompDirectiveFilterDirs for detail", "file": "completions.go", "symbol": "ShellCompDirectiveFilterDirs", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=43-66\nread finalizers for detail", "file": "cobra.go", "symbol": "finalizers", "line": 43, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=32-55\nread templateFuncs for detail", "file": "cobra.go", "symbol": "templateFuncs", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=147-170\nread TestNoArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithValidOnly_WithInvalidArgs", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread left for detail", "file": "cobra.go", "symbol": "left", "line": 115, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read command_test.go lines=773-796\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 773, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=438-461\nread TestRootTakesArgs for detail", "file": "args_test.go", "symbol": "TestRootTakesArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=497-520\nread writeShortFlag for detail", "file": "bash_completions.go", "symbol": "writeShortFlag", "line": 497, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=363-386\nread TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 363, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1560-1583\nread TestNoValidArgsFuncInBashScript for detail", "file": "completions_test.go", "symbol": "TestNoValidArgsFuncInBashScript", "line": 1560, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=84-107\nread GenManTreeOptions for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeOptions", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions.go lines=31-54\nread GenZshCompletion for detail", "file": "zsh_completions.go", "symbol": "GenZshCompletion", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=42-65\nread initializers for detail", "file": "cobra.go", "symbol": "initializers", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read powershell_completions.go lines=331-354\nread GenPowerShellCompletionFile for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFile", "line": 331, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Me gustaría verificar que el comando raíz muestre un error específico cuando se ejecuta con una subcomando desconocido.", "query": "test unknown command error", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lang": "es", "candidates": [{"text": "File: go.mod\nLine 10: )", "file": "go.mod", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1140: }", "file": "command.go", "symbol": "", "line": 1140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "doc/yaml_docs.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2449: }", "file": "completions_test.go", "symbol": "", "line": 2449, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 182: if test $compErr -eq 1", "file": "fish_completions.go", "symbol": "", "line": 182, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 271: __%[1]s_debug \"__%[1]s_handle_completion_types: COMP_TYPE is $COMP_TYPE\"", "file": "bash_completionsV2.go", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 152: unset = append(unset, flagname)", "file": "flag_groups.go", "symbol": "", "line": 152, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 108: }", "file": "doc/rest_docs.go", "symbol": "", "line": 108, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 94: }", "file": "doc/md_docs.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 25: Use: \"testcmd\",", "file": "flag_groups_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 8: //", "file": "shell_completions.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 18: \"bytes\"", "file": "bash_completions_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 122: // Test that even with no valid sub-command matches, hidden, deprecated and", "file": "completions_test.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 91: defer os.Remove(file.Name())", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 28: \"github.com/cpuguy83/go-md2man/v2/md2man\"", "file": "doc/man_docs.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 42: if len(s) > 60 && !strings.Contains(s, \"\\n\") {", "file": "doc/util.go", "symbol": "", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 146: func TestRootExecuteUnknownCommand(t *testing.T) {", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nLine 103: }", "file": "args.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 20: )", "file": "active_help.go", "symbol": "", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 27: assertNoErr(t, c.GenPowerShellCompletion(buf))", "file": "powershell_completions_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 250: assertNoErr(t, c.Flags().MarkDeprecated(flagName, \"use --not-deprecated instead\"))", "file": "bash_completions_test.go", "symbol": "", "line": 250, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 35: // MarkFlagRequired instructs the various shell completion implementations to", "file": "shell_completions.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 54: var echoCmd = &cobra.Command{", "file": "doc/cmd_test.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Me gustaría verificar que el comando raíz muestre un error específico cuando se ejecuta con una subcomando desconocido.", "query": "test unknown command error", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lang": "es", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Me gustaría verificar que el comando raíz muestre un error específico cuando se ejecuta con una subcomando desconocido.", "query": "test unknown command error", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lang": "es", "candidates": [{"text": "Import (outbound): command_test.go -> fmt", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> os", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> strings", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> testing", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> reflect", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> io", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Me gustaría verificar que el comando raíz muestre un error específico cuando se ejecuta con una subcomando desconocido.", "query": "test unknown command error", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lang": "es", "candidates": [{"text": "Next: read command.go lines=352-375\nread SetCompletionCommandGroupID for detail", "file": "command.go", "symbol": "SetCompletionCommandGroupID", "line": 352, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=281-304\nread SetArgs for detail", "file": "command.go", "symbol": "SetArgs", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=37-60\nread executeCommandWithContext for detail", "file": "command_test.go", "symbol": "executeCommandWithContext", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=629-652\nread writeCmdAliases for detail", "file": "bash_completions.go", "symbol": "writeCmdAliases", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=32-55\nread executeCommand for detail", "file": "command_test.go", "symbol": "executeCommand", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=464-487\nread getUsageTemplateFunc for detail", "file": "command.go", "symbol": "getUsageTemplateFunc", "line": 464, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=536-559\nread prepareCustomAnnotationsForFlags for detail", "file": "bash_completions.go", "symbol": "prepareCustomAnnotationsForFlags", "line": 536, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=77-100\nread maximumNArgsWithMoreArgs for detail", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=478-501\nread Usage for detail", "file": "command.go", "symbol": "Usage", "line": 478, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=155-178\nread TestOnlyValidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=438-461\nread TestRootTakesArgs for detail", "file": "args_test.go", "symbol": "TestRootTakesArgs", "line": 438, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=142-165\nread ExactValidArgs for detail", "file": "args.go", "symbol": "ExactValidArgs", "line": 142, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=59-82\nread executeCommandWithContextC for detail", "file": "command_test.go", "symbol": "executeCommandWithContextC", "line": 59, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=48-71\nread executeCommandC for detail", "file": "command_test.go", "symbol": "executeCommandC", "line": 48, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=146-169\nread TestRootExecuteUnknownCommand for detail", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=175-198\nread TestNoDuplicateArgs_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithDuplicateArgs", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=593-616\nread writeRequiredFlag for detail", "file": "bash_completions.go", "symbol": "writeRequiredFlag", "line": 593, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=325-348\nread finalCmd for detail", "file": "completions.go", "symbol": "finalCmd", "line": 325, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=95-118\nread ShellCompDirectiveDefault for detail", "file": "completions.go", "symbol": "ShellCompDirectiveDefault", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completionsV2.go lines=482-505\nread GenBashCompletionV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionV2", "line": 482, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=95-118\nread checkStringContains for detail", "file": "doc/cmd_test.go", "symbol": "checkStringContains", "line": 95, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Necesito saber el nombre exacto que se usa para registrar el comando de ayuda en el sistema de comandos.", "query": "command help name", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lang": "es", "candidates": [{"text": "File: shell_completions.go\nLine 91: return MarkFlagDirname(c.PersistentFlags(), name)", "file": "shell_completions.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 65: // Functions name should have replace the '-'", "file": "fish_completions_test.go", "symbol": "", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 79: // obtain the same behavior but only for flags.", "file": "completions.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 23: // Test to see if we have a reason to print See Also information in docs", "file": "doc/util.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 81: func TestGenMdNoTag(t *testing.T) {", "file": "doc/md_docs_test.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 94: if err := printOptionsReST(buf, cmd, name); err != nil {", "file": "doc/rest_docs.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 59: checkStringOmits(t, output, \"rootflag\")", "file": "doc/rest_docs_test.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 23: func TestPwshCompletionNoActiveHelp(t *testing.T) {", "file": "powershell_completions_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 14: fmt:", "file": "Makefile", "symbol": "", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 440: // the flag name to be complete", "file": "completions.go", "symbol": "", "line": 440, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 269: output := buf.String()", "file": "bash_completions_test.go", "symbol": "", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 17: import (", "file": "shell_completions.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 223: defer file.Close()", "file": "doc/man_docs_test.go", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 41: end", "file": "fish_completions.go", "symbol": "", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 15: package doc_test", "file": "doc/man_examples_test.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 38: return nil", "file": "args.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 208: checkOmit(t, output, `two_word_flags+=(\"--two-w-default\")`)", "file": "bash_completions_test.go", "symbol": "", "line": 208, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 26: )", "file": "command_win.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 38: helpCommandName = \"help\"", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions.go\nLine 143: # We add an extra empty parameter so we can indicate this to the go completion code.", "file": "zsh_completions.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 765: if cmd.Name() != ShellCompRequestCmd && cmd.Name() != helpCommandName {", "file": "completions.go", "symbol": "", "line": 765, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "powershell_completions_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 492: }", "file": "bash_completions.go", "symbol": "", "line": 492, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Necesito saber el nombre exacto que se usa para registrar el comando de ayuda en el sistema de comandos.", "query": "command help name", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lang": "es", "candidates": [{"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Necesito saber el nombre exacto que se usa para registrar el comando de ayuda en el sistema de comandos.", "query": "command help name", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lang": "es", "candidates": [{"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Necesito saber el nombre exacto que se usa para registrar el comando de ayuda en el sistema de comandos.", "query": "command help name", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lang": "es", "candidates": [{"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=295-318\nread TestMaximumNArgs_WithMoreArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs", "line": 295, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=217-240\nread BenchmarkGenManToFile for detail", "file": "doc/man_docs_test.go", "symbol": "BenchmarkGenManToFile", "line": 217, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=235-258\nread CheckErr for detail", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=206-229\nread TestExecuteContextC for detail", "file": "command_test.go", "symbol": "TestExecuteContextC", "line": 206, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=86-109\nread onetwo for detail", "file": "command_test.go", "symbol": "onetwo", "line": 86, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=58-81\nread activeHelpEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpEnvVar", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1038-1061\nread TestFlagFileExtFilterCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagFileExtFilterCompletionInGo", "line": 1038, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=44-67\nread TestGenYamlNoTag for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlNoTag", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=90-113\nread dummyCmd for detail", "file": "doc/cmd_test.go", "symbol": "dummyCmd", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=160-183\nread FixedCompletions for detail", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=80-103\nread ShellCompDirectiveFilterDirs for detail", "file": "completions.go", "symbol": "ShellCompDirectiveFilterDirs", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=144-167\nread Eq for detail", "file": "cobra.go", "symbol": "Eq", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=991-1014\nread CompErrorln for detail", "file": "completions.go", "symbol": "CompErrorln", "line": 991, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=27-50\nread checkOmit for detail", "file": "bash_completions_test.go", "symbol": "checkOmit", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=187-210\nread manPrintOptions for detail", "file": "doc/man_docs.go", "symbol": "manPrintOptions", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=45-68\nread Group for detail", "file": "command.go", "symbol": "Group", "line": 45, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Wo wird die Funktion definiert, die Befehlsinstanzen und String-Argumente verarbeitet?", "query": "func cmd args error", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lang": "de", "candidates": [{"text": "File: active_help.go\nLine 60: }", "file": "active_help.go", "symbol": "", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 122: if err != nil {", "file": "fish_completions_test.go", "symbol": "", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 165: }", "file": "args_test.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 46: buf := new(bytes.Buffer)", "file": "doc/md_docs_test.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 22: type PositionalArgs func(cmd *Command, args []string) error", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/md_docs_test.go\nLine 47: if err := GenMarkdown(dummyCmd, buf); err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "powershell_completions_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 158: expectSuccess(output, err, t)", "file": "args_test.go", "symbol": "", "line": 158, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 93: Args PositionalArgs", "file": "command.go", "symbol": "", "line": 93, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nLine 25: \"os\"", "file": "command.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 302: c := getCommand(MaximumNArgs(2), true)", "file": "args_test.go", "symbol": "", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 246: if runtime.GOOS == \"windows\" {", "file": "cobra_test.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 32: echoCmd.Flags().IntP(\"intone\", \"i\", 123, \"help message for flag intone\")", "file": "doc/cmd_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 167: }", "file": "active_help_test.go", "symbol": "", "line": 167, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 23: func getCommand(args PositionalArgs, withValid bool) *Command {", "file": "args_test.go", "symbol": "", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\nLine 431: got := err.Error()", "file": "args_test.go", "symbol": "", "line": 431, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 26: buf := new(bytes.Buffer)", "file": "powershell_completions_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 47: func GetActiveHelpConfig(cmd *Command) string {", "file": "active_help.go", "symbol": "", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 166: if err := GenReSTCustom(cmd, f, linkHandler); err != nil {", "file": "doc/rest_docs.go", "symbol": "", "line": 166, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 17: import (", "file": "active_help.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 780: Hidden: c.CompletionOptions.HiddenDefaultCmd,", "file": "completions.go", "symbol": "", "line": 780, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "bash_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 261: $Description = \"\"", "file": "powershell_completions.go", "symbol": "", "line": 261, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 26: \"github.com/spf13/cobra\"", "file": "doc/man_docs_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Wo wird die Funktion definiert, die Befehlsinstanzen und String-Argumente verarbeitet?", "query": "func cmd args error", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lang": "de", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Wo wird die Funktion definiert, die Befehlsinstanzen und String-Argumente verarbeitet?", "query": "func cmd args error", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lang": "de", "candidates": [{"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Wo wird die Funktion definiert, die Befehlsinstanzen und String-Argumente verarbeitet?", "query": "func cmd args error", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lang": "de", "candidates": [{"text": "Next: read bash_completions_test.go lines=248-271\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=93-116\nread GenYamlCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlCustom", "line": 93, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=229-252\nread TestBashCompletionHiddenFlag for detail", "file": "bash_completions_test.go", "symbol": "TestBashCompletionHiddenFlag", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=28-51\nread legacyArgs for detail", "file": "args.go", "symbol": "legacyArgs", "line": 28, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=588-611\nread intFlagValue for detail", "file": "command_test.go", "symbol": "intFlagValue", "line": 588, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args.go lines=22-45\nread PositionalArgs for detail", "file": "args.go", "symbol": "PositionalArgs", "line": 22, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read powershell_completions.go lines=28-51\nread genPowerShellComp for detail", "file": "powershell_completions.go", "symbol": "genPowerShellComp", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=42-65\nread NoArgs for detail", "file": "args.go", "symbol": "NoArgs", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=998-1021\nread configEnvVarSuffixDescriptions for detail", "file": "completions.go", "symbol": "configEnvVarSuffixDescriptions", "line": 998, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=77-100\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=80-103\nread ShellCompDirectiveFilterDirs for detail", "file": "completions.go", "symbol": "ShellCompDirectiveFilterDirs", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=202-225\nread genMan for detail", "file": "doc/man_docs.go", "symbol": "genMan", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=51-74\nread OnlyValidArgs for detail", "file": "args.go", "symbol": "OnlyValidArgs", "line": 51, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=46-69\nread defaultPrefixMatching for detail", "file": "cobra.go", "symbol": "defaultPrefixMatching", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=80-103\nread TestGenRSTTree for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTTree", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=82-105\nread ArbitraryArgs for detail", "file": "args.go", "symbol": "ArbitraryArgs", "line": 82, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=1607-1630\nread TestCompleteCmdInZshScript for detail", "file": "completions_test.go", "symbol": "TestCompleteCmdInZshScript", "line": 1607, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=169-192\nread TestNoDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=35-58\nread translate for detail", "file": "doc/man_docs_test.go", "symbol": "translate", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1160-1183\nread TestFlagDirFilterCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestFlagDirFilterCompletionInGo", "line": 1160, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "busca o método que recupera o escritor de erros seguindo a hierarquia de comandos", "query": "get error writer", "file": "command.go", "symbol": "getErr", "line": 422, "lang": "pt", "candidates": [{"text": "File: zsh_completions.go\nLine 245: fi", "file": "zsh_completions.go", "symbol": "", "line": 245, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 19: \"fmt\"", "file": "powershell_completions_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 84: // template generation.", "file": "cobra.go", "symbol": "", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 73: ShellCompDirectiveFilterFileExt", "file": "completions.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 53: args []string", "file": "flag_groups_test.go", "symbol": "", "line": 53, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 54: var echoCmd = &cobra.Command{", "file": "doc/cmd_test.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 91: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 276: return 0", "file": "zsh_completions.go", "symbol": "", "line": 276, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 23: \"sort\"", "file": "doc/man_docs.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 83: }", "file": "command_test.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 198: flag=\"${cur%%=*}\"", "file": "bash_completions.go", "symbol": "", "line": 198, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_notwin.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 52: checkStringContains(t, output, dummyCmd.Example)", "file": "doc/md_docs_test.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 795: t.Errorf(\"Unexpected error: %v\", err)", "file": "completions_test.go", "symbol": "", "line": 795, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/rest_docs_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 228: b.Fatal(err)", "file": "doc/man_docs_test.go", "symbol": "", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 124: }", "file": "doc/man_docs.go", "symbol": "", "line": 124, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "active_help_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 471: Args: ExactArgs(2),", "file": "command_test.go", "symbol": "", "line": 471, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 51: // This will only work for bash completion.", "file": "shell_completions.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 29: }", "file": "doc/util.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 57: }", "file": "fish_completions_test.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 422: func (c *Command) getErr(def io.Writer) io.Writer {", "file": "command.go", "symbol": "getErr", "line": 422, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "busca o método que recupera o escritor de erros seguindo a hierarquia de comandos", "query": "get error writer", "file": "command.go", "symbol": "getErr", "line": 422, "lang": "pt", "candidates": [{"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nTestPlugin checks usage as plugin for another command such as kubectl. The executable is `kubectl-plugin`, but we run it as `kubectl plugin`. The help text should reflect the way we run the command.", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_imports", "repo": "cobra", "task": "busca o método que recupera o escritor de erros seguindo a hierarquia de comandos", "query": "get error writer", "file": "command.go", "symbol": "getErr", "line": 422, "lang": "pt", "candidates": [{"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "busca o método que recupera o escritor de erros seguindo a hierarquia de comandos", "query": "get error writer", "file": "command.go", "symbol": "getErr", "line": 422, "lang": "pt", "candidates": [{"text": "Next: read args_test.go lines=239-262\nread TestMinimumNArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithValidOnly_WithInvalidArgs", "line": 239, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=235-258\nread CheckErr for detail", "file": "cobra.go", "symbol": "CheckErr", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=770-793\nread TestEmptyInputs for detail", "file": "command_test.go", "symbol": "TestEmptyInputs", "line": 770, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=174-197\nread rpad for detail", "file": "cobra.go", "symbol": "rpad", "line": 174, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=57-80\nread TestGenYamlTree for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlTree", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=202-225\nread genMan for detail", "file": "doc/man_docs.go", "symbol": "genMan", "line": 202, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=407-430\nread TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 407, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=26-49\nread TestGenMdDoc for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=337-360\nread GenPowerShellCompletion for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletion", "line": 337, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=160-183\nread FixedCompletions for detail", "file": "completions.go", "symbol": "FixedCompletions", "line": 160, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=8-31\nread .PHONY for detail", "file": "Makefile", "symbol": ".PHONY", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=22-45\nread test for detail", "file": "Makefile", "symbol": "test", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=422-445\nread getErr for detail", "file": "command.go", "symbol": "getErr", "line": 422, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/cmd_test.go lines=62-85\nread echoSubCmd for detail", "file": "doc/cmd_test.go", "symbol": "echoSubCmd", "line": 62, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=80-103\nread ShellCompDirectiveFilterDirs for detail", "file": "completions.go", "symbol": "ShellCompDirectiveFilterDirs", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1384-1407\nread TestValidArgsFuncChildCmds for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncChildCmds", "line": 1384, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=30-53\nread emptyRun for detail", "file": "command_test.go", "symbol": "emptyRun", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2896-2919\nread TestCompletionFuncCompatibility for detail", "file": "completions_test.go", "symbol": "TestCompletionFuncCompatibility", "line": 2896, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "trouve les tests pour la complétion des alias de sous-commandes", "query": "test shell completion aliases", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lang": "fr", "candidates": [{"text": "File: zsh_completions.go\nLine 100: if [[ -n ${file} ]]; then", "file": "zsh_completions.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 5: // You may obtain a copy of the License at", "file": "zsh_completions.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 17: import (", "file": "doc/util.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 197: printf \"\\n\"", "file": "bash_completionsV2.go", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1488: func TestValidArgsFuncAliases(t *testing.T) {", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions_test.go\nLine 115: rootCmd.Flags().BoolP(\"two-w-default\", \"T\", false, \"this is not two word flags\")", "file": "bash_completions_test.go", "symbol": "", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "args.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 92: defer file.Close()", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 149: }", "file": "doc/rest_docs.go", "symbol": "", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 477: return c.GenBashCompletionV2(outFile, includeDesc)", "file": "bash_completionsV2.go", "symbol": "", "line": 477, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 2: //", "file": "flag_groups_test.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 130: // - the completion choice", "file": "completions.go", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 498: name := flag.Shorthand", "file": "bash_completions.go", "symbol": "", "line": 498, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 162: return", "file": "doc/man_docs.go", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 165: c := &cobra.Command{Use: \"do [OPTIONS] arg1 arg2\"}", "file": "doc/man_docs_test.go", "symbol": "", "line": 165, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 99: sort.Sort(byName(children))", "file": "doc/md_docs.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 16: @test -z $(shell gofmt -l $(SRC)) || (gofmt -d $(SRC); exit 1)", "file": "Makefile", "symbol": "", "line": 16, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 54: }", "file": "doc/rest_docs.go", "symbol": "", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 374: local idx=${#COMPREPLY[*]}", "file": "bash_completionsV2.go", "symbol": "", "line": 374, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 49: // The bash completion script will call the bash function f for the flag.", "file": "shell_completions.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 103: // Filename extensions.", "file": "bash_completions_test.go", "symbol": "", "line": 103, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 8: //", "file": "powershell_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 169: }", "file": "cobra.go", "symbol": "", "line": 169, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "trouve les tests pour la complétion des alias de sous-commandes", "query": "test shell completion aliases", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lang": "fr", "candidates": [{"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "trouve les tests pour la complétion des alias de sous-commandes", "query": "test shell completion aliases", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lang": "fr", "candidates": [{"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "trouve les tests pour la complétion des alias de sous-commandes", "query": "test shell completion aliases", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lang": "fr", "candidates": [{"text": "Next: read args_test.go lines=401-424\nread TestRangeArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions_test.go lines=232-255\nread flagName for detail", "file": "bash_completions_test.go", "symbol": "flagName", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=94-117\nread GenManHeader for detail", "file": "doc/man_docs.go", "symbol": "GenManHeader", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read Makefile lines=10-33\nread default for detail", "file": "Makefile", "symbol": "default", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=164-187\nread TestGenManTree for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManTree", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=367-390\nread SetVersionTemplate for detail", "file": "command.go", "symbol": "SetVersionTemplate", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=633-656\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 633, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=169-192\nread TestNoDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=88-111\nread GenYaml for detail", "file": "doc/yaml_docs.go", "symbol": "GenYaml", "line": 88, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=209-232\nread sortedKeys for detail", "file": "flag_groups.go", "symbol": "sortedKeys", "line": 209, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=701-724\nread GenBashCompletionFile for detail", "file": "bash_completions.go", "symbol": "GenBashCompletionFile", "line": 701, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=27-50\nread assertNoErr for detail", "file": "cobra_test.go", "symbol": "assertNoErr", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra_test.go lines=49-72\nread TestLevenshteinDistance for detail", "file": "cobra_test.go", "symbol": "TestLevenshteinDistance", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=77-100\nread maximumNArgsWithMoreArgs for detail", "file": "args_test.go", "symbol": "maximumNArgsWithMoreArgs", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=30-53\nread printOptionsReST for detail", "file": "doc/rest_docs.go", "symbol": "printOptionsReST", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=74-97\nread TestProgWithColon for detail", "file": "fish_completions_test.go", "symbol": "TestProgWithColon", "line": 74, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=1488-1511\nread TestValidArgsFuncAliases for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAliases", "line": 1488, "lexical": 4.0, "target": true, "label": 4}]} {"site": "project_search", "repo": "cobra", "task": "ExactArgs 검증에서 제공된 인수 개수가 기대치와 다를 때 에러가 발생했는지 확인하는 테스트 코드를 찾아줘.", "query": "exact args invalid count test", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lang": "ko", "candidates": [{"text": "File: zsh_completions.go\nLine 143: # We add an extra empty parameter so we can indicate this to the go completion code.", "file": "zsh_completions.go", "symbol": "", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 50: // basis by using ValidArgsFunction and ShellCompDirectiveNoFileComp.", "file": "zsh_completions.go", "symbol": "", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2043: output, err := executeCommand(rootCmd, \"--help\")", "file": "command_test.go", "symbol": "", "line": 2043, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 92: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 92, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 7: github.com/inconshreveable/mousetrap v1.1.0", "file": "go.mod", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 28: activeHelpGlobalDisable = \"0\"", "file": "active_help.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 104: t.Fatal(err.Error())", "file": "fish_completions_test.go", "symbol": "", "line": 104, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 232: sort.Sort(byName(children))", "file": "doc/man_docs.go", "symbol": "", "line": 232, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 23: func TestBashCompletionV2WithActiveHelp(t *testing.T) {", "file": "bash_completionsV2_test.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 170: for _, flagGroup := range tc.flagGroupsOneRequired {", "file": "flag_groups_test.go", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 15: package doc", "file": "doc/md_docs.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "bash_completionsV2_test.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "command_notwin.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 357: func TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs.go\nLine 183: bol = c == '\\n'", "file": "doc/rest_docs.go", "symbol": "", "line": 183, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 26: cmd := &cobra.Command{", "file": "doc/man_examples_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/util.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 150: for flagname, isSet := range flagnameAndStatus {", "file": "flag_groups.go", "symbol": "", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 18: \"bytes\"", "file": "doc/md_docs_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 136: }", "file": "cobra.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1139: cmd.commandCalledAs.name = cmd.Name()", "file": "command.go", "symbol": "", "line": 1139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 95: checkStringContains(t, output, translate(echoCmd.Name()))", "file": "doc/man_docs_test.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "command_notwin.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "ExactArgs 검증에서 제공된 인수 개수가 기대치와 다를 때 에러가 발생했는지 확인하는 테스트 코드를 찾아줘.", "query": "exact args invalid count test", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lang": "ko", "candidates": [{"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\ndefines TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "ExactArgs 검증에서 제공된 인수 개수가 기대치와 다를 때 에러가 발생했는지 확인하는 테스트 코드를 찾아줘.", "query": "exact args invalid count test", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lang": "ko", "candidates": [{"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "ExactArgs 검증에서 제공된 인수 개수가 기대치와 다를 때 에러가 발생했는지 확인하는 테스트 코드를 찾아줘.", "query": "exact args invalid count test", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lang": "ko", "candidates": [{"text": "Next: read completions.go lines=52-75\nread Error for detail", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=65-88\nread MarkFlagsMutuallyExclusive for detail", "file": "flag_groups.go", "symbol": "MarkFlagsMutuallyExclusive", "line": 65, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=338-361\nread SetHelpCommand for detail", "file": "command.go", "symbol": "SetHelpCommand", "line": 338, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/md_docs_test.go lines=26-49\nread TestGenMdDoc for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=579-602\nread comps for detail", "file": "completions.go", "symbol": "comps", "line": 579, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=186-209\nread GetFlagCompletionFunc for detail", "file": "completions.go", "symbol": "GetFlagCompletionFunc", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=27-50\nread activeHelpGlobalEnvVar for detail", "file": "active_help.go", "symbol": "activeHelpGlobalEnvVar", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=58-81\nread TestGenMdNoHiddenParents for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdNoHiddenParents", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=26-49\nread init for detail", "file": "doc/cmd_test.go", "symbol": "init", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=186-209\nread assertLineFound for detail", "file": "doc/man_docs_test.go", "symbol": "assertLineFound", "line": 186, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=173-196\nread indentString for detail", "file": "doc/rest_docs.go", "symbol": "indentString", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=31-54\nread BashCompCustom for detail", "file": "bash_completions.go", "symbol": "BashCompCustom", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=231-254\nread TestActiveHelpForFlag for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpForFlag", "line": 231, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=302-325\nread SetErr for detail", "file": "command.go", "symbol": "SetErr", "line": 302, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=357-380\nread TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs", "line": 357, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/yaml_docs_test.go lines=57-80\nread TestGenYamlTree for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlTree", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=758-781\nread innerfind for detail", "file": "command.go", "symbol": "innerfind", "line": 758, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=117-140\nread RangeArgs for detail", "file": "args.go", "symbol": "RangeArgs", "line": 117, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "コマンドのフラグエラー処理を委譲する関数を取得するロジックはどうなってる?", "query": "flag error func", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lang": "ja", "candidates": [{"text": "File: doc/md_docs.go\nLine 154: if err := GenMarkdownCustom(cmd, f, linkHandler); err != nil {", "file": "doc/md_docs.go", "symbol": "", "line": 154, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 2: //", "file": "active_help.go", "symbol": "", "line": 2, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 35: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 35, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 1013: // getEnvConfig returns the value of the configuration environment variable", "file": "completions.go", "symbol": "", "line": 1013, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 344: }", "file": "powershell_completions.go", "symbol": "", "line": 344, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 6: //", "file": "active_help.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "command_win.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 15: //go:build !windows", "file": "command_notwin.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 31: )", "file": "doc/man_docs.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 4094: os.Args = []string{\"root\", ShellCompNoDescRequestCmd, \"x\"}", "file": "completions_test.go", "symbol": "", "line": 4094, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 28: output := buf.String()", "file": "powershell_completions_test.go", "symbol": "", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 120: left = int64(av.Len())", "file": "cobra.go", "symbol": "", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 547: func (c *Command) FlagErrorFunc() (f func(*Command, error) error) {", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nLine 134: yamlDoc.SeeAlso = result", "file": "doc/yaml_docs.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 173: for _, flagGroup := range tc.flagGroupsExclusive {", "file": "flag_groups_test.go", "symbol": "", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 254: local subdir", "file": "zsh_completions.go", "symbol": "", "line": 254, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "zsh_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 46: }", "file": "shell_completions.go", "symbol": "", "line": 46, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 470: func (c *Command) GenBashCompletionFileV2(filename string, includeDesc bool) error {", "file": "bash_completionsV2.go", "symbol": "", "line": 470, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 48: Use: \"root\",", "file": "doc/cmd_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 10: // distributed under the License is distributed on an \"AS IS\" BASIS,", "file": "command_notwin.go", "symbol": "", "line": 10, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1573: func TestCaseSensitivityBackwardCompatibility(t *testing.T) {", "file": "command_test.go", "symbol": "", "line": 1573, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 146: description = cmd.Short", "file": "doc/man_docs.go", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 105: }", "file": "doc/cmd_test.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "コマンドのフラグエラー処理を委譲する関数を取得するロジックはどうなってる?", "query": "flag error func", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lang": "ja", "candidates": [{"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "コマンドのフラグエラー処理を委譲する関数を取得するロジックはどうなってる?", "query": "flag error func", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lang": "ja", "candidates": [{"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "コマンドのフラグエラー処理を委譲する関数を取得するロジックはどうなってる?", "query": "flag error func", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lang": "ja", "candidates": [{"text": "Next: read doc/man_docs.go lines=105-128\nread GenMan for detail", "file": "doc/man_docs.go", "symbol": "GenMan", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=143-166\nread manPreamble for detail", "file": "doc/man_docs.go", "symbol": "manPreamble", "line": 143, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=748-771\nread InitDefaultCompletionCmd for detail", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completionsV2.go lines=470-493\nread GenBashCompletionFileV2 for detail", "file": "bash_completionsV2.go", "symbol": "GenBashCompletionFileV2", "line": 470, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2044-2067\nread TestFlagCompletionWorksRootCommandAddedAfterFlags for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionWorksRootCommandAddedAfterFlags", "line": 2044, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=120-143\nread TestFailGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestFailGenFishCompletionFile", "line": 120, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=547-570\nread FlagErrorFunc for detail", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=333-356\nread TestExactArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValid_WithInvalidArgs", "line": 333, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=26-49\nread TestGenRSTDoc for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=351-374\nread TestExactArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithInvalidCount_WithValid", "line": 351, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=320-343\nread genPowerShellCompletionFile for detail", "file": "powershell_completions.go", "symbol": "genPowerShellCompletionFile", "line": 320, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs_test.go lines=27-50\nread TestGenYamlDoc for detail", "file": "doc/yaml_docs_test.go", "symbol": "TestGenYamlDoc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=69-92\nread NoDuplicateArgs for detail", "file": "args.go", "symbol": "NoDuplicateArgs", "line": 69, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=33-56\nread MarkFlagsRequiredTogether for detail", "file": "flag_groups.go", "symbol": "MarkFlagsRequiredTogether", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=101-124\nread checkStringOmits for detail", "file": "doc/cmd_test.go", "symbol": "checkStringOmits", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_examples_test.go lines=37-60\nread ExampleGenMan for detail", "file": "doc/man_examples_test.go", "symbol": "ExampleGenMan", "line": 37, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "Finde die Testfunktion, die prüft, ob bei falscher Argumentanzahl die korrekte Fehlermeldung „accepts 2 arg(s), received 3“ zurückgegeben wird.", "query": "test invalid arg count error", "file": "args_test.go", "symbol": "exactArgsWithInvalidCount", "line": 88, "lang": "de", "candidates": [{"text": "File: Makefile\nLine 24: go test -v $(GO_TEST_FLAGS) ./...", "file": "Makefile", "symbol": "", "line": 24, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 229: })", "file": "doc/man_docs.go", "symbol": "", "line": 229, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 25: )", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 361: os.Setenv(activeHelpGlobalEnvVar, \"0\")", "file": "active_help_test.go", "symbol": "", "line": 361, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1340: _, err := executeCommand(rootCmd, \"sub\", \"-v\")", "file": "command_test.go", "symbol": "", "line": 1340, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 17: import (", "file": "args.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 90: fmt.Fprintf(buf, \"* [%s](%s)\\t - %s\\n\", pname, linkHandler(link), parent.Short)", "file": "doc/md_docs.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "active_help.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 17: import (", "file": "doc/man_docs.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 133: }", "file": "args.go", "symbol": "", "line": 133, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 193: name: \"Padding required\",", "file": "cobra_test.go", "symbol": "", "line": 193, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "bash_completionsV2_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 396: return finalCmd, []Completion{}, ShellCompDirectiveNoFileComp, nil", "file": "completions.go", "symbol": "", "line": 396, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2701: if err != nil {", "file": "command_test.go", "symbol": "", "line": 2701, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 89: b.Fatal(err)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 89, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "zsh_completions.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 88: func exactArgsWithInvalidCount(err error, t *testing.T) {", "file": "args_test.go", "symbol": "exactArgsWithInvalidCount", "line": 88, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/util.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 271: }", "file": "flag_groups.go", "symbol": "", "line": 271, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 78: headerCopy := *header", "file": "doc/man_docs.go", "symbol": "", "line": 78, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 39: return append(compArray, fmt.Sprintf(\"%s%s\", activeHelpMarker, activeHelpStr))", "file": "active_help.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "fish_completions_test.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 139: // there are any positional args that are not in the `ValidArgs` field of `Command`", "file": "args.go", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/man_docs.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Finde die Testfunktion, die prüft, ob bei falscher Argumentanzahl die korrekte Fehlermeldung „accepts 2 arg(s), received 3“ zurückgegeben wird.", "query": "test invalid arg count error", "file": "args_test.go", "symbol": "exactArgsWithInvalidCount", "line": 88, "lang": "de", "candidates": [{"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\ndefines exactArgsWithInvalidCount", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nsibling in", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "Finde die Testfunktion, die prüft, ob bei falscher Argumentanzahl die korrekte Fehlermeldung „accepts 2 arg(s), received 3“ zurückgegeben wird.", "query": "test invalid arg count error", "file": "args_test.go", "symbol": "exactArgsWithInvalidCount", "line": 88, "lang": "de", "candidates": [{"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> bytes", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2.go -> fmt", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Finde die Testfunktion, die prüft, ob bei falscher Argumentanzahl die korrekte Fehlermeldung „accepts 2 arg(s), received 3“ zurückgegeben wird.", "query": "test invalid arg count error", "file": "args_test.go", "symbol": "exactArgsWithInvalidCount", "line": 88, "lang": "de", "candidates": [{"text": "Next: read command.go lines=352-375\nread SetCompletionCommandGroupID for detail", "file": "command.go", "symbol": "SetCompletionCommandGroupID", "line": 352, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=748-771\nread InitDefaultCompletionCmd for detail", "file": "completions.go", "symbol": "InitDefaultCompletionCmd", "line": 748, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=520-543\nread Help for detail", "file": "command.go", "symbol": "Help", "line": 520, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=88-111\nread exactArgsWithInvalidCount for detail", "file": "args_test.go", "symbol": "exactArgsWithInvalidCount", "line": 88, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/util.go lines=50-73\nread Len for detail", "file": "doc/util.go", "symbol": "Len", "line": 50, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_win.go lines=30-53\nread preExecHook for detail", "file": "command_win.go", "symbol": "preExecHook", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=311-334\nread SliceValue for detail", "file": "completions.go", "symbol": "SliceValue", "line": 311, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=101-124\nread compCmdNoDescFlagName for detail", "file": "completions.go", "symbol": "compCmdNoDescFlagName", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=781-804\nread findSuggestions for detail", "file": "command.go", "symbol": "findSuggestions", "line": 781, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=583-606\nread NamePadding for detail", "file": "command.go", "symbol": "NamePadding", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=327-350\nread err for detail", "file": "completions.go", "symbol": "err", "line": 327, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/cmd_test.go lines=47-70\nread rootCmd for detail", "file": "doc/cmd_test.go", "symbol": "rootCmd", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=680-703\nread String for detail", "file": "completions_test.go", "symbol": "String", "line": 680, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=201-224\nread directives for detail", "file": "completions.go", "symbol": "directives", "line": 201, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read powershell_completions.go lines=342-365\nread GenPowerShellCompletionFileWithDesc for detail", "file": "powershell_completions.go", "symbol": "GenPowerShellCompletionFileWithDesc", "line": 342, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=465-488\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 465, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=179-202\nread tmpl for detail", "file": "cobra.go", "symbol": "tmpl", "line": 179, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "Hay que revisar la configuración disponible para personalizar el comportamiento de los comandos de autocompletado de la terminal, ya que necesito controlar si se muestran descripciones o si el comando por defecto debe estar oculto.", "query": "shell completion options", "file": "completions.go", "symbol": "CompletionOptions", "line": 107, "lang": "es", "candidates": [{"text": "File: doc/md_docs.go\nLine 83: if hasSeeAlso(cmd) {", "file": "doc/md_docs.go", "symbol": "", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 134: yamlDoc.SeeAlso = result", "file": "doc/yaml_docs.go", "symbol": "", "line": 134, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 303: _, err := executeCommand(c, \"one\", \"three\", \"two\")", "file": "args_test.go", "symbol": "", "line": 303, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 188: inputString string", "file": "cobra_test.go", "symbol": "", "line": 188, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "fish_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 48: activeHelpCfg := os.Getenv(activeHelpGlobalEnvVar)", "file": "active_help.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 139: }", "file": "cobra.go", "symbol": "", "line": 139, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2694: t.Errorf(\"Expected value: \\n %v\\nGot:\\n %v\\n\", val, got)", "file": "command_test.go", "symbol": "", "line": 2694, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 144: // with custom filePrepender and linkHandler.", "file": "doc/rest_docs.go", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 228: return true", "file": "cobra.go", "symbol": "", "line": 228, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2510: rootCmd.CompletionOptions.DisableDefaultCmd = true", "file": "completions_test.go", "symbol": "", "line": 2510, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nLine 64: defer os.RemoveAll(tmpdir)", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 64, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1971: t.Errorf(\"expected: %q, got: %q\", expected, output)", "file": "completions_test.go", "symbol": "", "line": 1971, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 207: // CompletionOptions is a set of options to control the handling of shell completion", "file": "command.go", "symbol": "", "line": 207, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\nLine 2041: }", "file": "completions_test.go", "symbol": "", "line": 2041, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 73: }", "file": "completions_test.go", "symbol": "", "line": 73, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 100: yamlDoc.Synopsis = forceMultiLine(cmd.Short)", "file": "doc/yaml_docs.go", "symbol": "", "line": 100, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 107: type CompletionOptions struct {", "file": "completions.go", "symbol": "CompletionOptions", "line": 107, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command_test.go\nLine 1803: if reflect.ValueOf(normFunc).Pointer() != reflect.ValueOf(childCmd.GlobalNormalizationFunc()).Pointer() {", "file": "command_test.go", "symbol": "", "line": 1803, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2901: Use: \"root\",", "file": "command_test.go", "symbol": "", "line": 2901, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 17: import (", "file": "bash_completions_test.go", "symbol": "", "line": 17, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1958: rootCmd.CompletionOptions.DisableDefaultCmd = true", "file": "command_test.go", "symbol": "", "line": 1958, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_test.go\nLine 2443: defer func(ov bool) { EnablePrefixMatching = ov }(EnablePrefixMatching)", "file": "command_test.go", "symbol": "", "line": 2443, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 31: activeHelpVar := activeHelpEnvVar(c.Name())", "file": "zsh_completions_test.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "Hay que revisar la configuración disponible para personalizar el comportamiento de los comandos de autocompletado de la terminal, ya que necesito controlar si se muestran descripciones o si el comando por defecto debe estar oculto.", "query": "shell completion options", "file": "completions.go", "symbol": "CompletionOptions", "line": 107, "lang": "es", "candidates": [{"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nsibling in", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "Hay que revisar la configuración disponible para personalizar el comportamiento de los comandos de autocompletado de la terminal, ya que necesito controlar si se muestran descripciones o si el comando por defecto debe estar oculto.", "query": "shell completion options", "file": "completions.go", "symbol": "CompletionOptions", "line": 107, "lang": "es", "candidates": [{"text": "Import (outbound): completions.go -> strconv", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> github.com/spf13/pflag", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> regexp", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> strings", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> sync", "file": "completions.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "Hay que revisar la configuración disponible para personalizar el comportamiento de los comandos de autocompletado de la terminal, ya que necesito controlar si se muestran descripciones o si el comando por defecto debe estar oculto.", "query": "shell completion options", "file": "completions.go", "symbol": "CompletionOptions", "line": 107, "lang": "es", "candidates": [{"text": "Next: read shell_completions.go lines=96-119\nread MarkFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=207-230\nread TestArbitraryArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestArbitraryArgs_WithValid_WithInvalidArgs", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=181-204\nread TestNoDuplicateArgs_WithValid_WithDuplicateArgs for detail", "file": "args_test.go", "symbol": "TestNoDuplicateArgs_WithValid_WithDuplicateArgs", "line": 181, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=52-75\nread Less for detail", "file": "doc/util.go", "symbol": "Less", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=401-424\nread TestRangeArgs_WithInvalidCount_WithValid for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValid", "line": 401, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=583-606\nread TestFlagNameCompletionInGoWithDesc for detail", "file": "completions_test.go", "symbol": "TestFlagNameCompletionInGoWithDesc", "line": 583, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=164-187\nread TestGenManTree for detail", "file": "doc/man_docs_test.go", "symbol": "TestGenManTree", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=173-196\nread indentString for detail", "file": "doc/rest_docs.go", "symbol": "indentString", "line": 173, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=426-449\nread TestValidArgsFuncAndCmdCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsFuncAndCmdCompletionInGo", "line": 426, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=828-851\nread parentFlagValue for detail", "file": "command_test.go", "symbol": "parentFlagValue", "line": 828, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=31-54\nread ShellCompRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompRequestCmd", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=83-106\nread MarkFlagDirname for detail", "file": "shell_completions.go", "symbol": "MarkFlagDirname", "line": 83, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=334-357\nread TestAliasPrefixMatching for detail", "file": "command_test.go", "symbol": "TestAliasPrefixMatching", "line": 334, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=45-68\nread ShellCompDirective for detail", "file": "completions.go", "symbol": "ShellCompDirective", "line": 45, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=676-699\nread customMultiString for detail", "file": "completions_test.go", "symbol": "customMultiString", "line": 676, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=38-61\nread flagCompletionFunctions for detail", "file": "completions.go", "symbol": "flagCompletionFunctions", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=107-130\nread CompletionOptions for detail", "file": "completions.go", "symbol": "CompletionOptions", "line": 107, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=413-436\nread TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs", "line": 413, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/yaml_docs.go lines=150-173\nread result for detail", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=307-330\nread TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs", "line": 307, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "플래그 파싱 실패 시 에러를 생성하는 함수 설정하는 메서드 찾아줘", "query": "flag error func", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lang": "ko", "candidates": [{"text": "File: command.go\nLine 328: func (c *Command) SetFlagErrorFunc(f func(*Command, error) error) {", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: flag_groups_test.go\nLine 130: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 130, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 116: defer os.Remove(file.Name())", "file": "doc/md_docs_test.go", "symbol": "", "line": 116, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 289: # Perform file completion", "file": "zsh_completions.go", "symbol": "", "line": 289, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 170: }", "file": "cobra_test.go", "symbol": "", "line": 170, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 66: var EnableTraverseRunHooks = defaultTraverseRunHooks", "file": "cobra.go", "symbol": "", "line": 66, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 99: if len(args) > n {", "file": "args.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 75: func TestGenYamlDocRunnable(t *testing.T) {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 207: comps = AppendActiveHelp(comps, activeHelpMessage)", "file": "active_help_test.go", "symbol": "", "line": 207, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 234: # 3) ResultType type of completion result", "file": "powershell_completions.go", "symbol": "", "line": 234, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 12: // See the License for the specific language governing permissions and", "file": "zsh_completions_test.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 197: checkRegex(t, output, fmt.Sprintf(`_root_echo\\(\\)\\n{[^}]*flags_completion\\+=\\(\"__%s_handle_filename_extension_flag json\\|yaml\\|yml\"\\)`, rootCmd.Name()))", "file": "bash_completions_test.go", "symbol": "", "line": 197, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help.go\nLine 43: // _ACTIVE_HELP where is the name of the root command in upper", "file": "active_help.go", "symbol": "", "line": 43, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 8: //", "file": "powershell_completions.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 7: // http://www.apache.org/licenses/LICENSE-2.0", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 7, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 23: )", "file": "flag_groups.go", "symbol": "", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 36: }", "file": "bash_completions_test.go", "symbol": "", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 164: return err", "file": "doc/rest_docs.go", "symbol": "", "line": 164, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 8: github.com/spf13/pflag v1.0.9", "file": "go.mod", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2222: c.SetFlagErrorFunc(func(_ *Command, err error) error {", "file": "command_test.go", "symbol": "", "line": 2222, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra.go\nLine 213: }", "file": "cobra.go", "symbol": "", "line": 213, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 29: // GenZshCompletion generates zsh completion file including descriptions", "file": "zsh_completions.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 95: return err", "file": "doc/rest_docs.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 98: yamlDoc.Name = cmd.CommandPath()", "file": "doc/yaml_docs.go", "symbol": "", "line": 98, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "플래그 파싱 실패 시 에러를 생성하는 함수 설정하는 메서드 찾아줘", "query": "flag error func", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lang": "ko", "candidates": [{"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nsibling in", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "플래그 파싱 실패 시 에러를 생성하는 함수 설정하는 메서드 찾아줘", "query": "flag error func", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lang": "ko", "candidates": [{"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions.go -> fmt", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions.go -> bytes", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "플래그 파싱 실패 시 에러를 생성하는 함수 설정하는 메서드 찾아줘", "query": "flag error func", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lang": "ko", "candidates": [{"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read fish_completions_test.go lines=26-49\nread TestCompleteNoDesCmdInFishScript for detail", "file": "fish_completions_test.go", "symbol": "TestCompleteNoDesCmdInFishScript", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs_test.go lines=29-52\nread assertNoErr for detail", "file": "doc/man_docs_test.go", "symbol": "assertNoErr", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=328-351\nread SetFlagErrorFunc for detail", "file": "command.go", "symbol": "SetFlagErrorFunc", "line": 328, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read completions.go lines=34-57\nread ShellCompNoDescRequestCmd for detail", "file": "completions.go", "symbol": "ShellCompNoDescRequestCmd", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=26-49\nread requiredAsGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "requiredAsGroupAnnotation", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=121-144\nread TestStringInSlice for detail", "file": "cobra_test.go", "symbol": "TestStringInSlice", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=121-144\nread processFlagForGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=484-507\nread ext for detail", "file": "bash_completions.go", "symbol": "ext", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs_test.go lines=26-49\nread TestGenRSTDoc for detail", "file": "doc/rest_docs_test.go", "symbol": "TestGenRSTDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=14-37\nread fmt for detail", "file": "Makefile", "symbol": "fmt", "line": 14, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help.go lines=28-51\nread activeHelpGlobalDisable for detail", "file": "active_help.go", "symbol": "activeHelpGlobalDisable", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=339-362\nread TestExactArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs_WithValidOnly_WithInvalidArgs", "line": 339, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=235-258\nread TestExecute_NoContext for detail", "file": "command_test.go", "symbol": "TestExecute_NoContext", "line": 235, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2163-2186\nread err for detail", "file": "completions_test.go", "symbol": "err", "line": 2163, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=146-169\nread TestRootExecuteUnknownCommand for detail", "file": "command_test.go", "symbol": "TestRootExecuteUnknownCommand", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=84-107\nread ShellCompDirectiveKeepOrder for detail", "file": "completions.go", "symbol": "ShellCompDirectiveKeepOrder", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs_test.go lines=149-172\nread TestManPrintFlagsHidesShortDeprecated for detail", "file": "doc/man_docs_test.go", "symbol": "TestManPrintFlagsHidesShortDeprecated", "line": 149, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=274-297\nread TestCommandAlias for detail", "file": "command_test.go", "symbol": "TestCommandAlias", "line": 274, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "tester le cas où moins d'arguments requis sont fournis avec des arguments valides et invalides", "query": "test minimum nargs less valid invalid", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs", "line": 257, "lang": "fr", "candidates": [{"text": "File: Makefile\nLine 6: endif", "file": "Makefile", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1648: func (c *Command) HasHelpSubCommands() bool {", "file": "command.go", "symbol": "", "line": 1648, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 147: }", "file": "doc/man_docs.go", "symbol": "", "line": 147, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 25: \"github.com/inconshreveable/mousetrap\"", "file": "command_win.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 18: \"fmt\"", "file": "args.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 19: \"strings\"", "file": "args.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3962: {", "file": "completions_test.go", "symbol": "", "line": 3962, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 30: // check that active help is being disabled", "file": "powershell_completions_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 6: //", "file": "doc/man_docs.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 257: func TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs(t *testing.T) {", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs", "line": 257, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: zsh_completions.go\nLine 223: hasActiveHelp=0", "file": "zsh_completions.go", "symbol": "", "line": 223, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 25: func genFishComp(buf io.StringWriter, name string, includeDesc bool) {", "file": "fish_completions.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 601: }", "file": "command.go", "symbol": "", "line": 601, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 140: $Out = $Out | Where-Object { $_ -ne $Out[-1] }", "file": "powershell_completions.go", "symbol": "", "line": 140, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 40: function __%[1]s_debug {", "file": "powershell_completions.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nLine 57: func GenMarkdownCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string) string) error {", "file": "doc/md_docs.go", "symbol": "", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/util.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 59: checkStringContains(t, output, translate(echoCmd.Name()))", "file": "doc/man_docs_test.go", "symbol": "", "line": 59, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 19: \"fmt\"", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 19, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 184: }", "file": "flag_groups_test.go", "symbol": "", "line": 184, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nLine 95: processFlagForGroupAnnotation(flags, pflag, oneRequiredAnnotation, oneRequiredGroupStatus)", "file": "flag_groups.go", "symbol": "", "line": 95, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 5: // You may obtain a copy of the License at", "file": "command_notwin.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nLine 1: BIN=\"./bin\"", "file": "Makefile", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 3270: rootCmd.PersistentFlags().IntSlice(\"ingroup1\", []int{1}, \"ingroup1\")", "file": "completions_test.go", "symbol": "", "line": 3270, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "tester le cas où moins d'arguments requis sont fournis avec des arguments valides et invalides", "query": "test minimum nargs less valid invalid", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs", "line": 257, "lang": "fr", "candidates": [{"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\ndefines TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nsibling in", "file": "command_notwin.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nGenPowerShellCompletionFile generates powershell completion file without descriptions.", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "tester le cas où moins d'arguments requis sont fournis avec des arguments valides et invalides", "query": "test minimum nargs less valid invalid", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs", "line": 257, "lang": "fr", "candidates": [{"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> bytes", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_examples_test.go -> fmt", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> os", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help.go -> fmt", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "tester le cas où moins d'arguments requis sont fournis avec des arguments valides et invalides", "query": "test minimum nargs less valid invalid", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs", "line": 257, "lang": "fr", "candidates": [{"text": "Next: read command_test.go lines=818-841\nread TestPersistentFlagsOnChild for detail", "file": "command_test.go", "symbol": "TestPersistentFlagsOnChild", "line": 818, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=529-552\nread cArgs for detail", "file": "command_test.go", "symbol": "cArgs", "line": 529, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=684-707\nread Set for detail", "file": "completions_test.go", "symbol": "Set", "line": 684, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=26-49\nread TestGenMdDoc for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDoc", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command.go lines=444-467\nread UsageFunc for detail", "file": "command.go", "symbol": "UsageFunc", "line": 444, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=115-138\nread left for detail", "file": "cobra.go", "symbol": "left", "line": 115, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=257-280\nread TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs", "line": 257, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=32-55\nread BashCompOneRequiredFlag for detail", "file": "bash_completions.go", "symbol": "BashCompOneRequiredFlag", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=275-298\nread timesCmdArgs for detail", "file": "command_test.go", "symbol": "timesCmdArgs", "line": 275, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=404-427\nread writePostscript for detail", "file": "bash_completions.go", "symbol": "writePostscript", "line": 404, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs.go lines=57-80\nread GenMarkdownCustom for detail", "file": "doc/md_docs.go", "symbol": "GenMarkdownCustom", "line": 57, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=58-81\nread ShellCompDirectiveError for detail", "file": "completions.go", "symbol": "ShellCompDirectiveError", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=592-615\nread UsageTemplate for detail", "file": "command.go", "symbol": "UsageTemplate", "line": 592, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=398-421\nread OutOrStderr for detail", "file": "command.go", "symbol": "OutOrStderr", "line": 398, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=281-304\nread SetArgs for detail", "file": "command.go", "symbol": "SetArgs", "line": 281, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/rest_docs.go lines=145-168\nread GenReSTTreeCustom for detail", "file": "doc/rest_docs.go", "symbol": "GenReSTTreeCustom", "line": 145, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "'name' 플래그에 대한 셸 자동 완성을 특정 파일 확장자로 제한하려면 어떻게 작성하나요?", "query": "shell completion flag filename", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lang": "ko", "candidates": [{"text": "File: doc/md_docs_test.go\nLine 102: if err := GenMarkdownTree(c, tmpdir); err != nil {", "file": "doc/md_docs_test.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 1: // Copyright 2013-2023 The Cobra Authors", "file": "doc/man_examples_test.go", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 656: }", "file": "bash_completions.go", "symbol": "", "line": 656, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 96: // check that active help is being disabled", "file": "fish_completions_test.go", "symbol": "", "line": 96, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 8: //", "file": "zsh_completions_test.go", "symbol": "", "line": 8, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "command_notwin.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 1046: assertNoErr(t, rootCmd.MarkFlagFilename(\"file\"))", "file": "completions_test.go", "symbol": "", "line": 1046, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: active_help_test.go\nLine 354: \"Completion ended with directive: ShellCompDirectiveDefault\", \"\"}, \"\\n\")", "file": "active_help_test.go", "symbol": "", "line": 354, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 189: if line == expectedLine {", "file": "doc/man_docs_test.go", "symbol": "", "line": 189, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1354: if commandPathLen > c.commandsMaxCommandPathLen {", "file": "command.go", "symbol": "", "line": 1354, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 70: Use: \"times [# times] [string to echo]\",", "file": "doc/cmd_test.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 99: if len(args) > n {", "file": "args.go", "symbol": "", "line": 99, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 322: if err != nil {", "file": "powershell_completions.go", "symbol": "", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 76: expectErr: \"if any flags in the group [a b c] are set none of the others can be; [a b] were all set\",", "file": "flag_groups_test.go", "symbol": "", "line": 76, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 40: // that do not contain \\n.", "file": "doc/util.go", "symbol": "", "line": 40, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 44: func (c *Command) MarkFlagFilename(name string, extensions ...string) error {", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/cmd_test.go\nLine 91: Use: \"dummy [action]\",", "file": "doc/cmd_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 96: assertNoErr(t, rootCmd.MarkFlagFilename(\"filename\", \"json\", \"yaml\", \"yml\"))", "file": "bash_completions_test.go", "symbol": "", "line": 96, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "command_win.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 211: name: \"Zero padding\",", "file": "cobra_test.go", "symbol": "", "line": 211, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 30: t.Fatal(err)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 15: //go:build !windows", "file": "command_notwin.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 70: // For flags, using Command.MarkFlagFilename() and Command.MarkPersistentFlagFilename()", "file": "completions.go", "symbol": "", "line": 70, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nLine 22: \"github.com/spf13/cobra/doc\"", "file": "doc/man_examples_test.go", "symbol": "", "line": 22, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "'name' 플래그에 대한 셸 자동 완성을 특정 파일 확장자로 제한하려면 어떻게 작성하나요?", "query": "shell completion flag filename", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lang": "ko", "candidates": [{"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nlegacyArgs validation has the following behaviour: - root commands with no subcommands can take arbitrary arguments - root commands with subcommands will do subcommand validity checking - subcommands ", "file": "args.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2_test.go\nsibling in", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "'name' 플래그에 대한 셸 자동 완성을 특정 파일 확장자로 제한하려면 어떻게 작성하나요?", "query": "shell completion flag filename", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/md_docs.go -> bytes", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> os", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): bash_completionsV2_test.go -> bytes", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> bytes", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> bytes", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs_test.go -> fmt", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs.go -> fmt", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completionsV2_test.go -> fmt", "file": "bash_completionsV2_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/md_docs_test.go -> bytes", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs.go -> fmt", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "'name' 플래그에 대한 셸 자동 완성을 특정 파일 확장자로 제한하려면 어떻게 작성하나요?", "query": "shell completion flag filename", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lang": "ko", "candidates": [{"text": "Next: read completions.go lines=41-64\nread flagCompletionMutex for detail", "file": "completions.go", "symbol": "flagCompletionMutex", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args.go lines=127-150\nread MatchAll for detail", "file": "args.go", "symbol": "MatchAll", "line": 127, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/md_docs_test.go lines=44-67\nread TestGenMdDocWithNoLongOrSynopsis for detail", "file": "doc/md_docs_test.go", "symbol": "TestGenMdDocWithNoLongOrSynopsis", "line": 44, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=44-67\nread MarkFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkFlagFilename", "line": 44, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read cobra.go lines=114-137\nread Gt for detail", "file": "cobra.go", "symbol": "Gt", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=701-724\nread GenBashCompletionFile for detail", "file": "bash_completions.go", "symbol": "GenBashCompletionFile", "line": 701, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=187-210\nread manPrintOptions for detail", "file": "doc/man_docs.go", "symbol": "manPrintOptions", "line": 187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=829-852\nread childFlagValue for detail", "file": "command_test.go", "symbol": "childFlagValue", "line": 829, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=615-638\nread writeRequiredNouns for detail", "file": "bash_completions.go", "symbol": "writeRequiredNouns", "line": 615, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=38-61\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra_test.go lines=185-208\nread TestRpad for detail", "file": "cobra_test.go", "symbol": "TestRpad", "line": 185, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=31-54\nread MarkPersistentFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagRequired", "line": 31, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions.go lines=33-56\nread BashCompSubdirsInDir for detail", "file": "bash_completions.go", "symbol": "BashCompSubdirsInDir", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=47-70\nread defaultCommandSorting for detail", "file": "cobra.go", "symbol": "defaultCommandSorting", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2187-2210\nread TestFlagCompletionInGoWithDesc for detail", "file": "completions_test.go", "symbol": "TestFlagCompletionInGoWithDesc", "line": 2187, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=24-47\nread MarkFlagRequired for detail", "file": "shell_completions.go", "symbol": "MarkFlagRequired", "line": 24, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=2545-2568\nread compCmd for detail", "file": "completions_test.go", "symbol": "compCmd", "line": 2545, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=495-518\nread cbn for detail", "file": "bash_completions.go", "symbol": "cbn", "line": 495, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=367-390\nread SetVersionTemplate for detail", "file": "command.go", "symbol": "SetVersionTemplate", "line": 367, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=484-507\nread HelpFunc for detail", "file": "command.go", "symbol": "HelpFunc", "line": 484, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=263-286\nread TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs", "line": 263, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=61-84\nread MarkPersistentFlagFilename for detail", "file": "shell_completions.go", "symbol": "MarkPersistentFlagFilename", "line": 61, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "go 언어에서 명령어 자동 완성 테스트 로직 찾아줘", "query": "test command completion", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lang": "ko", "candidates": [{"text": "File: doc/man_docs.go\nLine 215: fmt.Fprintf(buf, \"```\\n%s\\n```\\n\", cmd.Example)", "file": "doc/man_docs.go", "symbol": "", "line": 215, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 9: go.yaml.in/yaml/v3 v3.0.4", "file": "go.mod", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 38: return nil", "file": "args.go", "symbol": "", "line": 38, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 270: `, nameForVar, name, compCmd,", "file": "fish_completions.go", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 248: }", "file": "cobra_test.go", "symbol": "", "line": 248, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 51: Run: emptyRun,", "file": "doc/cmd_test.go", "symbol": "", "line": 51, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nLine 33: }", "file": "powershell_completions_test.go", "symbol": "", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 253: # File completion for directories only", "file": "zsh_completions.go", "symbol": "", "line": 253, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 26: func TestGenRSTDoc(t *testing.T) {", "file": "doc/rest_docs_test.go", "symbol": "", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 114: b.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 15: //go:build !windows", "file": "command_notwin.go", "symbol": "", "line": 15, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nLine 39: \"eq\": Eq,", "file": "cobra.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 175: b := []byte(s)", "file": "doc/rest_docs.go", "symbol": "", "line": 175, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 109: b.Fatal(err)", "file": "doc/rest_docs_test.go", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 55: func TestCmdNameCompletionInGo(t *testing.T) {", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: command.go\nLine 620: return c.versionTemplate.tmpl", "file": "command.go", "symbol": "", "line": 620, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args.go\nLine 82: func ArbitraryArgs(cmd *Command, args []string) error {", "file": "args.go", "symbol": "", "line": 82, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 68: return flags.SetAnnotation(name, BashCompFilenameExt, extensions)", "file": "shell_completions.go", "symbol": "", "line": 68, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 91: defer os.Remove(file.Name())", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 6: //", "file": "command_win.go", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 34: return true", "file": "doc/util.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 162: \"Completion ended with directive: ShellCompDirectiveDefault\", \"\"}, \"\\n\")", "file": "active_help_test.go", "symbol": "", "line": 162, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 9: // Unless required by applicable law or agreed to in writing, software", "file": "zsh_completions_test.go", "symbol": "", "line": 9, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "go 언어에서 명령어 자동 완성 테스트 로직 찾아줘", "query": "test command completion", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lang": "ko", "candidates": [{"text": "File: bash_completionsV2.go\nGenBashCompletionFileV2 generates Bash completion version 2.", "file": "bash_completionsV2.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra.go\nEnablePrefixMatching allows setting automatic prefix matching. Automatic prefix matching can be a dangerous thing to automatically enable in CLI tools. Set this to true to enable it.", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: completions_test.go\ncustomMultiString is a custom Value type that accepts multiple values, but does not include \"Slice\" or \"Array\" in its \"Type\" string.", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nGenZshCompletionFile generates zsh completion file including descriptions.", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions_test.go\nsibling in", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "go 언어에서 명령어 자동 완성 테스트 로직 찾아줘", "query": "test command completion", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lang": "ko", "candidates": [{"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): completions_test.go -> strings", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> os", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> bytes", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> fmt", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> sync", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): zsh_completions_test.go -> fmt", "file": "zsh_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_win.go -> os", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> testing", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> fmt", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): shell_completions.go -> github.com/spf13/pflag", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "go 언어에서 명령어 자동 완성 테스트 로직 찾아줘", "query": "test command completion", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lang": "ko", "candidates": [{"text": "Next: read doc/rest_docs_test.go lines=98-121\nread BenchmarkGenReSTToFile for detail", "file": "doc/rest_docs_test.go", "symbol": "BenchmarkGenReSTToFile", "line": 98, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=403-426\nread ErrOrStderr for detail", "file": "command.go", "symbol": "ErrOrStderr", "line": 403, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=41-64\nread validArgsFunc2 for detail", "file": "completions_test.go", "symbol": "validArgsFunc2", "line": 41, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/cmd_test.go lines=77-100\nread deprecatedCmd for detail", "file": "doc/cmd_test.go", "symbol": "deprecatedCmd", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=41-64\nread forceMultiLine for detail", "file": "doc/util.go", "symbol": "forceMultiLine", "line": 41, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=621-644\nread flagValue for detail", "file": "command_test.go", "symbol": "flagValue", "line": 621, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=46-69\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 46, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=47-70\nread flagCompError for detail", "file": "completions.go", "symbol": "flagCompError", "line": 47, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read shell_completions.go lines=54-77\nread MarkFlagCustom for detail", "file": "shell_completions.go", "symbol": "MarkFlagCustom", "line": 54, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=305-328\nread TestEnablePrefixMatching for detail", "file": "command_test.go", "symbol": "TestEnablePrefixMatching", "line": 305, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups_test.go lines=22-45\nread TestValidateFlagGroups for detail", "file": "flag_groups_test.go", "symbol": "TestValidateFlagGroups", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=81-104\nread MousetrapDisplayDuration for detail", "file": "cobra.go", "symbol": "MousetrapDisplayDuration", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=55-78\nread TestCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestCmdNameCompletionInGo", "line": 55, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read bash_completions.go lines=36-59\nread writePreamble for detail", "file": "bash_completions.go", "symbol": "writePreamble", "line": 36, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=616-639\nread TestFlagBeforeCommand for detail", "file": "command_test.go", "symbol": "TestFlagBeforeCommand", "line": 616, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=27-50\nread validArgsFunc for detail", "file": "completions_test.go", "symbol": "validArgsFunc", "line": 27, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read bash_completions.go lines=629-652\nread writeCmdAliases for detail", "file": "bash_completions.go", "symbol": "writeCmdAliases", "line": 629, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=32-55\nread completions for detail", "file": "completions_test.go", "symbol": "completions", "line": 32, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read cobra.go lines=243-266\nread WriteStringAndCheck for detail", "file": "cobra.go", "symbol": "WriteStringAndCheck", "line": 243, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=22-45\nread test for detail", "file": "Makefile", "symbol": "test", "line": 22, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=321-344\nread TestExactArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read zsh_completions_test.go lines=23-46\nread TestZshCompletionWithActiveHelp for detail", "file": "zsh_completions_test.go", "symbol": "TestZshCompletionWithActiveHelp", "line": 23, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=157-180\nread TestNoCmdNameCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestNoCmdNameCompletionInGo", "line": 157, "lexical": 2.0, "target": false, "label": 2}]} {"site": "project_search", "repo": "cobra", "task": "activeHelpメッセージの2番目のセグメントに使用される定数の定義を確認してください。この定数は、インタラクティブヘルプ機能における完全なメッセージテキストの一部として使用されています。", "query": "activeHelp message segment", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lang": "ja", "candidates": [{"text": "File: bash_completions_test.go\nLine 114: rootCmd.Flags().StringP(\"two\", \"t\", \"\", \"this is two word flags\")", "file": "bash_completions_test.go", "symbol": "", "line": 114, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 25: return MarkFlagRequired(c.Flags(), name)", "file": "shell_completions.go", "symbol": "", "line": 25, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions_test.go\nLine 21: )", "file": "zsh_completions_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 77: f := rootCmd.PersistentFlags().Lookup(name)", "file": "doc/man_docs_test.go", "symbol": "", "line": 77, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 295: $CompletionText = $($comp.Name | __%[1]s_escapeStringWithSpecialChars)", "file": "powershell_completions.go", "symbol": "", "line": 295, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 6: github.com/cpuguy83/go-md2man/v2 v2.0.6", "file": "go.mod", "symbol": "", "line": 6, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 32: return c", "file": "args_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: zsh_completions.go\nLine 49: // default for every argument. One can disable file completion on a per-argument", "file": "zsh_completions.go", "symbol": "", "line": 49, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_notwin.go\nLine 4: // you may not use this file except in compliance with the License.", "file": "command_notwin.go", "symbol": "", "line": 4, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 144: Deprecated: \"Please use echo instead\",", "file": "bash_completions_test.go", "symbol": "", "line": 144, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 106: }", "file": "cobra_test.go", "symbol": "", "line": 106, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 26: activeHelpMessage2 = \"This is the rest of the activeHelp message\"", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: bash_completionsV2_test.go\nLine 27: assertNoErr(t, c.GenBashCompletionV2(buf, true))", "file": "bash_completionsV2_test.go", "symbol": "", "line": 27, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 91: expectErr: `if any flags in the group [a b c] are set none of the others can be; [a c] were all set`,", "file": "flag_groups_test.go", "symbol": "", "line": 91, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nLine 30: type cmdOption struct {", "file": "doc/yaml_docs.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 270: return c.ctx", "file": "command.go", "symbol": "", "line": 270, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 67: checkOmit(t, output, \"__root-dash_perform_completion\")", "file": "fish_completions_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 1687: // to this command (local and persistent declared here and by all parents).", "file": "command.go", "symbol": "", "line": 1687, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 11, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions.go\nLine 90: end", "file": "fish_completions.go", "symbol": "", "line": 90, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 102: fi", "file": "bash_completions.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 146: // NoFileCompletions can be used to disable file completion for commands that should", "file": "completions.go", "symbol": "", "line": 146, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 79: Short: \"A command which is deprecated\",", "file": "doc/cmd_test.go", "symbol": "", "line": 79, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nLine 18: \"strings\"", "file": "doc/cmd_test.go", "symbol": "", "line": 18, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "activeHelpメッセージの2番目のセグメントに使用される定数の定義を確認してください。この定数は、インタラクティブヘルプ機能における完全なメッセージテキストの一部として使用されています。", "query": "activeHelp message segment", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lang": "ja", "candidates": [{"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups.go\nMarkFlagsRequiredTogether marks the given flags with annotations so that Cobra errors if the command is invoked with a subset (but not all) of the given flags.", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\ndefines activeHelpMessage2", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: active_help.go\nThe below values should not be changed: programs will be using them explicitly in their user documentation, and users will be using them explicitly.", "file": "active_help.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "activeHelpメッセージの2番目のセグメントに使用される定数の定義を確認してください。この定数は、インタラクティブヘルプ機能における完全なメッセージテキストの一部として使用されています。", "query": "activeHelp message segment", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lang": "ja", "candidates": [{"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups.go -> fmt", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> bytes", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions.go -> fmt", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> testing", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> os", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): flag_groups_test.go -> strings", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> fmt", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> fmt", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): flag_groups.go -> sort", "file": "flag_groups.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args.go -> strings", "file": "args.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): active_help_test.go -> testing", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): active_help_test.go -> strings", "file": "active_help_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "activeHelpメッセージの2番目のセグメントに使用される定数の定義を確認してください。この定数は、インタラクティブヘルプ機能における完全なメッセージテキストの一部として使用されています。", "query": "activeHelp message segment", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lang": "ja", "candidates": [{"text": "Next: read completions_test.go lines=693-716\nread GetSlice for detail", "file": "completions_test.go", "symbol": "GetSlice", "line": 693, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=25-48\nread activeHelpMessage for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage", "line": 25, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions_test.go lines=322-345\nread TestValidArgsCompletionInGo for detail", "file": "completions_test.go", "symbol": "TestValidArgsCompletionInGo", "line": 322, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=129-152\nread TestNoArgs_WithArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs_WithArgs", "line": 129, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=998-1021\nread configEnvVarSuffixDescriptions for detail", "file": "completions.go", "symbol": "configEnvVarSuffixDescriptions", "line": 998, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=122-145\nread comps for detail", "file": "active_help_test.go", "symbol": "comps", "line": 122, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read active_help_test.go lines=84-107\nread TestActiveHelpWithComps for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpWithComps", "line": 84, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=60-83\nread GenYamlTreeCustom for detail", "file": "doc/yaml_docs.go", "symbol": "GenYamlTreeCustom", "line": 60, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=48-71\nread GenManTreeFromOpts for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeFromOpts", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=429-452\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 429, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=123-146\nread TestNoArgs for detail", "file": "args_test.go", "symbol": "TestNoArgs", "line": 123, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=1006-1029\nread configEnvVar for detail", "file": "completions.go", "symbol": "configEnvVar", "line": 1006, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=169-192\nread TestMultiActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestMultiActiveHelp", "line": 169, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read command_test.go lines=770-793\nread TestEmptyInputs for detail", "file": "command_test.go", "symbol": "TestEmptyInputs", "line": 770, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=29-52\nread TestActiveHelpAlone for detail", "file": "active_help_test.go", "symbol": "TestActiveHelpAlone", "line": 29, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=599-622\nread getFlagNameCompletions for detail", "file": "completions.go", "symbol": "getFlagNameCompletions", "line": 599, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/util.go lines=26-49\nread hasSeeAlso for detail", "file": "doc/util.go", "symbol": "hasSeeAlso", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=26-49\nread activeHelpMessage2 for detail", "file": "active_help_test.go", "symbol": "activeHelpMessage2", "line": 26, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read Makefile lines=18-41\nread lint for detail", "file": "Makefile", "symbol": "lint", "line": 18, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=80-103\nread ShellCompDirectiveFilterDirs for detail", "file": "completions.go", "symbol": "ShellCompDirectiveFilterDirs", "line": 80, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=121-144\nread processFlagForGroupAnnotation for detail", "file": "flag_groups.go", "symbol": "processFlagForGroupAnnotation", "line": 121, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=277-300\nread TestMaximumNArgs_WithValid for detail", "file": "args_test.go", "symbol": "TestMaximumNArgs_WithValid", "line": 277, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read fish_completions_test.go lines=101-124\nread TestGenFishCompletionFile for detail", "file": "fish_completions_test.go", "symbol": "TestGenFishCompletionFile", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=263-286\nread TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs for detail", "file": "args_test.go", "symbol": "TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs", "line": 263, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "localiza o teste que valida o erro quando a quantidade de argumentos é inválida", "query": "invalid argument error", "file": "args_test.go", "symbol": "rangeArgsWithInvalidCount", "line": 99, "lang": "pt", "candidates": [{"text": "File: doc/util.go\nLine 52: func (s byName) Less(i, j int) bool { return s[i].Name() < s[j].Name() }", "file": "doc/util.go", "symbol": "", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 94: type GenManHeader struct {", "file": "doc/man_docs.go", "symbol": "", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nLine 528: }", "file": "bash_completions.go", "symbol": "", "line": 528, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs_test.go\nLine 155: manPrintFlags(buf, c.Flags())", "file": "doc/man_docs_test.go", "symbol": "", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 278: # https://github.com/spf13/cobra/issues/1508", "file": "bash_completionsV2.go", "symbol": "", "line": 278, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "command_win.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 99: func rangeArgsWithInvalidCount(err error, t *testing.T) {", "file": "args_test.go", "symbol": "rangeArgsWithInvalidCount", "line": 99, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: powershell_completions_test.go\nLine 32: check(t, output, fmt.Sprintf(\"${env:%s}=0\", activeHelpVar))", "file": "powershell_completions_test.go", "symbol": "", "line": 32, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 477: return c.GenBashCompletionV2(outFile, includeDesc)", "file": "bash_completionsV2.go", "symbol": "", "line": 477, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 81: c := &cobra.Command{Use: \"do [OPTIONS] arg1 arg2\"}", "file": "doc/rest_docs_test.go", "symbol": "", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 1: module github.com/spf13/cobra", "file": "go.mod", "symbol": "", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 109: __%[1]s_debug \"Adding extra empty parameter\"", "file": "powershell_completions.go", "symbol": "", "line": 109, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 31: )", "file": "doc/man_docs.go", "symbol": "", "line": 31, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 2069: expected := strings.Join([]string{", "file": "completions_test.go", "symbol": "", "line": 2069, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions_test.go\nLine 956: \"-s\",", "file": "completions_test.go", "symbol": "", "line": 956, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completionsV2.go\nLine 358: if ((${#COMPREPLY[*]} == 1)); then", "file": "bash_completionsV2.go", "symbol": "", "line": 358, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/util.go\nLine 13: // limitations under the License.", "file": "doc/util.go", "symbol": "", "line": 13, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: shell_completions.go\nLine 30: // and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 30, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 39: subC.Flags().String(\"subonly\", \"\", \"\")", "file": "flag_groups_test.go", "symbol": "", "line": 39, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 2566: _, err := executeCommand(root, \"child\", \"-a\", \"--unknown\", \"flag\")", "file": "command_test.go", "symbol": "", "line": 2566, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 3: // Licensed under the Apache License, Version 2.0 (the \"License\");", "file": "doc/rest_docs.go", "symbol": "", "line": 3, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\nLine 128: _, err := buf.WriteTo(w)", "file": "doc/rest_docs.go", "symbol": "", "line": 128, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nLine 102: }", "file": "doc/rest_docs_test.go", "symbol": "", "line": 102, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 75: $ShellCompDirectiveError=%[4]d", "file": "powershell_completions.go", "symbol": "", "line": 75, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "localiza o teste que valida o erro quando a quantidade de argumentos é inválida", "query": "invalid argument error", "file": "args_test.go", "symbol": "rangeArgsWithInvalidCount", "line": 99, "lang": "pt", "candidates": [{"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nsibling in", "file": "flag_groups_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nsibling in", "file": "command_win.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: shell_completions.go\nMarkFlagRequired instructs the various shell completion implementations to prioritize the named flag when performing completion, and causes your command to report an error if invoked without the flag.", "file": "shell_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: fish_completions.go\nGenFishCompletion generates fish completion file and writes to the passed writer.", "file": "fish_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: args_test.go\ndefines rangeArgsWithInvalidCount", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_imports", "repo": "cobra", "task": "localiza o teste que valida o erro quando a quantidade de argumentos é inválida", "query": "invalid argument error", "file": "args_test.go", "symbol": "rangeArgsWithInvalidCount", "line": 99, "lang": "pt", "candidates": [{"text": "Import (outbound): doc/util.go -> strings", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> bytes", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> fmt", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> fmt", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> fmt", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> bytes", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): doc/util.go -> github.com/spf13/cobra", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/yaml_docs.go -> io", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> testing", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): powershell_completions.go -> bytes", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions_test.go -> context", "file": "completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions.go -> fmt", "file": "powershell_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> errors", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): fish_completions_test.go -> bytes", "file": "fish_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command_test.go -> context", "file": "command_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): powershell_completions_test.go -> bytes", "file": "powershell_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): bash_completions_test.go -> bytes", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "localiza o teste que valida o erro quando a quantidade de argumentos é inválida", "query": "invalid argument error", "file": "args_test.go", "symbol": "rangeArgsWithInvalidCount", "line": 99, "lang": "pt", "candidates": [{"text": "Next: read completions_test.go lines=2162-2185\nread output for detail", "file": "completions_test.go", "symbol": "output", "line": 2162, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=980-1003\nread CompDebugln for detail", "file": "completions.go", "symbol": "CompDebugln", "line": 980, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=604-627\nread completions for detail", "file": "completions.go", "symbol": "completions", "line": 604, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=55-78\nread noArgsWithArgs for detail", "file": "args_test.go", "symbol": "noArgsWithArgs", "line": 55, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/yaml_docs.go lines=150-173\nread result for detail", "file": "doc/yaml_docs.go", "symbol": "result", "line": 150, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read Makefile lines=26-49\nread richtest for detail", "file": "Makefile", "symbol": "richtest", "line": 26, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=169-192\nread TestMultiActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestMultiActiveHelp", "line": 169, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=70-93\nread resetCommandLineFlagSet for detail", "file": "command_test.go", "symbol": "resetCommandLineFlagSet", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=269-292\nread Context for detail", "file": "command.go", "symbol": "Context", "line": 269, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=35-58\nread expectSuccess for detail", "file": "args_test.go", "symbol": "expectSuccess", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=23-46\nread getCommand for detail", "file": "args_test.go", "symbol": "getCommand", "line": 23, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read args_test.go lines=99-122\nread rangeArgsWithInvalidCount for detail", "file": "args_test.go", "symbol": "rangeArgsWithInvalidCount", "line": 99, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read args_test.go lines=44-67\nread validOnlyWithInvalidArgs for detail", "file": "args_test.go", "symbol": "validOnlyWithInvalidArgs", "line": 44, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=632-655\nread completeRequireFlags for detail", "file": "completions.go", "symbol": "completeRequireFlags", "line": 632, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_notwin.go lines=20-43\nread preExecHookFn for detail", "file": "command_notwin.go", "symbol": "preExecHookFn", "line": 20, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read flag_groups.go lines=28-51\nread mutuallyExclusiveAnnotation for detail", "file": "flag_groups.go", "symbol": "mutuallyExclusiveAnnotation", "line": 28, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=819-842\nread childCmdArgs for detail", "file": "command_test.go", "symbol": "childCmdArgs", "line": 819, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=66-89\nread minimumNArgsWithLessArgs for detail", "file": "args_test.go", "symbol": "minimumNArgsWithLessArgs", "line": 66, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read bash_completions_test.go lines=33-56\nread check for detail", "file": "bash_completions_test.go", "symbol": "check", "line": 33, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=122-145\nread comps for detail", "file": "active_help_test.go", "symbol": "comps", "line": 122, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2899-2922\nread userComp for detail", "file": "completions_test.go", "symbol": "userComp", "line": 2899, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=547-570\nread FlagErrorFunc for detail", "file": "command.go", "symbol": "FlagErrorFunc", "line": 547, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=998-1021\nread configEnvVarSuffixDescriptions for detail", "file": "completions.go", "symbol": "configEnvVarSuffixDescriptions", "line": 998, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=465-488\nread TestGrandChildSameName for detail", "file": "command_test.go", "symbol": "TestGrandChildSameName", "line": 465, "lexical": 0.0, "target": false, "label": 0}]} {"site": "project_search", "repo": "cobra", "task": "asigna el id de grupo al comando de ayuda", "query": "help command groupid", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lang": "es", "candidates": [{"text": "File: doc/md_docs.go\nLine 132: // with custom filePrepender and linkHandler.", "file": "doc/md_docs.go", "symbol": "", "line": 132, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: args_test.go\nLine 101: t.Fatal(\"Expected an error\")", "file": "args_test.go", "symbol": "", "line": 101, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nLine 70: if _, err := os.Stat(filepath.Join(tmpdir, \"do.yaml\")); err != nil {", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 70, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_test.go\nLine 1983: rootCmd.SetHelpCommandGroupID(\"group\")", "file": "command_test.go", "symbol": "", "line": 1983, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/util.go\nLine 12: // See the License for the specific language governing permissions and", "file": "doc/util.go", "symbol": "", "line": 12, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command.go\nLine 343: func (c *Command) SetHelpCommandGroupID(groupID string) {", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: fish_completions_test.go\nLine 105: }", "file": "fish_completions_test.go", "symbol": "", "line": 105, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nLine 48: t.Fatal(err)", "file": "doc/md_docs_test.go", "symbol": "", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: active_help_test.go\nLine 137: \":0\",", "file": "active_help_test.go", "symbol": "", "line": 137, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 21: \"github.com/spf13/cobra\"", "file": "doc/man_examples_test.go", "symbol": "", "line": 21, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: powershell_completions.go\nLine 246: $CompletionText = $($comp.Name | __%[1]s_escapeStringWithSpecialChars) + $Space", "file": "powershell_completions.go", "symbol": "", "line": 246, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: go.mod\nLine 5: require (", "file": "go.mod", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 61: flagGroupsExclusive: []string{\"a b\"},", "file": "flag_groups_test.go", "symbol": "", "line": 61, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nLine 136: Run: emptyRun,", "file": "bash_completions_test.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 291: t.Fatalf(\"could not compile test program: %s\", string(buf))", "file": "cobra_test.go", "symbol": "", "line": 291, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 67: }, {", "file": "flag_groups_test.go", "symbol": "", "line": 67, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nLine 733: // In that case, there is no value following it, so we are not really doing flag completion.", "file": "completions.go", "symbol": "", "line": 733, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nLine 58: return err", "file": "doc/man_docs.go", "symbol": "", "line": 58, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 29: }", "file": "doc/man_examples_test.go", "symbol": "", "line": 29, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: command_win.go\nLine 34: time.Sleep(MousetrapDisplayDuration)", "file": "command_win.go", "symbol": "", "line": 34, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_examples_test.go\nLine 5: // You may obtain a copy of the License at", "file": "doc/man_examples_test.go", "symbol": "", "line": 5, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: flag_groups_test.go\nLine 85: args: []string{\"--c=foo\", \"--f=foo\"},", "file": "flag_groups_test.go", "symbol": "", "line": 85, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: fish_completions_test.go\nLine 136: }", "file": "fish_completions_test.go", "symbol": "", "line": 136, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nLine 289: buf, err := exec.Command(\"go\", \"build\", filename).CombinedOutput()", "file": "cobra_test.go", "symbol": "", "line": 289, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_neighbors", "repo": "cobra", "task": "asigna el id de grupo al comando de ayuda", "query": "help command groupid", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lang": "es", "candidates": [{"text": "File: doc/util.go\nTest to see if we have a reason to print See Also information in docs Basically this is a test for a parent command or a subcommand which is both not deprecated and not the autogenerated help command.", "file": "doc/util.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: cobra_test.go\nreachable. Since cobra can use text/template templates this test checks that in its default configuration that code path can be proven to be unreachable by the linker. See also: https://github.com/sp", "file": "cobra_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: bash_completions.go\nprepareCustomAnnotationsForFlags setup annotations for go completions for registered flags", "file": "bash_completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: Makefile\nsibling in", "file": "Makefile", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_examples_test.go\nelsewhere in the tree", "file": "doc/man_examples_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs_test.go\nelsewhere in the tree", "file": "doc/md_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs_test.go\nelsewhere in the tree", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/md_docs.go\nGenMarkdown creates markdown output.", "file": "doc/md_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs.go\nGenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd", "file": "doc/yaml_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/man_docs.go\nGenManTree will generate a man page for this command and all descendants in the directory given. The header may be nil. This function may not work correctly if your command names have `-` in them. If ", "file": "doc/man_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/rest_docs.go\ndefaultLinkHandler for default ReST hyperlink markup", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/cmd_test.go\nelsewhere in the tree", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: doc/yaml_docs_test.go\nelsewhere in the tree", "file": "doc/yaml_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: bash_completions_test.go\nWorld worst custom function, just keep telling you to enter hello!", "file": "bash_completions_test.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: doc/man_docs_test.go\nelsewhere in the tree", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "File: completions.go\nShellCompRequestCmd is the name of the hidden command that is used to request completion results from the program. It is used by the shell completion scripts.", "file": "completions.go", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}, {"text": "File: command.go\nFParseErrWhitelist configures Flag parse errors to be ignored", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "File: go.mod\nsibling in", "file": "go.mod", "symbol": "", "line": 0, "lexical": 2.0, "target": false, "label": 2}]} {"site": "summarize_imports", "repo": "cobra", "task": "asigna el id de grupo al comando de ayuda", "query": "help command groupid", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lang": "es", "candidates": [{"text": "Import (outbound): doc/man_docs_test.go -> bytes", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): completions.go -> os", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> bytes", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): zsh_completions.go -> fmt", "file": "zsh_completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> io", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> bytes", "file": "command.go", "symbol": "", "line": 0, "lexical": 4.0, "target": true, "label": 4}, {"text": "Import (outbound): cobra.go -> fmt", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> strings", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> testing", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): args_test.go -> fmt", "file": "args_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> path/filepath", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> errors", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs_test.go -> bytes", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/man_docs_test.go -> bufio", "file": "doc/man_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/cmd_test.go -> strings", "file": "doc/cmd_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> os", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): doc/rest_docs.go -> bytes", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs.go -> fmt", "file": "doc/rest_docs.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): doc/rest_docs_test.go -> os", "file": "doc/rest_docs_test.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> sort", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): command.go -> context", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): completions.go -> fmt", "file": "completions.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}, {"text": "Import (outbound): command.go -> fmt", "file": "command.go", "symbol": "", "line": 0, "lexical": 3.0, "target": false, "label": 3}, {"text": "Import (outbound): cobra.go -> io", "file": "cobra.go", "symbol": "", "line": 0, "lexical": 0.0, "target": false, "label": 0}]} {"site": "summarize_next_actions", "repo": "cobra", "task": "asigna el id de grupo al comando de ayuda", "query": "help command groupid", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lang": "es", "candidates": [{"text": "Next: read args_test.go lines=321-344\nread TestExactArgs for detail", "file": "args_test.go", "symbol": "TestExactArgs", "line": 321, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=52-75\nread Error for detail", "file": "completions.go", "symbol": "Error", "line": 52, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command_test.go lines=334-357\nread TestAliasPrefixMatching for detail", "file": "command_test.go", "symbol": "TestAliasPrefixMatching", "line": 334, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=42-65\nread FParseErrWhitelist for detail", "file": "command.go", "symbol": "FParseErrWhitelist", "line": 42, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=111-134\nread hasAllFlags for detail", "file": "flag_groups.go", "symbol": "hasAllFlags", "line": 111, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=37-60\nread helpFlagName for detail", "file": "command.go", "symbol": "helpFlagName", "line": 37, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read completions.go lines=1001-1024\nread configEnvVarPrefixSubstRegexp for detail", "file": "completions.go", "symbol": "configEnvVarPrefixSubstRegexp", "line": 1001, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=676-699\nread customMultiString for detail", "file": "completions_test.go", "symbol": "customMultiString", "line": 676, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2280-2303\nread TestValidArgsNotValidArgsFunc for detail", "file": "completions_test.go", "symbol": "TestValidArgsNotValidArgsFunc", "line": 2280, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read args_test.go lines=155-178\nread TestOnlyValidArgs for detail", "file": "args_test.go", "symbol": "TestOnlyValidArgs", "line": 155, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read go.mod lines=1-24\nread github.com/spf13/cobra for detail", "file": "go.mod", "symbol": "github.com/spf13/cobra", "line": 1, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=343-366\nread SetHelpCommandGroupID for detail", "file": "command.go", "symbol": "SetHelpCommandGroupID", "line": 343, "lexical": 4.0, "target": true, "label": 4}, {"text": "Next: read doc/man_docs.go lines=84-107\nread GenManTreeOptions for detail", "file": "doc/man_docs.go", "symbol": "GenManTreeOptions", "line": 84, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=34-57\nread FlagSetByCobraAnnotation for detail", "file": "command.go", "symbol": "FlagSetByCobraAnnotation", "line": 34, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/util.go lines=48-71\nread byName for detail", "file": "doc/util.go", "symbol": "byName", "line": 48, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions_test.go lines=2916-2939\nread _ for detail", "file": "completions_test.go", "symbol": "_", "line": 2916, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=35-58\nread CommandDisplayNameAnnotation for detail", "file": "command.go", "symbol": "CommandDisplayNameAnnotation", "line": 35, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read doc/man_docs.go lines=159-182\nread manPrintFlags for detail", "file": "doc/man_docs.go", "symbol": "manPrintFlags", "line": 159, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read cobra.go lines=81-104\nread MousetrapDisplayDuration for detail", "file": "cobra.go", "symbol": "MousetrapDisplayDuration", "line": 81, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read doc/man_docs.go lines=94-117\nread GenManHeader for detail", "file": "doc/man_docs.go", "symbol": "GenManHeader", "line": 94, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read completions.go lines=430-453\nread directive for detail", "file": "completions.go", "symbol": "directive", "line": 430, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read active_help_test.go lines=266-289\nread TestConfigActiveHelp for detail", "file": "active_help_test.go", "symbol": "TestConfigActiveHelp", "line": 266, "lexical": 0.0, "target": false, "label": 0}, {"text": "Next: read command.go lines=38-61\nread helpCommandName for detail", "file": "command.go", "symbol": "helpCommandName", "line": 38, "lexical": 2.0, "target": false, "label": 2}, {"text": "Next: read flag_groups.go lines=192-215\nread set for detail", "file": "flag_groups.go", "symbol": "set", "line": 192, "lexical": 0.0, "target": false, "label": 0}]}