-
Notifications
You must be signed in to change notification settings - Fork 54
cli: debug: various improvements #995
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
Conversation
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.
Will you squash this PR? If not I'd suggest to at least squash some of the commits together...
Alright, I went a bit loco with the %s -> %q replacement but I think it looks good for the most part and gives a distinction whether a string is hard-coded or a variable in a debug message. This also went into other components so double-check if that's fine, please. I kinda went hardcore with manual search & replace. |
Yes, that was a little to much maybe. There are indeed situations where it isn't needed/wanted to use %q. The versionsapi uses the %q where need. I'd suggest to only replace %s with %q when handling things like user input for path etc. Also please don't replace %s with %v. You can also print errors with %s without calling err.Error(). |
I'll just limit this to flag parsing and user entry from the config then. That should hopefully be a clear enough distinction. |
Another attempt I guess. Revert commit is not 100% clean since other changes were already on top but I'll squash everything later anyway. |
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.
Rest LGTM
Haven't seen the last review comment. Yes, I'll squash the whole PR. Most changes are not notable enough for single commits. |
Proposed change(s)
create
(mini up
,create
)Nothing truly groundbreaking, not sure if change log worthy but I haven't tagged it for now.
(Also more of a refactor than a fix so ignore the branch naming)
Checklist