Bump github.com/spf13/cobra from 1.6.1 to 1.9.1#20
Conversation
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.6.1 to 1.9.1. - [Release notes](https://github.com/spf13/cobra/releases) - [Commits](spf13/cobra@v1.6.1...v1.9.1) --- 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>
Reviewer's Guide by SourceryThis pull request bumps the github.com/spf13/cobra dependency from v1.6.1 to v1.9.1. It also updates github.com/spf13/pflag and github.com/inconshreveable/mousetrap. Sequence diagram for command completion with descriptionsequenceDiagram
participant User
participant Shell
participant CobraApp
participant Command
User->>Shell: Enters command with completion
Shell->>CobraApp: Requests completion suggestions
CobraApp->>Command: Executes CompletionFunc
Command->>Command: Generates completion suggestions with descriptions
Command-->>CobraApp: Returns completion suggestions
CobraApp-->>Shell: Returns completion suggestions
Shell-->>User: Displays completion suggestions
Updated class diagram for Cobra CommandclassDiagram
class Command {
+Use string
+Short string
+Long string
+RunE func(cmd *Command, args []string) error
+CompletionFunc func(cmd *Command, args []string) ([]string, Directive)
+SetOutput(io.Writer)
+ResetFlags()
}
note for Command "CompletionFunc added to Command class"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
CI Feedback 🧐(Feedback updated until commit 60cd5ef)A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
|
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 365 days. |
Bumps github.com/spf13/cobra from 1.6.1 to 1.9.1.
Release notes
Sourced from github.com/spf13/cobra's releases.
... (truncated)
Commits
40b5bc1Revert "Make detection for test-binary more universal (#2173)" (#2235)a97f9fdfix CompletionFunc implementation (#2234)5f9c408chore: Upgrade dependencies for v1.9.0 (#2233)24ada7fRemove the default "completion" cmd if it is alone (#1559)680936aNew logo8cb30f9feat: add CompletionWithDesc helper (#2231)17b6dcadoc: add Conduit (#2230)ab5cadcAllow to reset the templates to the default (#2229)4ba5566fix(bash): nounset unbound file filter variable on empty extension (#2228)41b26ecPrint ActiveHelp for bash along other completions (#2076)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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)Summary by Sourcery
Update spf13/cobra from 1.6.1 to 1.9.1. This change includes new features such as a default completion command and a CompletionWithDesc helper, several bug fixes, completion enhancements, documentation updates, dependency upgrades, and testing improvements.
New Features:
Bug Fixes:
Enhancements:
Build:
Documentation:
Tests:
Chores: