-
Notifications
You must be signed in to change notification settings - Fork 553
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
Fix and honor --json flag for find command. #2263
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2263 +/- ##
=========================================
- Coverage 9.08% 9.07% -0.01%
=========================================
Files 100 100
Lines 9598 9607 +9
=========================================
Hits 872 872
- Misses 8595 8604 +9
Partials 131 131
Continue to review full report at Codecov.
|
14125ca
to
98b3a32
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.
LGTM & tested
stage/ | ||
mc |
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.
make ending with newline
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.
done
@@ -43,21 +42,17 @@ import ( | |||
|
|||
// findMSG holds JSON and string values for printing | |||
type findMSG struct { |
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.
I think you have a consistent name like findMessage
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.
Not part of this PR. Needs a cleanup in separate PR.
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 fine
Currently `mc find` didn't honor `--json` flag properly, this PR addresses that. Additionally also take care of `List` returning errors and handle them appropriately. Fixes minio#2252
98b3a32
to
d60194e
Compare
Currently
mc find
didn't honor--json
flag properly,this PR addresses that.
Additionally also take care of
List
returning errorsand handle them appropriately.
Fixes #2252