-
Notifications
You must be signed in to change notification settings - Fork 726
[cli] format find
output
#794
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
Codecov Report
@@ Coverage Diff @@
## master #794 +/- ##
==========================================
+ Coverage 67.69% 68.26% +0.57%
==========================================
Files 177 177
Lines 6219 6268 +49
==========================================
+ Hits 4210 4279 +69
+ Misses 2009 1989 -20
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #794 +/- ##
==========================================
+ Coverage 67.69% 68.28% +0.59%
==========================================
Files 177 177
Lines 6219 6272 +53
==========================================
+ Hits 4210 4283 +73
+ Misses 2009 1989 -20
Continue to review full report at Codecov.
|
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.
Elegant, clear, precise. Quality coding here! I'm ready to approve, I'll just wait for your reply on a couple of comments.
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.
The --show-unsupported
table and CSV output has this for me:
core,snapcraft,core16,,Snapcraft builder for Core 16,20190515
core18,snapcraft,,,Snapcraft builder for Core 18,20190515
core,,core16,Ubuntu,Core 16,20190424
core18,,,Ubuntu,Core 18,20190213
but the YAML & JSON do not include the duplicated entries "core" and "core18" - they only have the last ones.
Very edge-case, I presume this just points out the problem with duplicate image names?
Other than issue @ricab pointed out, it's fine
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.
Very edge-case, I presume this just points out the problem with duplicate image names?
Right, I'll need to include the remote name in there after all.
@gerboland fixed, there's some duplication with the |
" \"version\": \"20190520\"\n" | ||
" }\n" | ||
" }\n" | ||
"}\n"; |
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 a suggestion, raw string literals might make this nicer on the eye: https://stackoverflow.com/a/5460235
I don't think it's worth the trouble tbh. |
@Saviq @gerboland I beg to differ. The "trouble" is negligible and quite worth eliminating triplication. This is the sort of thing that accumulates with time and makes bigger trouble in the long run. Just my opinion. |
@ricab @gerboland abstracted out a tiny utility for this then. |
@Saviq perfect, happy codebase says thanks 😃 And me too, thanks a lot! |
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.
Detail: autocomplete for --format
. Can also just be offloaded to a separate issue (it's missing for or just left alone if we consider it an advanced option we don't want to complete. @Saviq I'll wait to know what you want to do and then approve.--show-unsupported
too)
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.
OK approving then
bors r=gerboland,ricab
794: [cli] format `find` output r=gerboland,ricab a=Saviq Co-authored-by: Michał Sawicz <[email protected]>
Build succeeded |
794: [cli] format `find` output r=gerboland,ricab a=Saviq Co-authored-by: Michał Sawicz <[email protected]>
794: [cli] format `find` output r=gerboland,ricab a=Saviq Co-authored-by: Michał Sawicz <[email protected]>
794: [cli] format `find` output r=gerboland,ricab a=Saviq Co-authored-by: Michał Sawicz <[email protected]>
No description provided.