-
Notifications
You must be signed in to change notification settings - Fork 65
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
cli: import from directory #55
Conversation
def location(name, uri, default): | ||
"""Create new location.""" | ||
from .models import Location | ||
location = Location(name=name, uri=uri, default=default) |
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 previous default location should be unset. Perhaps implemented via a Location.create()
?
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.
We can create an issue if somebody needs it otherwise I can remove the cli completely and keep only the helper function.
b38cb3c
to
54e6c96
Compare
@click.argument('source', type=click.Path(exists=True, resolve_path=True)) | ||
@click.option('--checksum/--no-checksum', default=False) | ||
@with_appcontext | ||
def bucket_from(source, checksum): |
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.
Would it perhaps make sense to split it in two commands into:
bucket
(create a bucket)cp <source> <bucket, key?>
(then we could later extend withcp <bucket, key?> <destination>
as well ascp <src bucket, key> <dest bucket, key>
) so we have basic upload/download cli.
I.e. basically imitating unix commands.
Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
No description provided.