Skip to content
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

Merged
merged 23 commits into from
Mar 20, 2020
Merged

General refactor of cleanup commands #13

merged 23 commits into from
Mar 20, 2020

Conversation

ccremer
Copy link
Contributor

@ccremer ccremer commented Mar 9, 2020

No description provided.

It must have gotten lost during the refacotirng
The flags were parsed for orphan, but not history
@ccremer ccremer marked this pull request as ready for review March 19, 2020 10:01
@ccremer ccremer requested a review from srueg March 19, 2020 10:01
cmd/root.go Outdated Show resolved Hide resolved
cmd/root.go Outdated Show resolved Hide resolved
cmd/root.go Outdated Show resolved Hide resolved
pkg/kubernetes/util.go Outdated Show resolved Hide resolved
@ccremer
Copy link
Contributor Author

ccremer commented Mar 19, 2020

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)?

@ccremer ccremer requested a review from srueg March 20, 2020 08:54
@ccremer ccremer merged commit 85b5bd0 into master Mar 20, 2020
@ccremer
Copy link
Contributor Author

ccremer commented Mar 20, 2020

Actually I'll do a separate PR for the rename

@srueg srueg deleted the separation branch March 20, 2020 10:53
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.")
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants