build(deps): bump github.com/spf13/cobra from 1.1.3 to 1.2.1 (#9623)

Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.1.3 to 1.2.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/spf13/cobra/releases">github.com/spf13/cobra's releases</a>.</em></p>
<blockquote>
<h2>v1.2.1</h2>
<h3>Bug fixes</h3>
<ul>
<li>Quickfix for <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1437">spf13/cobra#1437</a> after v1.2.0 where parallel use of the <code>cmd.RegisterFlagCompletionFunc()</code> (and subsequent map) now works correctly and flag completions now work again</li>
</ul>
<h2>v1.2.0 - The completions release</h2>
<h1>🌠 v1.2.0 - The completions release</h1>
<p>Welcome to v1.2.0 of Cobra! This release focuses on code completions, several critical bug fixes, some documentation updates, and security bumps. Upgrading should be simple but note please take note of the introduction of completions V2 and their default use. The v1 completions library is still available, but will be <em>deprecated</em> in the future. Please open an issue with any problems!</p>
<hr />
<h2>New Features</h2>
<ul>
<li>Automatically adds <code>completion</code> command for shell completions. If a <code>completion</code> command is already provided, uses that instead. This will <em>automatically</em> provide shell completions for bash, zsh, fish, and PowerShell  <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1192">spf13/cobra#1192</a>
<ul>
<li>Users can configure the command auto creation:
<ul>
<li>disable the creation of the completion command</li>
<li>disable completion descriptions</li>
<li>disable the <code>--no-descriptions</code> flag for &quot;always on&quot; completion descriptions</li>
</ul>
</li>
</ul>
</li>
<li>Introduction of bash completions V2, a uniform completion approach which include completion descriptions. The V1 bash completions are still available <em>and will be deprecated</em> in a latter release - <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1146">spf13/cobra#1146</a>
<ul>
<li>Note that projects providing completion through a different command name (say a command named &quot;complete&quot;) will continue to use v1 for their own command but will also provide cobra's implicit &quot;completion&quot; command which will use v2, unless of course, these projects take the time to disable the default &quot;completion&quot; command as noted above.</li>
</ul>
</li>
<li>Commands now support context being passed to completions - <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1265">spf13/cobra#1265</a>
<ul>
<li>An example can be found here: <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1265#issuecomment-734551031">spf13/cobra#1265</a></li>
</ul>
</li>
<li>Removed dependency on<code>mitchellh/go-homedir</code> in favor of core Go <code>os.UserHomeDir()</code> - <a href="8eaca5f0f4</a></li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li>Fix trailing whitespace not being handled in powershell completion scripts <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1342">spf13/cobra#1342</a></li>
<li>Bash completion variable leak fix <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1352">spf13/cobra#1352</a></li>
<li>Fish shell completions correctly ignore trailing empty lines <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1284">spf13/cobra#1284</a></li>
<li>PowerShell completions fix for &quot;no file comp directive&quot; - <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1363">spf13/cobra#1363</a></li>
<li>Custom completions now correctly handle multiple shorthand flags together - <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1258">spf13/cobra#1258</a></li>
<li>zsh completions now correctly handle <code>ShellDirectiveCompletionNoSpace</code> and file completion all the time - <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1213">spf13/cobra#1213</a></li>
<li>Multiple fixes / improvements to the fish shell support - <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1249">spf13/cobra#1249</a></li>
<li>Fix home directory config not loading correctly - <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1282">spf13/cobra#1282</a></li>
<li>Fix for <code>RegisterFlagCompletionFunc</code> as a global var not working in multi-threaded programs: <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1423">spf13/cobra#1423</a></li>
<li>Custom completions correctly do not complete flags after args when interspersed is false <a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1308">#1308</a></li>
</ul>
<h2>Testing</h2>
<ul>
<li>Deprecated Travis CI. Now fully using Github Actions - <a href="d0f318d45b</a></li>
<li>Added test cases and enhancements (thank you to everyone for taking the time to add tests to your PRs!)</li>
<li>Shoutout to <a href="https://github.com/marckhouzam"><code>@​marckhouzam</code></a> and <a href="https://github.com/Luap99"><code>@​Luap99</code></a> for their hard work on a cobra command completions testing library. <a href="https://github.com/marckhouzam/cobra-completion-testing">Check out the repo here!</a></li>
</ul>
<h2>Security</h2>
<ul>
<li>Bump viper to 1.8.1. This corrects several issues with vulnerabilities existing in the dependency tree - <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1433">spf13/cobra#1433</a></li>
</ul>
<h2>Other</h2>
<ul>
<li>Add PR labeler with pull_request_target to enable tests to run from forks - <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1338">spf13/cobra#1338</a></li>
<li>CI using MSYS2 windows machines pull latest - <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1366">spf13/cobra#1366</a></li>
<li>Multiple small fixes to spelling / documentation - <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1349">spf13/cobra#1349</a> <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1417">spf13/cobra#1417</a> <a href="https://github-redirect.dependabot.com/spf13/cobra/pull/1434">spf13/cobra#1434</a></li>
</ul>
<p><em><em>Thank you to <em>all</em> our amazing contributors 🐍🚀</em></em></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/spf13/cobra/blob/master/CHANGELOG.md">github.com/spf13/cobra's changelog</a>.</em></p>
<blockquote>
<h1>Cobra Changelog</h1>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="de187e874d"><code>de187e8</code></a> Fix flag completion (<a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1438">#1438</a>)</li>
<li><a href="07861c800d"><code>07861c8</code></a> Fix documentation (<a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1434">#1434</a>)</li>
<li><a href="5738d6b72d"><code>5738d6b</code></a> Add install instructions for zsh on Mac OS (<a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1417">#1417</a>)</li>
<li><a href="5d46ac904d"><code>5d46ac9</code></a> custom comp: do not complete flags after args when interspersed is false (<a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1308">#1308</a>)</li>
<li><a href="3c8a19ecd3"><code>3c8a19e</code></a> fix RegisterFlagCompletionFunc concurrent map writes error (<a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1423">#1423</a>)</li>
<li><a href="2dea4f2ef3"><code>2dea4f2</code></a> Bump to viper 1.8.1 (<a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1433">#1433</a>)</li>
<li><a href="b36196066e"><code>b361960</code></a> Bash completion V2 with completion descriptions (<a href="https://github-redirect.dependabot.com/spf13/cobra/issues/1146">#1146</a>)</li>
<li><a href="d0f318d45b"><code>d0f318d</code></a> ci: deprecate Travis CI</li>
<li><a href="8eaca5f0f4"><code>8eaca5f</code></a> drop mitchellh/go-homedir (<a href="https://github-redirect.dependabot.com/spf13/cobra/issues/853">#853</a>)</li>
<li><a href="ace6b14345"><code>ace6b14</code></a> readme: split 'Getting Started' into 'user_guide.md'</li>
<li>Additional commits viewable in <a href="https://github.com/spf13/cobra/compare/v1.1.3...v1.2.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/spf13/cobra&package-manager=go_modules&previous-version=1.1.3&new-version=1.2.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)


</details>
This commit is contained in:
dependabot[bot] 2021-07-07 14:59:50 +00:00 committed by GitHub
parent 0e237359f5
commit a3d8b5843b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

2
go.mod
View File

@ -37,7 +37,7 @@ require (
github.com/regen-network/cosmos-proto v0.3.1
github.com/rs/zerolog v1.23.0
github.com/spf13/cast v1.3.1
github.com/spf13/cobra v1.1.3
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.8.1
github.com/stretchr/testify v1.7.0

6
go.sum
View File

@ -702,8 +702,8 @@ github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3
github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU=
github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE=
github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI=
github.com/spf13/cobra v1.1.3 h1:xghbfqPkxzxP3C/f3n5DdpAbdKLj4ZE4BWQI362l53M=
github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo=
github.com/spf13/cobra v1.2.1 h1:+KmjbUw1hriSNMF55oPrkZcb27aECyrj8V2ytv7kWDw=
github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk=
github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
@ -874,7 +874,6 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@ -1092,7 +1091,6 @@ golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4f
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.2 h1:kRBLX7v7Af8W7Gdbbc908OJcdgtK8bOz9Uaj8/F1ACA=
golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=