-
Notifications
You must be signed in to change notification settings - Fork 23
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
Migrate to spf13/cobra for CLI #11
Conversation
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justaugustus The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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
/hold because I imagine @Pluies may want to weigh in :)
Definitely! Thanks for putting the hold on, Dan! |
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.
Just some nits here and there, otherwise LGTM 👍
// Variables set by GoReleaser on release | ||
version = "dev" // nolint: deadcode,unused,varcheck | ||
commit = "none" // nolint: deadcode,unused,varcheck | ||
date = "unknown" // nolint: deadcode,unused,varcheck |
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.
I suggest we implement this in a follow-up PR as dedicated sub-command to avoid adding dead-code.
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.
+1
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.
Added a TODO for this.
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
Signed-off-by: Stephen Augustus <saugustus@vmware.com> Co-authored-by: Sascha Grunert <sgrunert@suse.com>
Thanks @saschagrunert. Addressed your feedback! |
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.
Thanks!
/lgtm
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.
That looks great! cobra seems to be the most commonly used option, so good all around 👍
/hold cancel |
Hmm, the label is removed but tide is still unhappy... Let's tryyyy |
Heyyyy, here we go! |
What type of PR is this?
/kind cleanup feature design
What this PR does / why we need it:
This is somewhat minor change, but enables more contributors to potentially work on zeitgeist, given that all of the Release Engineering in https://github.com/kubernetes/release uses cobra (as well as many other Kubernetes codebases).
Behavior change:
The previous
local
subcommand has been consolidated into thevalidate
subcommand.
zeitgeist validate
now defaults to a local validation unless the--remote
flag is specified (which does both remote and local validation)./assign @Pluies @saschagrunert @hasheddan @cpanato
cc: @kubernetes-sigs/release-engineering
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?