-
Notifications
You must be signed in to change notification settings - Fork 3
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
General refactor of cleanup commands #13
Conversation
Was not used or implemented
- Imagestream is an OpenShift specific term. - with the new 'orphan' command, this is now more separable.
Reduces CI jobs, simplifies local build too
Copy-pasting image tags is cumbersome with logging framework in a single line.
To align with orphan mode
Go modules tend to be rather flat as opposed to the Java/python style hierarchies
It actually seems to be the case that the pkg dir is a convention for CLI/cobra tools
It must have gotten lost during the refacotirng
The flags were parsed for orphan, but not history
There are now a number of commits. Should I squash them all together, or try to separate some aspects of it, to keep the thought process a bit (although I won't make sure that the individual commits still compile)? |
Actually I'll do a separate PR for the rename |
os.Exit(1) | ||
cmd.SetVersion(fmt.Sprintf("%s, commit %s, date %s", version, commit, date)) | ||
if err := cmd.Execute(); err != nil { | ||
log.WithError(err).Fatal("Command aborted.") |
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.
When I approach the CLI as a noob my first impression is that the user feedback is intimidating. The CLI fails hard when an argument is not or not correctly provided.
I would suggest a more typical approach, which is simply showing the usage, like e.g. the hugo CLI client does it.
No description provided.