-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix minor annoyance of missing '--version' flag from some Help output #1707
Conversation
The Cobra project currently lacks enough contributors to adequately respond to all PRs. This bot triages issues and PRs according to the following rules:
|
great that you fixed it @fnickels , I also just noticed this thing. Hope it gets merged soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great @fnickels ! Thanks for fixing this.
Everything looks good except one nit.
Will do
…On Sun, Sep 18, 2022, 7:40 PM Marc Khouzam ***@***.***> wrote:
***@***.**** requested changes on this pull request.
This is great @fnickels <https://github.com/fnickels> ! Thanks for fixing
this.
Everything looks good except one nit.
------------------------------
In .gitignore
<#1707 (comment)>:
> @@ -37,3 +37,5 @@ bin
.idea/
*.iml
+
+.vscode
I guess this makes sense, but:
1. it shouldn't be in this PR
2. it is recommended to use your own global gitignore for those things
My guess is that you didn't realize it sneaked in here. Could you remove
it?
—
Reply to this email directly, view it on GitHub
<#1707 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7UQXCH3M4KU6U6W3MZQQDV67HBJANCNFSM5WXXNOHQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Yeah, That's what I used.
I sort of knew this existed but have always been too lazy to look it up and
configure it.
Should the `.idea/` reference also be removed from `.gitignore`?
francis…
*Francis J. Nickels III*
Riot Games
***@***.*** | C: +1.310.598.8267
Summoner Name: target1
…On Mon, Sep 19, 2022 at 10:27 AM Marc Khouzam ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In .gitignore
<#1707 (comment)>:
> @@ -37,3 +37,5 @@ bin
.idea/
*.iml
+
+.vscode
If it helps: git config --global core.excludesfile ~/.gitignore
—
Reply to this email directly, view it on GitHub
<#1707 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7UQXD7O7S5PIDLZHOQHFTV7CO63ANCNFSM5WXXNOHQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There is no official agreement to not put those things in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @fnickels !
@jpmcb This PR fixes the fact that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Just a quick touch up:
- Can you squash your commits and write a single commit message that covers this? (if not, I'd be happy to squash / merge and write one)
I'll address the merging of the commits myself.
I've gone ahead and done it myself. |
happy to help |
* main: (39 commits) Add '--version' flag to Help output (spf13#1707) Expose ValidateRequiredFlags and ValidateFlagGroups (spf13#1760) Document option to hide the default completion cmd (spf13#1779) ci: add workflow_dispatch (spf13#1387) add missing license headers (spf13#1809) ci: use action/setup-go's cache (spf13#1783) Adjustments to documentation (spf13#1656) Rename Powershell completion tests (spf13#1803) Support for case-insensitive command names (spf13#1802) Deprecate ExactValidArgs() and test combinations of args validators (spf13#1643) Use correct stale action `exempt-` yaml keys (spf13#1800) With go 1.18, we must use go install for a binary (spf13#1726) Clarify SetContext documentation (spf13#1748) ci: test on Golang 1.19 (spf13#1782) fix: show flags that shadow parent persistent flag in child help (spf13#1776) Update gopkg.in/yaml.v2 to gopkg.in/yaml.v3 (spf13#1766) fix(bash-v2): activeHelp length check syntax (spf13#1762) fix: correct command path in see_also for YAML doc (spf13#1771) build(deps): bump github.com/inconshreveable/mousetrap (spf13#1774) docs: add zitadel to the list (spf13#1772) ...
In the current code, with a version set,
app help
does not display the switch option--version
, whileapp --help
does.