-
Notifications
You must be signed in to change notification settings - Fork 61
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
bootc-image-builder/main: extend version command (HMS-5211) #761
Conversation
a335203
to
511e009
Compare
/jira-epic HMS-5208 |
511e009
to
47b150a
Compare
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.
Thank you! I added some inline ideas/thoughts for your consideration :)
47b150a
to
889109f
Compare
889109f
to
55aee70
Compare
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.
Idea: the format is almost yaml. What if we made a few adjustments, and actually make it yaml? This way, it would be parseable both by human eyes, and by yaml parsers (e.g. yq).
bootc does this, and I kinda like it. Ftr, I don't we need to use a fully fledged yaml library I think, our output is super simple.
@ondrejbudai this actually is yaml compatible - even |
Extend version with printing also the timestamp and "tainted" if not all files are checked in. Also support calling it with `--version` or `-v`.
Changes the version output to be more parser friendly for simple split or yaml parsers.
Error handling on argument parsing. Remark from golangci-lint.
55aee70
to
8cbd0d0
Compare
The space after
|
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.
Awesome! :) I didn't know that yaml can have spaces in keys. Thanks!
Extend version with printing also the timestamp and "tainted" if not all files are checked in.
Also support calling it with
--version
,-v
orversion
.JIRA: HMS-5211