Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 Bump github.com/spf13/cobra from 1.4.0 to 1.5.0 #1998

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 21, 2022

Bumps github.com/spf13/cobra from 1.4.0 to 1.5.0.

Release notes

Sourced from github.com/spf13/cobra's releases.

v1.5.0

Spring 2022 Release 🌥️

Hello everyone! Welcome to another release of cobra. Completions continue to get better and better. This release adds a few really cool new features. We also continue to patch versions of our dependencies as they become available via dependabot. Happy coding!

Active help 👐🏼

Shout out to @​marckhouzam for a big value add: Active Help spf13/cobra#1482. With active help, a program can provide some inline warnings or hints for users as they hit tab. Now, your CLIs can be even more intuitive to use!

Currently active help is only supported for bash V2 and zsh. Marc wrote a whole guide on how to do this, so make sure to give it a good read to learn how you can add this to your cobra code! https://github.com/spf13/cobra/blob/master/active_help.md

Group flags 🧑🏼‍🤝‍🧑🏼

Cobra now has the ability to mark flags as required or exclusive as a group. Shout out to our newest maintainer @​johnSchnake for this! spf13/cobra#1654 Let's say you have a username flag that MUST be partnered with a password flag. Well, now, you can enforce those as being required together:

rootCmd.Flags().StringVarP(&u, "username", "u", "", "Username (required if password is set)")
rootCmd.Flags().StringVarP(&pw, "password", "p", "", "Password (required if username is set)")
rootCmd.MarkFlagsRequiredTogether("username", "password")

Flags may also be marked as "mutally exclusive" with the MarkFlagsMutuallyExclusive(string, string ... ) command API. Refer to our user guide documentation for further info!

Completions 👀

Documentation 📝

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jun 21, 2022
@dependabot dependabot bot temporarily deployed to integration-test June 21, 2022 08:07 Inactive
@codecov
Copy link

codecov bot commented Jun 21, 2022

Codecov Report

Merging #1998 (7f9fb43) into main (4394ac9) will increase coverage by 2.57%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1998      +/-   ##
==========================================
+ Coverage   42.17%   44.75%   +2.57%     
==========================================
  Files          89       89              
  Lines        7336     7336              
==========================================
+ Hits         3094     3283     +189     
+ Misses       4008     3812     -196     
- Partials      234      241       +7     

@github-actions
Copy link

Integration tests success for
[123c93b]
(https://github.com/ossf/scorecard/actions/runs/2533943223)

@github-actions
Copy link

github-actions bot commented Jul 2, 2022

Stale pull request message

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from 123c93b to ad069dc Compare July 5, 2022 14:16
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from ad069dc to 697bb5b Compare July 6, 2022 18:23
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from 697bb5b to 30c8b8a Compare July 6, 2022 20:54
@dependabot dependabot bot temporarily deployed to integration-test July 6, 2022 21:15 Inactive
@github-actions
Copy link

github-actions bot commented Jul 6, 2022

Integration tests success for
[30c8b8a]
(https://github.com/ossf/scorecard/actions/runs/2625560230)

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from 30c8b8a to 88f01bc Compare July 8, 2022 14:33
@dependabot dependabot bot temporarily deployed to integration-test July 8, 2022 15:00 Inactive
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from 88f01bc to 0cd35b8 Compare July 8, 2022 15:51
@github-actions
Copy link

github-actions bot commented Jul 8, 2022

Integration tests success for
[88f01bc]
(https://github.com/ossf/scorecard/actions/runs/2636749010)

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from 0cd35b8 to f86697c Compare July 11, 2022 02:44
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from f86697c to 908b8ac Compare July 11, 2022 20:03
@dependabot dependabot bot temporarily deployed to integration-test July 11, 2022 20:35 Inactive
@github-actions
Copy link

Integration tests success for
[908b8ac]
(https://github.com/ossf/scorecard/actions/runs/2652117228)

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from 908b8ac to 8cd6e07 Compare July 11, 2022 22:02
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from d87e08d to 6a839f8 Compare July 14, 2022 09:06
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from 6a839f8 to e3e6e25 Compare July 14, 2022 10:14
@dependabot dependabot bot temporarily deployed to integration-test July 14, 2022 11:00 Inactive
@github-actions
Copy link

Integration tests success for
[e3e6e25]
(https://github.com/ossf/scorecard/actions/runs/2669587456)

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from e3e6e25 to 54a1889 Compare July 14, 2022 14:26
@dependabot dependabot bot temporarily deployed to integration-test July 14, 2022 14:58 Inactive
@github-actions
Copy link

Integration tests success for
[54a1889]
(https://github.com/ossf/scorecard/actions/runs/2671003283)

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from 54a1889 to 8c8391b Compare July 14, 2022 15:46
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from 8c8391b to eee41cf Compare July 15, 2022 21:54
@dependabot dependabot bot temporarily deployed to integration-test July 15, 2022 22:16 Inactive
@github-actions
Copy link

Integration tests success for
[eee41cf]
(https://github.com/ossf/scorecard/actions/runs/2679554987)

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from eee41cf to 1e91f0d Compare July 15, 2022 23:13
@dependabot dependabot bot temporarily deployed to integration-test July 15, 2022 23:23 Inactive
@github-actions
Copy link

Integration tests success for
[1e91f0d]
(https://github.com/ossf/scorecard/actions/runs/2679835253)

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from 1e91f0d to f739d36 Compare July 16, 2022 16:57
@dependabot dependabot bot temporarily deployed to integration-test July 16, 2022 17:15 Inactive
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from f739d36 to e9a17bc Compare July 16, 2022 17:42
@dependabot dependabot bot temporarily deployed to integration-test July 16, 2022 17:57 Inactive
@github-actions
Copy link

Integration tests success for
[f739d36]
(https://github.com/ossf/scorecard/actions/runs/2682555700)

Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](spf13/cobra@v1.4.0...v1.5.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch from e9a17bc to 7f9fb43 Compare July 16, 2022 18:39
@github-actions
Copy link

Integration tests success for
[e9a17bc]
(https://github.com/ossf/scorecard/actions/runs/2682677301)

@dependabot dependabot bot temporarily deployed to integration-test July 16, 2022 18:45 Inactive
@github-actions
Copy link

Integration tests success for
[7f9fb43]
(https://github.com/ossf/scorecard/actions/runs/2682825464)

@naveensrinivasan naveensrinivasan merged commit f1b182a into main Jul 16, 2022
@naveensrinivasan naveensrinivasan deleted the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branch July 16, 2022 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant