-
Notifications
You must be signed in to change notification settings - Fork 33
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 custom files API support #368
Conversation
2b19d82
to
d8a6bd9
Compare
d8a6bd9
to
6a4fa10
Compare
a08839b
to
60ad2bf
Compare
It would also be nice to see tests for this. The test coverage for client is not great, but at least we would have an opportunity here to make it slightly better. |
60ad2bf
to
6647a30
Compare
6647a30
to
01b8787
Compare
b3091a5
to
028e00a
Compare
Add custom files CRUD support Reduce client.verify complexity
028e00a
to
15c4ad1
Compare
@arg.service_name | ||
@arg("--file_id", help="A file ID, usually an uuid4 string", required=True) | ||
@arg("--target_filepath", help="Where to save the file downloaded") | ||
@arg("--stdout_write", help="Write to the stdout instead of file", action="store_true") |
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 sure if this flag makes sense. E.g from the face of it (if I read this correctly) the default if target_filepath is not given is to write to stdout, so the question is what is the use case for getting the file but not writing it to anywhere?
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 see it like fetch file | grep foo | sed 's/o/i/' >> new_file.txt
This commit adds custom file support for Aiven services