Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

chore: bump github.com/spf13/cobra from 1.2.1 to 1.5.0#484

Conversation

dependabot[bot]
Copy link
Contributor

@dependabotdependabotbot commented on behalf ofgithubJun 21, 2022

Bumpsgithub.com/spf13/cobra from 1.2.1 to 1.5.0.

Release notes

Sourced fromgithub.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 Helpspf13/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 agroup. Shout out to our newest maintainer@​johnSchnake for this!spf13/cobra#1654 Let's say you have ausername flag thatMUST be partnered with apassword 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 theMarkFlagsMutuallyExclusive(string, string ... ) command API. Refer to ouruser 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)

Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.2.1 to 1.5.0.- [Release notes](https://github.com/spf13/cobra/releases)- [Commits](spf13/cobra@v1.2.1...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>
@dependabotdependabotbot added dependenciesPull requests that update a dependency file goPull requests that update Go code labelsJun 21, 2022
@dependabot@github
Copy link
ContributorAuthor

dependabotbot commented on behalf ofgithubOct 12, 2022

Superseded by#492.

@dependabotdependabotbot closed thisOct 12, 2022
@dependabotdependabotbot deleted the dependabot/go_modules/github.com/spf13/cobra-1.5.0 branchOctober 12, 2022 11:31
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
dependenciesPull requests that update a dependency filegoPull requests that update Go code
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

0 participants

[8]ページ先頭

©2009-2025 Movatter.jp