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

Update module github.com/spf13/cobra to v1.9.1 #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 15, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/spf13/cobra v1.8.1 -> v1.9.1 age adoption passing confidence

Release Notes

spf13/cobra (github.com/spf13/cobra)

v1.9.1

Compare Source

🐛 Fixes

Full Changelog: spf13/cobra@v1.9.0...v1.9.1

v1.9.0

Compare Source

✨ Features

🐛 Fixes

🤖 Completions

🧪 Testing

✍🏼 Documentation

🔧 Dependency upgrades


Thank you to all of our amazing contributors and all the great work that's been going into the completions feature!!

👋🏼 New Contributors

Full Changelog: spf13/cobra@v1.8.1...v1.9.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Feb 15, 2025

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated

Details:

Package Change
github.com/spf13/pflag v1.0.5 -> v1.0.6

Copy link

sourcery-ai bot commented Feb 15, 2025

Reviewer's Guide by Sourcery

This PR updates the cobra module from v1.8.1 to v1.9.0. It also updates the pflag dependency and updates the go.sum file with the new checksums.

Sequence diagram for command completion

sequenceDiagram
    participant User
    participant Shell
    participant Cobra Command

    User->>Shell: Types command and presses tab
    Shell->>Cobra Command: Requests completions
    Cobra Command->>Cobra Command: Executes CompletionFunc
    Cobra Command-->>Shell: Returns completions
    Shell-->>User: Displays completions
Loading

Updated class diagram for Cobra Command

classDiagram
  class Command {
    +Use string
    +Short string
    +Long string
    +RunE func(cmd *Command, args []string) error
    +Execute() error
    +AddCommand(cmd ...*Command)
    +SetOutput(out io.Writer)
    +CompletionWithDesc(name string, short string, comp CompletionFunc) *Command
  }
  note for Command "Command now includes CompletionWithDesc helper"
  class CompletionFunc {
    <<interface>>
    CompletionFunc(cmd *Command, args []string, toComplete string) ([]string, Directive)
  }
  Command --|> CompletionFunc : uses
Loading

File-Level Changes

Change Details Files
Update cobra module to v1.9.0.
  • Update github.com/spf13/cobra to v1.9.0 in go.mod.
  • Update github.com/spf13/pflag to v1.0.6 in go.mod.
  • Update github.com/spf13/cobra and github.com/spf13/pflag checksums in go.sum.
go.mod
go.sum

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, renovate[bot]!). We assume it knows what it's doing!

@renovate renovate bot changed the title Update module github.com/spf13/cobra to v1.9.0 Update module github.com/spf13/cobra to v1.9.1 Feb 17, 2025
@renovate renovate bot force-pushed the renovate/github.com-spf13-cobra-1.x branch from 689c184 to ea90ef2 Compare February 17, 2025 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants