-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add support for --fields
parameter in search
command
#84
Conversation
cloudinary_cli/core/search.py
Outdated
@@ -17,7 +17,8 @@ | |||
e.g. cld search cat AND tags:kitten -s public_id desc -f context -f tags -n 10 | |||
""") | |||
@argument("query", nargs=-1) | |||
@option("-f", "--with_field", multiple=True, help="Specify which asset attribute to include in the result.") | |||
@option("-f", "--with_field", multiple=True, help="Specify which asset attribute to add in the result.") |
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.
What does multiple=True mean? Is it that you can include this option more than once in the same command?
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.
yes, you can --with_field tags --with_field context
, I also added support for combining them together, like --with_field tags,context
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.
Doesn't that end up being the same as fields then?
Co-authored-by: carlevison <[email protected]>
Co-authored-by: carlevison <[email protected]>
Co-authored-by: carlevison <[email protected]>
Co-authored-by: carlevison <[email protected]>
Brief Summary of Changes
What does this PR address?
Are tests included?
Reviewer, please note:
Checklist: