Search is not available for this dataset
hash
string
author
int32
committer_date
string
timezone
int64
parents
string
message
string
changes
string
language
string
a7aaa7cfaca5ed151b2fcabb14e7efd8b466e4ef
663
2020-05-07 19:02:17-06:00
14,400
['f8fdd173832c65ef5c7d97a8bccb32f1ba567038']
replace labeler action with periodic-labeler (#1097) * replace labeler action with periodic-labeler this replaces the default labeler as it does not label PRs from forks properly. with periodic-labeler it should apply labels on a cron to any PR and resolve the below bug: https://github.com/spf13/cobra/issue...
[{'old_path': '.github/workflows/label.yml', 'new_path': None, 'type': <ModificationType.DELETE: 4>, 'diff': '@@ -1,19 +0,0 @@\n-# This workflow will triage pull requests and apply a label based on the\n-# paths that are modified in the pull request.\n-#\n-# To use this workflow, you will need to set up a .github/label...
Go
aa5badda62c6d673904230b93555ec2e960fa487
607
2020-05-07 19:13:20-06:00
-7,200
['a7aaa7cfaca5ed151b2fcabb14e7efd8b466e4ef']
Metal Stack CLI is using cobra as well (#1094)
[{'old_path': 'projects_using_cobra.md', 'new_path': 'projects_using_cobra.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -14,6 +14,7 @@\n - [Kubernetes](http://kubernetes.io/)\n - [Linkerd](https://linkerd.io/)\n - [Mattermost-server](https://github.com/mattermost/mattermost-server)\n+- [Metal Stack CLI](https...
Go
5155946348eed0f79a76f7743407c0c933e3b5f0
449
2020-05-07 19:18:16-06:00
14,400
['aa5badda62c6d673904230b93555ec2e960fa487']
Ignore required flags when DisableFlagParsing (#1095) When a command request to DisableFlagParsing, it should not fail due to a missing required flag. In fact, such a check will always fail since flags weren't parsed! Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
[{'old_path': 'command.go', 'new_path': 'command.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -979,6 +979,10 @@ func (c *Command) ValidateArgs(args []string) error {\n }\n \n func (c *Command) validateRequiredFlags() error {\n+\tif c.DisableFlagParsing {\n+\t\treturn nil\n+\t}\n+\n \tflags := c.Flags()\n \tmi...
Go
94a87a7b83bda98e918cf7a4793f41372a5e4139
397
2020-05-08 09:53:33-06:00
21,600
['5155946348eed0f79a76f7743407c0c933e3b5f0']
disable periodic labeler (#1112)
[{'old_path': '.github/labeler.yml', 'new_path': None, 'type': <ModificationType.DELETE: 4>, 'diff': '@@ -1,12 +0,0 @@\n-# changes to documentation\n-"area/documentation": doc/**/*\n-\n-# changes to the core lib package\n-"area/lib": ./*.go\n-\n-# changes to the zsh completion\n-"area/*sh completion":\n- - ./zsh_*\n- ...
Go
1d3ac910d4161a1485f9352a0b9750e2e0ae6248
329
2020-05-29 10:17:41-06:00
-19,800
['94a87a7b83bda98e918cf7a4793f41372a5e4139']
Update projects_using_cobra.md (#1113) * Removing deprecated projects * Update etcd website
[{'old_path': 'projects_using_cobra.md', 'new_path': 'projects_using_cobra.md', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -4,6 +4,7 @@\n - [CockroachDB](http://www.cockroachlabs.com/)\n - [Delve](https://github.com/derekparker/delve)\n - [Docker (distribution)](https://github.com/docker/distribution)\n+- [Etcd]...
Go
ed7b60e2987d2cd54d6a391379e33effdacdadf9
52
2020-06-15 16:51:03-06:00
25,200
['1d3ac910d4161a1485f9352a0b9750e2e0ae6248']
YAML documentation contains "Usage" (#1037)
[{'old_path': 'doc/yaml_docs.go', 'new_path': 'doc/yaml_docs.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -37,6 +37,7 @@ type cmdDoc struct {\n \tName string\n \tSynopsis string `yaml:",omitempty"`\n \tDescription string `yaml:",omitempty"`\n+\tUsage string `...
Go
04318720db1743b8488c86b2f7dca6d9663cb2f2
449
2020-06-16 14:49:26-06:00
14,400
['ed7b60e2987d2cd54d6a391379e33effdacdadf9']
Add completion for help command (#1136) * Don't exclude 'help' from bash completions Fixes #1000. * Provide completion for the help command 1- Show 'help' as a possible completion 2- Provide completions for the help command itself Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca> Co-authored-by: Z...
[{'old_path': 'bash_completions.go', 'new_path': 'bash_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -389,7 +389,7 @@ fi\n func writeCommands(buf *bytes.Buffer, cmd *Command) {\n \tbuf.WriteString(" commands=()\\n")\n \tfor _, c := range cmd.Commands() {\n-\t\tif !c.IsAvailableCommand() || c == ...
Go
2c5a0d300f8ba1cd142776508519aba999b5e77f
449
2020-06-29 13:52:14-06:00
14,400
['04318720db1743b8488c86b2f7dca6d9663cb2f2']
Extend Go completions and revamp zsh comp (#1070) (#1070) Replace the current Zsh completion with a Zsh completion solution based on Go completions. This allows to support custom completions (based on Go completions), but also to standardize the behavior of completion across all shells. Also, add support to Go c...
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -28,8 +28,7 @@ name a few. [This list](./projects_using_cobra.md) contains a more extensive lis\n * [PreRun and PostRun Hooks](#prerun-and-postrun-hooks)\n * [Suggestions when "unknown command" happens](#suggestion...
Go
207dc47664b44b0a50993a2d81d053fd9ad44ae3
108
2020-07-10 08:32:03-04:00
-3,600
['2c5a0d300f8ba1cd142776508519aba999b5e77f']
Close #1152 by upgrading yaml.v2 to v2.3.0 (#1153)
[{'old_path': 'go.mod', 'new_path': 'go.mod', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -8,5 +8,5 @@ require (\n \tgithub.com/mitchellh/go-homedir v1.1.0\n \tgithub.com/spf13/pflag v1.0.3\n \tgithub.com/spf13/viper v1.4.0\n-\tgopkg.in/yaml.v2 v2.2.2\n+\tgopkg.in/yaml.v2 v2.3.0\n )\n'}, {'old_path': 'go.sum', 'n...
Go
5d5290759ae9d4595d9563f4f952103199207d0f
140
2020-07-10 14:06:59-06:00
-7,200
['207dc47664b44b0a50993a2d81d053fd9ad44ae3']
Update README.md (#1154) I found this through a comment on an issue and thought this might save someone some time looking through the code. fixes #1148
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -312,6 +312,37 @@ var versionCmd = &cobra.Command{\n }\n ```\n \n+### Returning and handling errors\n+\n+If you wish to return an error to the caller of a command, `RunE` can be used.\n+\n+```go\n+package cmd\n+\n+impo...
Go
675ae5f5a98cc705a6d54f4c487ab81230604137
449
2020-07-10 14:12:46-06:00
14,400
['5d5290759ae9d4595d9563f4f952103199207d0f']
Fish does not accept - or : in vars (#1122) Fixes #1121. This is for programs that may contain a : or - in their name. Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
[{'old_path': 'custom_completions_test.go', 'new_path': 'custom_completions_test.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -1407,39 +1407,6 @@ func TestCompleteCmdInBashScript(t *testing.T) {\n \tcheck(t, output, ShellCompNoDescRequestCmd)\n }\n \n-func TestCompleteNoDesCmdInFishScript(t *testing.T) {\n-\t...
Go
884edc58ad08083e6c9a505041695aa2c3ca2d7a
41
2020-07-13 11:55:00-06:00
-7,200
['675ae5f5a98cc705a6d54f4c487ab81230604137']
update viper and pflag (#1012)
[{'old_path': 'go.mod', 'new_path': 'go.mod', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -6,7 +6,7 @@ require (\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0\n \tgithub.com/inconshreveable/mousetrap v1.0.0\n \tgithub.com/mitchellh/go-homedir v1.1.0\n-\tgithub.com/spf13/pflag v1.0.3\n-\tgithub.com/spf13/viper v1.4....
Go
b95db644ed1c0e183a90d8509ef2f9a5d51cc29b
579
2020-07-14 21:12:39-06:00
-36,000
['884edc58ad08083e6c9a505041695aa2c3ca2d7a']
Add golangci-lint in project using cobra (#1150)
[{'old_path': 'projects_using_cobra.md', 'new_path': 'projects_using_cobra.md', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -8,6 +8,7 @@\n - [Gardener](https://github.com/gardener/gardenctl)\n - [Giant Swarm's gsctl](https://github.com/giantswarm/gsctl)\n - [Github CLI](https://github.com/cli/cli)\n+- [Golangci-l...
Go
19e41cf081df9bf9dde5cffa0090e718c3fdc8af
280
2020-07-17 15:48:45-06:00
-25,200
['b95db644ed1c0e183a90d8509ef2f9a5d51cc29b']
Adding werf to projects using cobra (#1163) werf is a CI/CD & GitOps tool. Cobra is used in [werf's CLI](https://github.com/werf/werf/blob/master/cmd/werf/main.go).
[{'old_path': 'projects_using_cobra.md', 'new_path': 'projects_using_cobra.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -25,3 +25,4 @@\n - [Prototool](https://github.com/uber/prototool)\n - [Rclone](https://rclone.org/)\n - [Skaffold](https://skaffold.dev/)\n+- [Werf](https://werf.io/)\n'}]
Go
c6fe2d4df8106986f3013bb70f1ffb062faadd6a
449
2020-07-19 16:02:46-06:00
14,400
['19e41cf081df9bf9dde5cffa0090e718c3fdc8af']
Improve zsh completion documentation (#1169) Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
[{'old_path': 'shell_completions.md', 'new_path': 'shell_completions.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -33,11 +33,16 @@ MacOS:\n \n Zsh:\n \n-$ source <(yourprogram completion zsh)\n+# If shell completion is not already enabled in your environment you will need\n+# to enable it. You can execute th...
Go
0e27f22f6ef7d1b667aa5a105c48f5fe60332dfd
654
2020-07-31 09:53:44-06:00
21,600
['c6fe2d4df8106986f3013bb70f1ffb062faadd6a']
Add slack badge to point to cobra slack channel (#1181)
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -9,6 +9,7 @@ name a few. [This list](./projects_using_cobra.md) contains a more extensive lis\n [![Build Status](https://travis-ci.org/spf13/cobra.svg "Travis CI status")](https://travis-ci.org/spf13/cobra)\n [![GoDoc]...
Go
96dc55577faf76629d3416fda5bd3a4e72e9db77
294
2020-08-05 09:36:41-06:00
-10,800
['0e27f22f6ef7d1b667aa5a105c48f5fe60332dfd']
Update projects_using_cobra.md (#1147) Adds git-bump, gh-labels, and random to list of projects
[{'old_path': 'projects_using_cobra.md', 'new_path': 'projects_using_cobra.md', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -7,7 +7,9 @@\n - [Etcd](https://etcd.io/)\n - [Gardener](https://github.com/gardener/gardenctl)\n - [Giant Swarm's gsctl](https://github.com/giantswarm/gsctl)\n+- [Git Bump](https://github.c...
Go
a738b60e5251bd384782aa2d9911537ca097ba07
654
2020-08-10 22:14:21-06:00
21,600
['96dc55577faf76629d3416fda5bd3a4e72e9db77']
Add CONTRIBUTING.md (#1183)
[{'old_path': None, 'new_path': 'CONTRIBUTING.md', 'type': <ModificationType.ADD: 1>, 'diff': "@@ -0,0 +1,50 @@\n+# Contributing to Cobra\n+\n+Thank you so much for contributing to Cobra. We appreciate your time and help.\n+Here are some guidelines to help you get started.\n+\n+## Code of Conduct\n+\n+Be kind and respe...
Go
a0b86e58f8f908b6f14150a3c1c79e3fd5696808
302
2020-08-10 22:17:29-06:00
-28,800
['a738b60e5251bd384782aa2d9911537ca097ba07']
Correct a typo in doc/util.go (#1184)
[{'old_path': 'doc/util.go', 'new_path': 'doc/util.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -20,7 +20,7 @@ import (\n )\n \n // Test to see if we have a reason to print See Also information in docs\n-// Basically this is a test for a parent commend or a subcommand which is\n+// Basically this is a test fo...
Go
5cdf8e26ba7046dd743463f60102ab52602c6428
483
2020-08-11 08:39:51-04:00
-10,800
['a0b86e58f8f908b6f14150a3c1c79e3fd5696808']
Fix typo (#1187)
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -334,10 +334,10 @@ var tryCmd = &cobra.Command{\n Use: "try",\n Short: "Try and possibly fail at something",\n RunE: func(cmd *cobra.Command, args []string) error {\n- err := someFunc()\n- if err := nil {...
Go
81e0311edd0bf6b4ff2c563005a646f6b286d059
217
2020-08-15 10:44:17-04:00
-7,200
['5cdf8e26ba7046dd743463f60102ab52602c6428']
modules: add a secondary go.mod to segregate CLI dependencies (#1139)
[{'old_path': None, 'new_path': 'cobra/go.mod', 'type': <ModificationType.ADD: 1>, 'diff': '@@ -0,0 +1,11 @@\n+module github.com/spf13/cobra/cobra\n+\n+go 1.12\n+\n+require (\n+\tgithub.com/mitchellh/go-homedir v1.1.0\n+\tgithub.com/spf13/cobra v0.0.0\n+\tgithub.com/spf13/viper v1.7.0\n+)\n+\n+replace github.com/spf13/...
Go
8cfa4b4acf63ab83334178f96ac694d3ea24e231
217
2020-08-18 14:14:09-06:00
-7,200
['81e0311edd0bf6b4ff2c563005a646f6b286d059']
Add documentation for Use (#1188)
[{'old_path': 'command.go', 'new_path': 'command.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -37,6 +37,14 @@ type FParseErrWhitelist flag.ParseErrorsWhitelist\n // definition to ensure usability.\n type Command struct {\n \t// Use is the one-line usage message.\n+\t// Recommended syntax is as follow:\n+\t// ...
Go
9ed1d713d619c428c8a8adcd13667d6b3f54b247
397
2020-08-23 13:45:41-04:00
21,600
['8cfa4b4acf63ab83334178f96ac694d3ea24e231']
bugfix/cli: Temporary fix for go get on cobra cli (#1200) PR #1139 introduced a complexity that will have to be taken into account as we figure out our release pipeline. This fix pins to cobrav1.0.0 as a temporary workaround. fixes: #1191
[{'old_path': 'cobra/go.mod', 'new_path': 'cobra/go.mod', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -4,7 +4,7 @@ go 1.12\n \n require (\n \tgithub.com/mitchellh/go-homedir v1.1.0\n-\tgithub.com/spf13/cobra v0.0.0\n+\tgithub.com/spf13/cobra v1.0.0\n \tgithub.com/spf13/viper v1.7.0\n )\n \n'}]
Go
02a0d2fbc9e61d26f8e5979749f6030964a55a3e
450
2020-08-26 09:18:51-06:00
-10,800
['9ed1d713d619c428c8a8adcd13667d6b3f54b247']
doc: GenMarkdown skip Synopsis on empty long cmd (#1207) This patch modifies the GenMarkdownCustom to skip writing a Synopsis header with the `cmd.Short` duplicated both before and after the header. Instead, it only writes the `### Synopsis` header and the paragraph when a `cmd.Long` has some kind of content in i...
[{'old_path': 'doc/cmd_test.go', 'new_path': 'doc/cmd_test.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -27,7 +27,7 @@ func init() {\n \tprintCmd.Flags().BoolP("boolthree", "b", true, "help message for flag boolthree")\n \n \techoCmd.AddCommand(timesCmd, echoSubCmd, deprecatedCmd)\n-\trootCmd.AddCommand(print...
Go
50258f15eb8a64e95e5d9ec571f17e550e37fa69
55
2020-09-09 09:34:51-06:00
-7,200
['02a0d2fbc9e61d26f8e5979749f6030964a55a3e']
Complete subcommands when TraverseChildren is set (#1171) * Complete subcommands when TraverseChildren is true in custom completion The current custom completion logic does not complete subcommands when a local flag is set. This is good unless TraverseChildren is set to true where local flags can be set on paren...
[{'old_path': 'bash_completions.go', 'new_path': 'bash_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -495,12 +495,14 @@ func writeFlag(buf *bytes.Buffer, flag *pflag.Flag, cmd *Command) {\n \n func writeLocalNonPersistentFlag(buf *bytes.Buffer, flag *pflag.Flag) {\n \tname := flag.Name\n-\tformat :...
Go
8a63648dd905e5c96bee06e6851a894fc75aa058
55
2020-09-09 11:27:42-06:00
-7,200
['50258f15eb8a64e95e5d9ec571f17e550e37fa69']
Handle linebreaks in custom completions. (#1162) If a command/flag description contains a linebreak then the shell completion script will interpret this as new command/flag. To fix this we only use the first line from the description in the output. Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
[{'old_path': 'custom_completions.go', 'new_path': 'custom_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -132,6 +132,12 @@ func (c *Command) initCompleteCmd(args []string) {\n \t\t\t\t\tcomp = strings.Split(comp, "\\t")[0]\n \t\t\t\t}\n \n+\t\t\t\t// Make sure we only write the first line to the ou...
Go
6c06523c96f18046b968374723fcb4950dfd127e
31
2020-09-15 08:44:32-06:00
-7,200
['8a63648dd905e5c96bee06e6851a894fc75aa058']
add arduino-cli to projects using cobra (#1117) * add arduino-cli to projects using cobra
[{'old_path': 'projects_using_cobra.md', 'new_path': 'projects_using_cobra.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -1,5 +1,6 @@\n ## Projects using Cobra\n \n+- [Arduino CLI](https://github.com/arduino/arduino-cli)\n - [Bleve](http://www.blevesearch.com/)\n - [CockroachDB](http://www.cockroachlabs.com/)\...
Go
2a8d0f327d7abf52c256b17aa998290e1e5bd011
4
2020-09-15 08:45:35-06:00
10,800
['6c06523c96f18046b968374723fcb4950dfd127e']
Adding Kool to list of projects using cobra (#1224)
[{'old_path': 'projects_using_cobra.md', 'new_path': 'projects_using_cobra.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -16,6 +16,7 @@\n - [Helm](https://helm.sh)\n - [Hugo](https://gohugo.io)\n - [Istio](https://istio.io)\n+- [Kool](https://github.com/kool-dev/kool)\n - [Kubernetes](http://kubernetes.io/)\n ...
Go
8a39cb261478a2bedc5759889215a788eadc1d7d
214
2020-09-16 09:26:27-06:00
-7,200
['2a8d0f327d7abf52c256b17aa998290e1e5bd011']
Bug fix in README (#1199) Bug fixed in `README.md`.
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -108,7 +108,7 @@ Using Cobra is easy. First, use `go get` to install the latest version\n of the library. This command will install the `cobra` generator executable\n along with the library and its dependencies:\n \n- ...
Go
7f8e83d9366ab8e96959f9c3fbdf3507d4b39c3b
261
2020-09-16 09:27:58-06:00
25,200
['8a39cb261478a2bedc5759889215a788eadc1d7d']
Modifying "snake-case" to "kebab-case" for clarity. (#1196)
[{'old_path': 'cobra/README.md', 'new_path': 'cobra/README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -52,7 +52,7 @@ cobra add config\n cobra add create -p 'configCmd'\n ```\n \n-*Note: Use camelCase (not snake_case/snake-case) for command names.\n+*Note: Use camelCase (not snake_case/kebab-case) for comman...
Go
0bc8bfbe596beeea88b39beb0fca86b3d7d10de6
385
2020-09-23 16:26:21-06:00
21,600
['7f8e83d9366ab8e96959f9c3fbdf3507d4b39c3b']
Remove secondary go mod to prevent broken `go get` (#1233)
[{'old_path': 'cobra/go.mod', 'new_path': None, 'type': <ModificationType.DELETE: 4>, 'diff': '@@ -1,11 +0,0 @@\n-module github.com/spf13/cobra/cobra\n-\n-go 1.12\n-\n-require (\n-\tgithub.com/mitchellh/go-homedir v1.1.0\n-\tgithub.com/spf13/cobra v1.0.0\n-\tgithub.com/spf13/viper v1.7.0\n-)\n-\n-replace github.com/spf...
Go
40d34bca1bffe2f5e84b18d7fd94d5b3c02275a6
176
2020-10-01 09:28:00-06:00
-7,200
['0bc8bfbe596beeea88b39beb0fca86b3d7d10de6']
Fix stderr printing functions (#894) * Fix stderr printing functions Follow-up of #822 * Errors go to stderr as per POSIX * use PrintErrf() instead of extra call to Sprintf() * Error messages should always be printed to os.Stderr. * add test case for Print* redirection Thanks: @bukowa for the patch.
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -177,7 +177,7 @@ var rootCmd = &cobra.Command{\n \n func Execute() {\n if err := rootCmd.Execute(); err != nil {\n- fmt.Println(err)\n+ fmt.Fprintln(os.Stderr, err)\n os.Exit(1)\n }\n }\n'}, {'old_path': ...
Go
f64bfa1e08c3199f3e740b5f96a9dd07b727c368
322
2020-10-03 19:25:07-06:00
-32,400
['40d34bca1bffe2f5e84b18d7fd94d5b3c02275a6']
Fix zsh completion not working on the first time in a shell session (#1237) The zsh completion script output by cobra is a stub completion function which replaces itself with the actual completion function. This technique enables cobra to define helper functions without splitting the completion script into multiple...
[{'old_path': 'zsh_completions.go', 'new_path': 'zsh_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -229,6 +229,11 @@ _%[1]s()\n _describe "completions" completions $(echo $flagPrefix)\n fi\n }\n+\n+# don\'t run the completion function when being source-ed or eval-ed\n+if [ "$funcstack[1...
Go
b97b5ead31f7d34f764ac8666e40c214bb8e06dc
457
2020-10-05 21:54:06-06:00
-7,200
['f64bfa1e08c3199f3e740b5f96a9dd07b727c368']
fix: fish output redirection (#1247) Signed-off-by: Matej Vasek <mvasek@redhat.com>
[{'old_path': 'fish_completions.go', 'new_path': 'fish_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -164,7 +164,8 @@ end\n # so we can properly delete any completions provided by another script.\n # The space after the the program name is essential to trigger completion for the program\n # and not...
Go
723d0c36fc2f1c8d4cc49180d3875534a7229820
176
2020-10-14 09:51:35-06:00
-3,600
['b97b5ead31f7d34f764ac8666e40c214bb8e06dc']
Add tendermint and cosmos-sdk to the list of projects using cobra (#855) * Add tendermint and cosmos-sdk to the list of projects using cobra Co-authored-by: Steve Francia <steve.francia@gmail.com>
[{'old_path': 'projects_using_cobra.md', 'new_path': 'projects_using_cobra.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -3,6 +3,7 @@\n - [Arduino CLI](https://github.com/arduino/arduino-cli)\n - [Bleve](http://www.blevesearch.com/)\n - [CockroachDB](http://www.cockroachlabs.com/)\n+- [Cosmos SDK](https://gith...
Go
142dfb15a8b9122dd6543adc769cbf59b976d793
164
2020-10-14 09:53:09-06:00
21,600
['723d0c36fc2f1c8d4cc49180d3875534a7229820']
Add example for making persistent flags required (#1135)
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -419,6 +419,12 @@ rootCmd.Flags().StringVarP(&Region, "region", "r", "", "AWS region (required)")\n rootCmd.MarkFlagRequired("region")\n ```\n \n+Or, for persistent flags:\n+```go\n+rootCmd.PersistentFlags().StringVarP...
Go
f32f4ef15ba84d01a8672ca8402be5d7695054f8
449
2020-10-18 12:50:48-06:00
14,400
['142dfb15a8b9122dd6543adc769cbf59b976d793']
Don't use yaml.v2 2.3.0 which has a breaking change (#1259) yaml.v2 contains a breaking change from https://github.com/go-yaml/yaml/pull/571 yaml.v2 2.2.8 does not have that change and also addresses the CVE that was behind the move to yaml.v2 2.3.0. This commit reverts to using yaml.v2 2.2.8 Signed-off-by: ...
[{'old_path': 'go.mod', 'new_path': 'go.mod', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -8,5 +8,5 @@ require (\n \tgithub.com/mitchellh/go-homedir v1.1.0\n \tgithub.com/spf13/pflag v1.0.5\n \tgithub.com/spf13/viper v1.7.0\n-\tgopkg.in/yaml.v2 v2.3.0\n+\tgopkg.in/yaml.v2 v2.2.8\n )\n'}, {'old_path': 'go.sum', 'n...
Go
86f8bfd7fef868a174e1b606783bd7f5c82ddf8f
578
2020-10-18 12:59:26-06:00
-7,200
['f32f4ef15ba84d01a8672ca8402be5d7695054f8']
fix manpage building with new go-md2man (#1255) This addresses #1049 by changing the format of the generated Markdown input.
[{'old_path': 'doc/man_docs.go', 'new_path': 'doc/man_docs.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -145,9 +145,7 @@ func manPreamble(buf *bytes.Buffer, header *GenManHeader, cmd *cobra.Command, da\n \t\tdescription = cmd.Short\n \t}\n \n-\tbuf.WriteString(fmt.Sprintf(`%% %s(%s)%s\n-%% %s\n-%% %s\n+\tbuf....
Go
08c51e585ca78e4b9408ae034d0cdacdd81aad41
648
2020-11-09 16:46:15-07:00
-3,600
['86f8bfd7fef868a174e1b606783bd7f5c82ddf8f']
Add ORY Hydra & Kratos to projects_using_cobra.md (#1273) * Add ORY Hydra & Kratos to projects_using_cobra.md * fix: alphabetical order my bad! * fix: ORY to Ory I think now it should be good, sorry for the confusion!
[{'old_path': 'projects_using_cobra.md', 'new_path': 'projects_using_cobra.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -25,6 +25,8 @@\n - [Moby (former Docker)](https://github.com/moby/moby)\n - [Nanobox](https://github.com/nanobox-io/nanobox)/[Nanopack](https://github.com/nanopack)\n - [OpenShift](https://w...
Go
39b5a91b209824d527abd198284e1c7f3e82e526
45
2020-12-04 12:15:09-07:00
18,000
['08c51e585ca78e4b9408ae034d0cdacdd81aad41']
README.md Readability Improvements (#1228) I made some small changes to the README.md file to enhance its readability.
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -62,8 +62,8 @@ Cobra is built on a structure of commands, arguments & flags.\n \n **Commands** represent actions, **Args** are things and **Flags** are modifiers for those actions.\n \n-The best applications will read ...
Go
7df62f7668c7fbeafd6dbb45ad0294f4ea08c0ec
506
2020-12-04 12:34:11-07:00
-32,400
['39b5a91b209824d527abd198284e1c7f3e82e526']
fix typos (#1274)
[{'old_path': 'command.go', 'new_path': 'command.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -964,13 +964,13 @@ func (c *Command) ExecuteC() (cmd *Command, err error) {\n \t\t\treturn cmd, nil\n \t\t}\n \n-\t\t// If root command has SilentErrors flagged,\n+\t\t// If root command has SilenceErrors flagged,\n ...
Go
471c9ac367820b3239e22f9379ad0b1f5f8a84a3
391
2020-12-29 07:39:22-07:00
18,000
['7df62f7668c7fbeafd6dbb45ad0294f4ea08c0ec']
Add the new Twitch CLI to to projects_using_cobra.md (#1301)
[{'old_path': 'projects_using_cobra.md', 'new_path': 'projects_using_cobra.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -34,4 +34,5 @@\n - [Rclone](https://rclone.org/)\n - [Skaffold](https://skaffold.dev/)\n - [Tendermint](https://github.com/tendermint/tendermint)\n+- [Twitch CLI](https://github.com/twitchde...
Go
a4ab3fa09e3d6c4ac3fb7deece97a910957305ab
55
2020-12-29 07:57:32-07:00
-3,600
['471c9ac367820b3239e22f9379ad0b1f5f8a84a3']
powershell completion with custom comp (#1208) The current powershell completion is not very capable. Let's port it to the go custom completion logic to have a unified experience accross all shells. Powershell supports three different completion modes - TabCompleteNext (default windows style - on each key pr...
[{'old_path': 'powershell_completions.go', 'new_path': 'powershell_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -1,6 +1,3 @@\n-// PowerShell completions are based on the amazing work from clap:\n-// https://github.com/clap-rs/clap/blob/3294d18efe5f264d12c9035f404c7d189d4824e1/src/completions/power...
Go
4384b91fb4f13b1a969bce056c81ef9c128e534a
464
2021-01-16 20:41:43-05:00
28,800
['a4ab3fa09e3d6c4ac3fb7deece97a910957305ab']
Bump license year to 2021 in golden files (#1309) * Update main.go.golden * Update root.go.golden * Update test.go.golden
[{'old_path': 'cobra/cmd/testdata/main.go.golden', 'new_path': 'cobra/cmd/testdata/main.go.golden', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -1,5 +1,5 @@\n /*\n-Copyright © 2020 NAME HERE <EMAIL ADDRESS>\n+Copyright © 2021 NAME HERE <EMAIL ADDRESS>\n \n Licensed under the Apache License, Version 2.0 (the "Lice...
Go
23a6174c7f9d0c64a48e634054bdf6886fb7fbba
17
2021-01-20 20:33:16-07:00
0
['4384b91fb4f13b1a969bce056c81ef9c128e534a']
Add the ability to specify a filePostpender in GenMarkdownTreeCustom (#1270)
[{'old_path': 'doc/md_docs.go', 'new_path': 'doc/md_docs.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -122,17 +122,17 @@ func GenMarkdownCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string)\n func GenMarkdownTree(cmd *cobra.Command, dir string) error {\n \tidentity := func(s string) string { retur...
Go
9df156e6d11ee27303bc69593f0f1e6de84693ec
397
2021-01-26 10:55:24-07:00
25,200
['ff416ad438f79ee925809ff5e80fb796e23cb24b']
Cobra User Contract (#1292) * Add some guiding principals to the project. Establish an understanding between user and maintainer. Set a goal for releases, security fixes and bug patches. * fix grammatical errors
[{'old_path': None, 'new_path': 'CONDUCT.md', 'type': <ModificationType.ADD: 1>, 'diff': "@@ -0,0 +1,37 @@\n+## Cobra User Contract\n+\n+### Versioning\n+Cobra will follow a steady release cadence. Non breaking changes will be released as minor versions quarterly. Patch bug releases are at the discretion of the maintai...
Go
1135bdecebe90d831220783e9e3d7baea8a05e39
309
2021-02-01 12:44:33-07:00
25,200
['9df156e6d11ee27303bc69593f0f1e6de84693ec']
Update gopkg.in/yaml.v2 to v2.4.0 The previous breaking change in yaml.v2 v2.3.0 has been reverted, see https://github.com/go-yaml/yaml/pull/670
[{'old_path': 'go.mod', 'new_path': 'go.mod', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -8,5 +8,5 @@ require (\n \tgithub.com/mitchellh/go-homedir v1.1.0\n \tgithub.com/spf13/pflag v1.0.5\n \tgithub.com/spf13/viper v1.7.0\n-\tgopkg.in/yaml.v2 v2.2.8\n+\tgopkg.in/yaml.v2 v2.4.0\n )\n'}, {'old_path': 'go.sum', 'n...
Go
1d71ff02701cb01f7e9980754da9c95cb92252d2
397
2021-02-01 15:59:47-07:00
25,200
['1135bdecebe90d831220783e9e3d7baea8a05e39']
Deprecate Go < 1.14 (#1323) In accordance with our adopted best practices, the main branch and the next major release of Cobra will deprecate older and un-maintained versions of Golang. fix #1322
[{'old_path': '.travis.yml', 'new_path': '.travis.yml', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -6,8 +6,8 @@ stages:\n - build\n \n go:\n- - 1.12.x\n- - 1.13.x\n+ - 1.14.x\n+ - 1.15.x\n - tip\n \n before_install:\n@@ -19,10 +19,10 @@ matrix:\n - go: tip\n include:\n - stage: diff\n- go:...
Go
652c755d3751109d878a9c8228c0bcb7aed0d4f5
41
2021-02-07 17:08:50-07:00
0
['1d71ff02701cb01f7e9980754da9c95cb92252d2']
Use golangci-lint (#1044) Use golangci-lint. Repair warnings and errors resulting from linting.
[{'old_path': None, 'new_path': '.golangci.yml', 'type': <ModificationType.ADD: 1>, 'diff': '@@ -0,0 +1,48 @@\n+run:\n+ deadline: 5m\n+\n+linters:\n+ disable-all: true\n+ enable:\n+ #- bodyclose\n+ - deadcode\n+ #- depguard\n+ #- dogsled\n+ #- dupl\n+ - errcheck\n+ #- exhaustive\n+ #- funlen\...
Go
b73b344b63b6fab171f578f1385ac2506fe93187
41
2021-02-09 08:48:59-07:00
0
['652c755d3751109d878a9c8228c0bcb7aed0d4f5']
ci: add GitHub Actions workflow 'Test' (#1339) Adds a "test" action which will run side by side (for now) with Travis Co-authored-by: John McBride <jpmmcbride@gmail.com>
[{'old_path': None, 'new_path': '.github/workflows/Test.yml', 'type': <ModificationType.ADD: 1>, 'diff': "@@ -0,0 +1,83 @@\n+name: Test\n+\n+on:\n+ push:\n+ pull_request:\n+\n+env:\n+ GO111MODULE: on\n+\n+jobs:\n+\n+\n+ test-unix:\n+ strategy:\n+ fail-fast: false\n+ matrix:\n+ platform:\n+ ...
Go
ded486a867a9f1457fd7ad65bf66ef62330eb184
55
2021-02-14 10:27:21-07:00
-3,600
['893ebf6e36ac744887c934361ce95ce9ce8cffaf']
Fix trailing whitespace in the powershell completion script (#1342) Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
[]
Go
b312f0a8ef6f7ceb211af700083046da437db67c
449
2021-02-15 10:47:01-07:00
18,000
['ded486a867a9f1457fd7ad65bf66ef62330eb184']
Create 'completion' command automatically (#1192) Make it easier for programs to provide shell completion by creating the 'completion' command automatically. If a 'completion' command is already provided by the program, Cobra will use that one instead. Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
[{'old_path': 'command.go', 'new_path': 'command.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -168,6 +168,9 @@ type Command struct {\n \t//FParseErrWhitelist flag parse errors to be ignored\n \tFParseErrWhitelist FParseErrWhitelist\n \n+\t// CompletionOptions is a set of options to control the handling of she...
Go
b55fa79836c63eab81e884e6ec1d7e4ae5c7f9b5
401
2021-02-15 10:48:09-07:00
25,200
['b312f0a8ef6f7ceb211af700083046da437db67c']
Add PR labeler with pull_request_target (#1338) * Add PR labeler with pull_request_target
[{'old_path': None, 'new_path': '.github/labeler.yml', 'type': <ModificationType.ADD: 1>, 'diff': '@@ -0,0 +1,16 @@\n+# changes to documentation generation\n+"area/doc-gen": doc/**/*\n+\n+# changes to the core Go cobra lib package\n+"area/lib": ./*.go\n+\n+# changes to the Cobra CLI\n+"area/cli": cobra/**/*\n+\n+# chan...
Go
eb3b6397b1b5d1b0a2cd66a9afe0520f480c0a87
646
2021-02-18 08:26:03-07:00
-7,200
['b55fa79836c63eab81e884e6ec1d7e4ae5c7f9b5']
Bash completion variable leak fixes (#1352) Fixes bash variables leaking into the parent shell without `local`
[{'old_path': 'bash_completions.go', 'new_path': 'bash_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -384,7 +384,7 @@ func writePostscript(buf io.StringWriter, name string) {\n \tname = strings.Replace(name, ":", "__", -1)\n \tWriteStringAndCheck(buf, fmt.Sprintf("__start_%s()\\n", name))\n \tWrite...
Go
3ed6a394b6ab0ee1148a985c500fee7c714ae0aa
41
2021-05-03 10:08:39-06:00
-7,200
['eb3b6397b1b5d1b0a2cd66a9afe0520f480c0a87']
ci/MSYS2: go install @latest (#1366)
[{'old_path': '.github/workflows/Test.yml', 'new_path': '.github/workflows/Test.yml', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -77,7 +77,7 @@ jobs:\n - run: |\n export GOBIN=$HOME/go/bin\n curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b ...
Go
06e4b59b206e16bb8c8f030f1a09bfc39ac5ff03
449
2021-05-03 10:23:34-06:00
14,400
['3ed6a394b6ab0ee1148a985c500fee7c714ae0aa']
Allow fish comp to support trailing empty lines (#1284) Some programs may output extra empty lines after the directive. Those lines must be ignored for fish shell completion to work. zsh and bash are not impacted. Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca> Co-authored-by: Johannes Altmanninger <aclop...
[{'old_path': 'fish_completions.go', 'new_path': 'fish_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -53,6 +53,19 @@ function __%[1]s_perform_completion\n __%[1]s_debug "Calling $requestComp"\n \n set results (eval $requestComp 2> /dev/null)\n+\n+ # Some programs may output extra empty l...
Go
7223a997c8a0f38b2c57b384a96fef87b963275c
55
2021-05-03 10:25:30-06:00
-7,200
['06e4b59b206e16bb8c8f030f1a09bfc39ac5ff03']
powershell completion fix no file comp directive (#1363) Make sure to filter the returned completions before we check if there are valid completions left. Fixes #1362 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
[{'old_path': 'powershell_completions.go', 'new_path': 'powershell_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -140,19 +140,6 @@ Register-ArgumentCompleter -CommandName \'%[1]s\' -ScriptBlock {\n $Space = ""\n }\n \n- if (($Directive -band $ShellCompDirectiveNoFileComp) -ne 0 ) {\n...
Go
6d00909120c77b54b0c9974a4e20ffc540901b98
437
2021-05-03 10:33:57-06:00
-7,200
['7223a997c8a0f38b2c57b384a96fef87b963275c']
Pass context to completion (#1265)
[{'old_path': 'command.go', 'new_path': 'command.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -887,7 +887,8 @@ func (c *Command) preRun() {\n }\n \n // ExecuteContext is the same as Execute(), but sets the ctx on the command.\n-// Retrieve ctx by calling cmd.Context() inside your *Run lifecycle functions.\n+/...
Go
2d94892a8bec681d65a129e0a94b2e0d87e52cb9
55
2021-05-03 10:42:00-06:00
-7,200
['6d00909120c77b54b0c9974a4e20ffc540901b98']
Custom completion handle multiple shorhand flags together (#1258) Flag definitions like `-asd` are not handled correctly by the custom completion logic. They should be treated as multiple flags. For details refer to #1257. Fixes #1257 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
[{'old_path': 'completions.go', 'new_path': 'completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -469,7 +469,16 @@ func checkIfFlagCompletion(finalCmd *Command, args []string, lastArg string) (*p\n \tif len(lastArg) > 0 && lastArg[0] == \'-\' {\n \t\tif index := strings.Index(lastArg, "="); index >= 0 {\...
Go
95d23d24ff0cd791a67489230e4c3631df4105eb
449
2021-05-03 10:54:00-06:00
14,400
['2d94892a8bec681d65a129e0a94b2e0d87e52cb9']
Fix zsh for DirectiveNoSpace and DirectiveNoFileComp (#1213) Fixes #1211 When handling ShellCompDirectiveNoSpace we must still properly handle descriptions. To do so we cannot simply use 'compadd', but must use zsh's '_describe' function. Also, when handling ShellCompDirectiveNoSpace we cannot assume that on...
[{'old_path': 'completions.go', 'new_path': 'completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -175,10 +175,6 @@ func (c *Command) initCompleteCmd(args []string) {\n \t\t\t\tfmt.Fprintln(finalCmd.OutOrStdout(), comp)\n \t\t\t}\n \n-\t\t\tif directive >= shellCompDirectiveMaxValue {\n-\t\t\t\tdirective ...
Go
c2e21bdc104f9ef54bba066ae12ccedd0ae13d73
449
2021-05-03 12:00:01-06:00
14,400
['95d23d24ff0cd791a67489230e4c3631df4105eb']
Fix multiple fish completion issues (#1249) * Fix fish for ShellDirectiveNoSpace and file comp For fish shell we achieve ShellDirectiveNoSpace by outputing a fake second completion with an extra character. However, this extra character was being added after the description string, instead of before. This commi...
[{'old_path': 'fish_completions.go', 'new_path': 'fish_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -21,38 +21,27 @@ func genFishComp(buf io.StringWriter, name string, includeDesc bool) {\n \tWriteStringAndCheck(buf, fmt.Sprintf("# fish completion for %-36s -*- shell-script -*-\\n", name))\n \tWri...
Go
4590150168e93f4b017c6e33469e26590ba839df
333
2021-05-10 17:19:33-06:00
-32,400
['c2e21bdc104f9ef54bba066ae12ccedd0ae13d73']
Correcting misspelled words (#1349) * Correcting Misspelled Words * grammar fixes
[{'old_path': 'cobra/cmd/init_test.go', 'new_path': 'cobra/cmd/init_test.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -49,7 +49,7 @@ func TestGoldenInitCmd(t *testing.T) {\n \t\t\texpectErr: true,\n \t\t},\n \t\t{\n-\t\t\tname: "returns error when passing an relative path for project",\n+\t\t\tname: ...
Go
9a432671fd847f0faa5a5e4d9f9350ae289db2ac
558
2021-06-15 19:52:13-06:00
-3,600
['4590150168e93f4b017c6e33469e26590ba839df']
fix home directory config not loading (#1282) leverage `viper.SetConfigType("yaml")` to fix issue regarding home directory configuration failing to load.
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -246,6 +246,7 @@ func initConfig() {\n \n \t\t// Search config in home directory with name ".cobra" (without extension).\n \t\tviper.AddConfigPath(home)\n+\t\tviper.SetConfigType("yaml")\n \t\tviper.SetConfigName(".cob...
Go
701fa6c2bef293cf7cf82943c2104a83956feb56
455
2021-06-30 12:41:17-04:00
-7,200
['9a432671fd847f0faa5a5e4d9f9350ae289db2ac']
chore(deps): update viper Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
[{'old_path': 'go.mod', 'new_path': 'go.mod', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -7,6 +7,6 @@ require (\n \tgithub.com/inconshreveable/mousetrap v1.0.0\n \tgithub.com/mitchellh/go-homedir v1.1.0\n \tgithub.com/spf13/pflag v1.0.5\n-\tgithub.com/spf13/viper v1.7.0\n+\tgithub.com/spf13/viper v1.8.0\n \tgopk...
Go
ace6b14345897f1b757058291a84945a41f59f30
643
2021-06-30 12:46:37-04:00
-7,200
['701fa6c2bef293cf7cf82943c2104a83956feb56']
readme: split 'Getting Started' into 'user_guide.md'
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -19,18 +19,18 @@ name a few. [This list](./projects_using_cobra.md) contains a more extensive lis\n * [Commands](#commands)\n * [Flags](#flags)\n - [Installing](#installing)\n-- [Getting Started](#getting-started)\...
Go
8eaca5f0f49ad747a0722d39dca7a75c34abd21a
643
2021-06-30 14:08:43-04:00
-7,200
['ace6b14345897f1b757058291a84945a41f59f30']
drop mitchellh/go-homedir (#853)
[{'old_path': 'cobra/cmd/root.go', 'new_path': 'cobra/cmd/root.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -15,8 +15,8 @@ package cmd\n \n import (\n \t"fmt"\n+\t"os"\n \n-\thomedir "github.com/mitchellh/go-homedir"\n \t"github.com/spf13/cobra"\n \t"github.com/spf13/viper"\n )\n@@ -62,7 +62,7 @@ func initCon...
Go
d0f318d45bdb46e3c1bc314c6096674426f1a620
643
2021-06-30 16:38:08-04:00
-7,200
['8eaca5f0f49ad747a0722d39dca7a75c34abd21a']
ci: deprecate Travis CI
[{'old_path': '.travis.yml', 'new_path': None, 'type': <ModificationType.DELETE: 4>, 'diff': '@@ -1,28 +0,0 @@\n-language: go\n-\n-stages:\n- - test\n- - build\n-\n-go:\n- - 1.14.x\n- - 1.15.x\n- - tip\n-\n-env: GO111MODULE=on\n-\n-before_install:\n- - go get -u github.com/kyoh86/richgo\n- - go get -u github.com...
Go
b36196066e3b97b3cc87a352c81279af77028cc8
449
2021-06-30 15:24:58-06:00
14,400
['d0f318d45bdb46e3c1bc314c6096674426f1a620']
Bash completion V2 with completion descriptions (#1146) * Bash completion v2 This v2 version of bash completion is based on Go completions. It also supports descriptions like the other shells. Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca> * Only consider matching completions for formatting Signed...
[{'old_path': 'bash_completions.md', 'new_path': 'bash_completions.md', 'type': <ModificationType.MODIFY: 5>, 'diff': "@@ -6,6 +6,8 @@ Please refer to [Shell Completions](shell_completions.md) for details.\n \n For backward compatibility, Cobra still supports its legacy dynamic completion solution (described below). U...
Go
2dea4f2ef38d7df919cdca44ac6a7039d30a6594
385
2021-06-30 15:45:46-06:00
21,600
['b36196066e3b97b3cc87a352c81279af77028cc8']
Bump to viper 1.8.1 (#1433)
[{'old_path': 'go.mod', 'new_path': 'go.mod', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -6,6 +6,6 @@ require (\n \tgithub.com/cpuguy83/go-md2man/v2 v2.0.0\n \tgithub.com/inconshreveable/mousetrap v1.0.0\n \tgithub.com/spf13/pflag v1.0.5\n-\tgithub.com/spf13/viper v1.8.0\n+\tgithub.com/spf13/viper v1.8.1\n \tgop...
Go
3c8a19ecd384dc4229545bb174310a50c493f4ae
473
2021-06-30 15:49:30-06:00
-28,800
['2dea4f2ef38d7df919cdca44ac6a7039d30a6594']
fix RegisterFlagCompletionFunc concurrent map writes error (#1423) * fix-RegisterFlagCompletionFunc-concurrent * set to root command * move to non-public fields
[{'old_path': 'bash_completions.go', 'new_path': 'bash_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -512,7 +512,7 @@ func writeLocalNonPersistentFlag(buf io.StringWriter, flag *pflag.Flag) {\n \n // Setup annotations for go completions for registered flags\n func prepareCustomAnnotationsForFlags(c...
Go
5d46ac904df31583e1c824a3f5d7198cfa1911c0
55
2021-07-01 09:47:10-06:00
-7,200
['3c8a19ecd384dc4229545bb174310a50c493f4ae']
custom comp: do not complete flags after args when interspersed is false (#1308) If the interspersed option is set false and one arg is already set all following arguments are counted as arg and not parsed as flags. Because of that we should not offer flag completion. The same applies to arguments followed after `-...
[{'old_path': 'completions.go', 'new_path': 'completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -21,6 +21,15 @@ const (\n // can be instructed to have once completions have been provided.\n type ShellCompDirective int\n \n+type flagCompError struct {\n+\tsubCommand string\n+\tflagName string\n+}\n+\n+...
Go
5738d6b72d7323f2e6fbdb7a559ebeccdb93d27d
422
2021-07-01 09:49:12-06:00
25,200
['5d46ac904df31583e1c824a3f5d7198cfa1911c0']
Add install instructions for zsh on Mac OS (#1417) zsh is now the default on Mac OS, but the $_fpath version of the installation instructions are likely to put the completion in a strange location that the user might not expect (e.g. an oh-my-zsh plugin's function directory). So, since Mac OS seems to (as far as I ca...
[{'old_path': 'completions.go', 'new_path': 'completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -638,7 +638,10 @@ to enable it. You can execute the following once:\n $ echo "autoload -U compinit; compinit" >> ~/.zshrc\n \n To load completions for every new session, execute once:\n+# Linux:\n $ %[1]s co...
Go
07861c800d0779867f821501b892e635660847d2
449
2021-07-01 09:49:30-06:00
14,400
['5738d6b72d7323f2e6fbdb7a559ebeccdb93d27d']
Fix documentation (#1434) Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
[{'old_path': 'shell_completions.md', 'new_path': 'shell_completions.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -352,7 +352,10 @@ cmd.RegisterFlagCompletionFunc(flagName, func(cmd *cobra.Command, args []string,\n ```\n ### Descriptions for completions\n \n-`zsh`, `fish` and `powershell` allow for descriptio...
Go
de187e874d1ca382320088f8f6d76333408e5c2e
55
2021-07-02 09:25:47-06:00
-7,200
['07861c800d0779867f821501b892e635660847d2']
Fix flag completion (#1438) * Fix flag completion The flag completion functions should not be stored in the root cmd. There is no requirement that the root cmd should be the same when `RegisterFlagCompletionFunc` was called. Storing the flags there does not work when you add the the flags to your cmd struct befo...
[{'old_path': 'bash_completions.go', 'new_path': 'bash_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -512,7 +512,9 @@ func writeLocalNonPersistentFlag(buf io.StringWriter, flag *pflag.Flag) {\n \n // Setup annotations for go completions for registered flags\n func prepareCustomAnnotationsForFlags(c...
Go
2a5277810f24ae1b8a200198be8dd855a9041a0e
623
2021-08-05 11:08:25-06:00
-7,200
['56060d19f88533a20f635116f64aff2065cf260a']
go.mod: cpuguy83/go-md2man/v2 v2.0.1 (#1460) full diff: https://github.com/cpuguy83/go-md2man/compare/v2.0.0...v2.0.1 - Fix handling multiple definition descriptions - Fix inline markup causing table cells to split - Remove escaping tilde character (prevents tildes (`~`) from disappearing). - Do not escape dash,...
[{'old_path': 'doc/man_docs_test.go', 'new_path': 'doc/man_docs_test.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -131,7 +131,7 @@ func TestGenManSeeAlso(t *testing.T) {\n \tif err := assertNextLineEquals(scanner, ".PP"); err != nil {\n \t\tt.Fatalf("First line after SEE ALSO wasn\'t break-indent: %v", err)\n...
Go
4fd30b69ee2b62cf3bbecf0a423f8a1ee47f5f24
41
2021-08-25 21:18:53-06:00
-3,600
['2a5277810f24ae1b8a200198be8dd855a9041a0e']
ci: test golang 1.16.x and 1.17.x too (#1425) * ci: test golang 1.16.x too * ci: style * ci: test golang 1.17.x too * bump go.mod to 1.15 * run gofmt
[{'old_path': '.github/workflows/Test.yml', 'new_path': '.github/workflows/Test.yml', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -18,29 +18,35 @@ jobs:\n - ubuntu\n - macOS\n go:\n- - 1.14.x\n- - 1.15.x\n- name: \'${{ matrix.platform }} | ${{ matrix.go }}\'\n+ - 14...
Go
c1973d31bfd78d5f5c5a487a1af6627c5101a020
386
2021-10-04 14:58:08-06:00
21,600
['4fd30b69ee2b62cf3bbecf0a423f8a1ee47f5f24']
Update projects-using markdown with Tanzu (#1501) Signed-off-by: John McBride <jmcbride@vmware.com>
[{'old_path': 'projects_using_cobra.md', 'new_path': 'projects_using_cobra.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -36,4 +36,5 @@\n - [Skaffold](https://skaffold.dev/)\n - [Tendermint](https://github.com/tendermint/tendermint)\n - [Twitch CLI](https://github.com/twitchdev/twitch-cli)\n+- [VMware Tanzu Co...
Go
d2c0cb310d527ce26e8a173aa0fbc901e5ce8780
449
2021-11-01 13:01:33-06:00
14,400
['c1973d31bfd78d5f5c5a487a1af6627c5101a020']
DisableFlagParsing must disable flag completion (#1161) When a command has set DisableFlagParsing=true, it means Cobra should not be handling flags for that command but should let the command handle them itself. In fact, Cobra normally won't have been told at all about flags for this command. Not knowing about ...
[{'old_path': 'bash_completions.go', 'new_path': 'bash_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -193,7 +193,13 @@ __%[1]s_handle_reply()\n fi\n fi\n fi\n+\n+ if [[ -z "${flag_parsing_disabled}" ]]; then\n+ # If flag pars...
Go
f09e9476376ba2fa9b29ec321e2944f4bc14503c
41
2021-11-02 09:10:14-06:00
0
['d2c0cb310d527ce26e8a173aa0fbc901e5ce8780']
readme: remove ToC, since it's now shown by GitHub (#1429)
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -11,28 +11,6 @@ name a few. [This list](./projects_using_cobra.md) contains a more extensive lis\n [![Go Report Card](https://goreportcard.com/badge/github.com/spf13/cobra)](https://goreportcard.com/report/github.com/s...
Go
c0dd5cdef534498cc8a7f929c76f7eb819671526
608
2021-11-03 15:36:51-04:00
14,400
['f09e9476376ba2fa9b29ec321e2944f4bc14503c']
Removing unused imports when not using Viper
[{'old_path': 'cobra/tpl/main.go', 'new_path': 'cobra/tpl/main.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -1,3 +1,16 @@\n+// Copyright © 2021 Steve Francia <spf@spf13.com>.\n+//\n+// Licensed under the Apache License, Version 2.0 (the "License");\n+// you may not use this file except in compliance with the ...
Go
dcf42b25f7f1980135e744f099ecbbc6ec85eadc
608
2021-11-03 15:36:51-04:00
14,400
['c0dd5cdef534498cc8a7f929c76f7eb819671526']
Change generator to require opting in to viper. Cobra and Viper are great together, but it's not uncommon to use them apart. New Cobra users don't know better and including Viper by default adds complexity to the skeleton.
[{'old_path': 'cobra/cmd/add_test.go', 'new_path': 'cobra/cmd/add_test.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -4,9 +4,12 @@ import (\n \t"fmt"\n \t"os"\n \t"testing"\n+\n+\t"github.com/spf13/viper"\n )\n \n func TestGoldenAddCmd(t *testing.T) {\n+\tviper.Set("useViper", true)\n \tcommand := &Command{\n ...
Go
c9edb78accc109d0fa42d449417815fc83db979d
608
2021-11-03 15:36:51-04:00
14,400
['dcf42b25f7f1980135e744f099ecbbc6ec85eadc']
Change generator default license to none It's questionable that a default license makes any sense from a legal perspective. If the tool created the license without the user choosing it, then it may not even be applicable. Best to let the user choose their license with intent.
[{'old_path': 'cobra/cmd/add_test.go', 'new_path': 'cobra/cmd/add_test.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -10,6 +10,7 @@ import (\n \n func TestGoldenAddCmd(t *testing.T) {\n \tviper.Set("useViper", true)\n+\tviper.Set("license", "apache")\n \tcommand := &Command{\n \t\tCmdName: "test",\n \t\tCmdP...
Go
9388e79fb48d6af993c8d4fb90a7de9c7533725b
608
2021-11-03 15:36:51-04:00
14,400
['c9edb78accc109d0fa42d449417815fc83db979d']
Cobra generator now works within Go modules Pretty major change in behavior, but with modules a change is needed. Now cobra can initialize and add from within any Go module. The experience is simplified and streamlined, but requires `go mod init` to happen first.
[{'old_path': 'cobra/cmd/init.go', 'new_path': 'cobra/cmd/init.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -1,4 +1,4 @@\n-// Copyright © 2015 Steve Francia <spf@spf13.com>.\n+// Copyright © 2021 Steve Francia <spf@spf13.com>.\n //\n // Licensed under the Apache License, Version 2.0 (the "License");\n // you ...
Go
c97b7ece0b14323cbbb8edb6e20a383c71cbef3d
608
2021-11-03 15:36:51-04:00
14,400
['9388e79fb48d6af993c8d4fb90a7de9c7533725b']
Update documentation to reflect the module aware generator
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -24,7 +24,7 @@ Cobra provides:\n * Fully POSIX-compliant flags (including short & long versions)\n * Nested subcommands\n * Global, local and cascading flags\n-* Easy generation of applications & commands with `cobra i...
Go
cf87fc4e3064921646ceb395e86f7517e41ffd36
608
2021-11-03 15:36:51-04:00
14,400
['c97b7ece0b14323cbbb8edb6e20a383c71cbef3d']
Updating generator documentation and links Merging the updated documentation from the user_guide into the cobra/README.md. Adding links as appropriate to both guides.
[{'old_path': 'README.md', 'new_path': 'README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -66,7 +66,7 @@ have children commands and optionally run an action.\n \n In the example above, \'server\' is the command.\n \n-[More about cobra.Command](https://godoc.org/github.com/spf13/cobra#Command)\n+[More about ...
Go
bfacc59f62c67ffd43e93655a8d933cefab0fa99
608
2021-11-03 15:36:51-04:00
14,400
['26825627c284b4f53d5e7ef0b3358a83a80bd95c']
Addressing typos identified by @marckhouzam
[{'old_path': 'cobra/README.md', 'new_path': 'cobra/README.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -9,7 +9,7 @@ Go will automatically install it in your `$GOPATH/bin` directory which should be\n Once installed you should have the `cobra` command available. Confirm by typing `cobra` at a \n command line. ...
Go
3c84bf87042f0263dcce202a790d80996814aa9a
147
2021-11-15 13:26:11-07:00
21,600
['3ba5f15ba7acbab0d090411fb631b82b34769b95']
Small correction in User Guide (#1009)
[{'old_path': 'user_guide.md', 'new_path': 'user_guide.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -281,7 +281,7 @@ func init() {\n \n In this example, the persistent flag `author` is bound with `viper`.\n **Note**: the variable `author` will not be set to the value from config,\n-when the `--author` flag is...
Go
78969f9c816ba3c627a0db3468ea37b315613330
609
2021-11-15 13:33:16-07:00
18,000
['3c84bf87042f0263dcce202a790d80996814aa9a']
Remove "Lesser" from header for GPL-2.0 template (#880) This removes "Lesser" from the GPL-2.0 header template, since that header is meant to be referring to GPL-2.0 and not LGPL-2.0. Fixes #879 Signed-off-by: Steve Winslow <swinslow@gmail.com>
[{'old_path': 'cobra/cmd/license_gpl_2.go', 'new_path': 'cobra/cmd/license_gpl_2.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -30,7 +30,7 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more deta...
Go
442031e4ff6962f955d49d1b1336a9064704c2e3
669
2021-11-15 13:39:40-07:00
-3,600
['78969f9c816ba3c627a0db3468ea37b315613330']
Allow specifying licenses using their SPDX identifier (#1159)
[{'old_path': 'cobra/cmd/license_agpl.go', 'new_path': 'cobra/cmd/license_agpl.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -3,7 +3,7 @@ package cmd\n func initAgpl() {\n \tLicenses["agpl"] = License{\n \t\tName: "GNU Affero General Public License",\n-\t\tPossibleMatches: []string{"agpl", "affero g...
Go
62a72cdd0fa76b1905684d786f31c3edb43028c1
41
2021-11-16 15:17:12-07:00
0
['442031e4ff6962f955d49d1b1336a9064704c2e3']
fix(diff): use arg '--strip-trailing-cr' (#949) In tests with diff, ignores trailing carriage returns (so tests pass on windows)
[{'old_path': 'cobra/cmd/golden_test.go', 'new_path': 'cobra/cmd/golden_test.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -43,7 +43,7 @@ func compareFiles(pathA, pathB string) error {\n \t\t\t// Don\'t execute diff if it can\'t be found.\n \t\t\treturn nil\n \t\t}\n-\t\tdiffCmd := exec.Command(diffPath, "-u",...
Go
9e1d6f1c2aa8df64b6a6ba39e92517f68580d653
41
2021-11-16 15:20:18-07:00
0
['62a72cdd0fa76b1905684d786f31c3edb43028c1']
args_test: add helper functions (#1426) * args_test: add helper function expectSuccess * args_test: add helper function getCommand * args_test: add additional helper functions * noArgsWithArgs * validWithInvalidArgs * minimumNArgsWithLessArgs * maximumNArgsWithMoreArgs * exactArgsWithInvalidCount * rangeArgsW...
[{'old_path': 'args_test.go', 'new_path': 'args_test.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -5,42 +5,19 @@ import (\n \t"testing"\n )\n \n-func TestNoArgs(t *testing.T) {\n-\tc := &Command{Use: "c", Args: NoArgs, Run: emptyRun}\n-\n-\toutput, err := executeCommand(c)\n-\tif output != "" {\n-\t\tt.Errorf...
Go
45e521ea93e2270ef7333487f0a87e3887de2da9
508
2021-12-07 15:38:00-07:00
28,800
['9e1d6f1c2aa8df64b6a6ba39e92517f68580d653']
enable composing PositionalArgs (#896) * enable composing PositionalArgs * ExactValidArgs slated for removal * tests and docs * rename to MatchAll
[{'old_path': 'args.go', 'new_path': 'args.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -107,3 +107,15 @@ func RangeArgs(min int, max int) PositionalArgs {\n \t\treturn nil\n \t}\n }\n+\n+// MatchAll allows combining several PositionalArgs to work in concert.\n+func MatchAll(pargs ...PositionalArgs) Positiona...
Go
d65ba125a3e6dad2da6ea23d50ca2d93f9116824
41
2021-12-07 15:41:10-07:00
0
['45e521ea93e2270ef7333487f0a87e3887de2da9']
github: add dependabot configuration file (#1427) Co-Authored-By: Matthieu MOREL <mmorel-35@users.noreply.github.com>
[{'old_path': None, 'new_path': '.github/dependabot.yml', 'type': <ModificationType.ADD: 1>, 'diff': '@@ -0,0 +1,12 @@\n+version: 2\n+updates:\n+- package-ecosystem: gomod\n+ directory: /\n+ schedule:\n+ interval: weekly\n+ open-pull-requests-limit: 99\n+- package-ecosystem: github-actions\n+ directory: /\n+ sc...
Go
6f19fa9f61735140429f65dfe283e26400381da4
289
2021-12-07 15:44:39-07:00
-28,800
['d65ba125a3e6dad2da6ea23d50ca2d93f9116824']
fix: unbound variables in bash completion (#1321) when `set -o nounset` in Bash, the warnings of unbound variables will break the bash completion. use `kubectl` as example: ```sh $ set -o nounset $ my-cli <Tab>-bash: BASH_COMP_DEBUG_FILE: unbound variable $ ``` the warning break bash completion without a...
[{'old_path': 'bash_completions.go', 'new_path': 'bash_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -24,7 +24,7 @@ func writePreamble(buf io.StringWriter, name string) {\n \tWriteStringAndCheck(buf, fmt.Sprintf(`\n __%[1]s_debug()\n {\n- if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then\n+ if [[ -n ...
Go
d298d79e6a8bc75fa3e791ff3980cb9a238afca6
7
2021-12-07 15:46:48-07:00
-7,200
['6f19fa9f61735140429f65dfe283e26400381da4']
Update shell_completions.md to have automatically rootcmd (#1372) * Update shell_completions.md
[{'old_path': 'shell_completions.md', 'new_path': 'shell_completions.md', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -28,17 +28,17 @@ and then modifying the generated `cmd/completion.go` file to look something like\n var completionCmd = &cobra.Command{\n \tUse: "completion [bash|zsh|fish|powershell]",\n \tShor...
Go
dd40ab071f820e490d3bc1587f2abe65715805f4
234
2021-12-07 15:51:48-07:00
10,800
['d298d79e6a8bc75fa3e791ff3980cb9a238afca6']
feat: improve completions help formatting (#1444) Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
[{'old_path': 'completions.go', 'new_path': 'completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -622,13 +622,18 @@ This script depends on the \'bash-completion\' package.\n If it is not installed already, you can install it via your OS\'s package manager.\n \n To load completions in your current shell s...
Go
c3573e220c93941b06812483ee96ceaf5fa5e5cc
310
2021-12-07 15:52:50-07:00
18,000
['dd40ab071f820e490d3bc1587f2abe65715805f4']
Completion: Capitalize short desc, and remove extra space from long (#1455)
[{'old_path': 'completions.go', 'new_path': 'completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -599,9 +599,8 @@ func (c *Command) initDefaultCompletionCmd() {\n \n \tcompletionCmd := &Command{\n \t\tUse: compCmdName,\n-\t\tShort: "generate the autocompletion script for the specified shell",\n-\t\tLon...
Go
c7a4421715fc8d86c2a4a67366459e421f4b54d9
298
2021-12-07 15:53:38-07:00
21,600
['c3573e220c93941b06812483ee96ceaf5fa5e5cc']
fix: typo in {bash,zsh}_completions.go (#1459) * Fix typo in bash_completions.go * Fix the same typo in zsh_completions.go
[{'old_path': 'bash_completions.go', 'new_path': 'bash_completions.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -134,7 +134,7 @@ __%[1]s_handle_go_custom_completion()\n $filteringCmd\n elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then\n # File completion for directories on...
Go
507caf5ac8d1c81229af3d3df4e43e497bcdc233
623
2021-12-07 15:57:57-07:00
-3,600
['c7a4421715fc8d86c2a4a67366459e421f4b54d9']
completions: fix mixed tab/spaces indentation (#1473) These templates use 4 spaces for indentation, but some lines used tabs. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
[]
Go
3fed3ef5adf9fa1cfff46b6860850828d6c60154
449
2021-12-07 15:59:41-07:00
18,000
['507caf5ac8d1c81229af3d3df4e43e497bcdc233']
Support different bash completion options (#1509) https://github.com/spf13/cobra/issues/1508 Based on the documentation found here https://www.gnu.org/software/bash/manual/html_node/Commands-For-Completion.html we remove descriptions for the following completion types: - menu-complete - menu-complete-backward ...
[{'old_path': 'bash_completionsV2.go', 'new_path': 'bash_completionsV2.go', 'type': <ModificationType.MODIFY: 5>, 'diff': '@@ -138,13 +138,42 @@ __%[1]s_process_completion_results() {\n _filedir -d\n fi\n else\n- __%[1]s_handle_standard_completion_case\n+ __%[1]s_handle_completion_...
Go