HEAD | bd914e5 | fix: remove deprecated io/ioutils package (#2120) ioutils.ReadAll is deprecated since Go 1.16. This commit replaces it with io.ReadAll. See https://pkg.go.dev/io/ioutil\#ReadAll for reference Issue #2119 | 12 March 2024, 10:42:46 UTC |
refs/heads/main | bd914e5 | fix: remove deprecated io/ioutils package (#2120) ioutils.ReadAll is deprecated since Go 1.16. This commit replaces it with io.ReadAll. See https://pkg.go.dev/io/ioutil\#ReadAll for reference Issue #2119 | 12 March 2024, 10:42:46 UTC |
refs/heads/v1.6.x | b43be99 | Check for group presence after full initialization (#1839) (#1841) Fixes #1831 By moving the check for help group existence to "ExecuteC()" we no longer need groups to be added before AddCommand() is called. This provides more flexibility to developers and works better with the use of "init()" for command creation. Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com> Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com> Co-authored-by: Marc Khouzam <marc.khouzam@gmail.com> | 24 October 2022, 16:59:25 UTC |
refs/tags/0.0.5 | f2b07da | fixing linter issues | 15 May 2019, 16:53:39 UTC |
refs/tags/0.0.7 | 6607e6b | Partial Revert of #922 (#1068) Issue Reference: https://github.com/spf13/cobra/issues/1056 https://github.com/spf13/cobra/pull/922 introduced a new error type that emitted when a command was not runnable. This caused all commands w/o a run function set to error w/ that message and a status code of 1. This change reverts the addition of that new error. Similar functionality can be accomplished by leveraging RunE. | 27 March 2020, 20:38:32 UTC |
refs/tags/v0.0.1 | 7b2c5ac | Create new buffer if not present yet (#549) Fixes a nil dereference when TraverseChildren is used with multiple subcommands. | 12 October 2017, 18:25:33 UTC |
refs/tags/v0.0.2 | a1f051b | Update the Travis and CircleCI Go versions (#651) | 21 March 2018, 14:39:34 UTC |
refs/tags/v0.0.3 | ef82de7 | Fixed code sample for bash completion (#687) | 27 April 2018, 13:45:50 UTC |
refs/tags/v0.0.4 | 67fc483 | added variable to allow configuration of mousetrap message duration (#809) new variable MousetrapDisplayDuration allows to modify the default display duration of 5s, or to completely disable the timeout and wait for the user to press the return key. | 21 March 2019, 00:05:52 UTC |
refs/tags/v0.0.5 | f2b07da | fixing linter issues | 15 May 2019, 16:53:39 UTC |
refs/tags/v0.0.6 | 0da0687 | Add support for context.Context | 20 February 2020, 06:29:50 UTC |
refs/tags/v0.0.7 | 6607e6b | Partial Revert of #922 (#1068) Issue Reference: https://github.com/spf13/cobra/issues/1056 https://github.com/spf13/cobra/pull/922 introduced a new error type that emitted when a command was not runnable. This caused all commands w/o a run function set to error w/ that message and a status code of 1. This change reverts the addition of that new error. Similar functionality can be accomplished by leveraging RunE. | 27 March 2020, 20:38:32 UTC |
refs/tags/v1.0.0 | a684a6d | Fish completion using Go completion (#1048) Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca> | 10 April 2020, 19:56:28 UTC |
refs/tags/v1.1.0 | 142dfb1 | Add example for making persistent flags required (#1135) | 14 October 2020, 15:53:09 UTC |
refs/tags/v1.1.1 | 86f8bfd | fix manpage building with new go-md2man (#1255) This addresses #1049 by changing the format of the generated Markdown input. | 18 October 2020, 18:59:26 UTC |
refs/tags/v1.1.2 | 7f95502 | Update CHANGELOG.md for v1.1.2 | 10 February 2021, 01:39:00 UTC |
refs/tags/v1.1.3 | 8380ddd | Fix typo | 10 February 2021, 19:40:59 UTC |
refs/tags/v1.2.0 | 07861c8 | Fix documentation (#1434) Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca> | 01 July 2021, 15:49:30 UTC |
refs/tags/v1.2.1 | de187e8 | 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 before you add the cmd to the parent/root cmd. The flags can no longer be found in the rigth place when the completion command is called and thus the flag completion does not work. Also #1423 claims that this would be thread safe but we still have a map which will fail when accessed concurrently. To truly fix this issue use a RWMutex. Fixes #1437 Fixes #1320 Signed-off-by: Paul Holzinger <pholzing@redhat.com> * Fix trailing whitespaces in fish comp scripts Signed-off-by: Paul Holzinger <pholzing@redhat.com> | 02 July 2021, 15:25:47 UTC |
refs/tags/v1.3.0 | 178edbb | Bump github.com/spf13/viper from 1.9.0 to 1.10.0 (#1561) Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.9.0 to 1.10.0. - [Release notes](https://github.com/spf13/viper/releases) - [Commits](https://github.com/spf13/viper/compare/v1.9.0...v1.10.0) --- updated-dependencies: - dependency-name: github.com/spf13/viper dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 14 December 2021, 18:22:51 UTC |
refs/tags/v1.4.0 | 5b2b9e9 | Removes viper dependency by removing cobra/ CLI tool (#1604) The cobra bootstrapping CLI tool has moved to https://github.com/spf13/cobra-cli Signed-off-by: John McBride <jmcbride@vmware.com> | 10 March 2022, 15:19:35 UTC |
refs/tags/v1.5.0 | 06b06a9 | Bump golangci/golangci-lint-action from 3.1.0 to 3.2.0 (#1697) Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.1.0 to 3.2.0. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.1.0...v3.2.0) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 21 June 2022, 02:06:17 UTC |
refs/tags/v1.6.0 | 8607918 | feat: make InitDefaultCompletionCmd public (#1467) * feat: make InitDefaultCompletionCmd public * PR comments * Update man_docs_test.go * Update README.md | 10 October 2022, 23:06:30 UTC |
refs/tags/v1.6.1 | b43be99 | Check for group presence after full initialization (#1839) (#1841) Fixes #1831 By moving the check for help group existence to "ExecuteC()" we no longer need groups to be added before AddCommand() is called. This provides more flexibility to developers and works better with the use of "init()" for command creation. Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com> Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com> Co-authored-by: Marc Khouzam <marc.khouzam@gmail.com> | 24 October 2022, 16:59:25 UTC |
refs/tags/v1.7.0 | 4dd4b25 | Update main image to better handle dark background (#1883) Fixes #1880 Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com> Co-authored-by: Deleplace <deleplace2015@gmail.com> | 22 March 2023, 22:41:51 UTC |
refs/tags/v1.8.0 | a0a6ae0 | Improve API to get flag completion function (#2063) The new API is simpler and matches the `c.RegisterFlagCompletionFunc()` API. By removing the global function `GetFlagCompletion()` we are more future proof if we ever move from a global map of flag completion functions to something associated with the command. The commit also makes this API work with persistent flags by using `c.Flag(flagName)` instead of `c.Flags().Lookup(flagName)`. The commit also adds unit tests. Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com> | 02 November 2023, 15:23:08 UTC |