Skip to content
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

Merged
merged 2 commits into from
May 20, 2016
Merged

Conversation

jirikuncar
Copy link
Member

No description provided.

@jirikuncar jirikuncar added this to the v1.0.0 milestone May 19, 2016
def location(name, uri, default):
"""Create new location."""
from .models import Location
location = Location(name=name, uri=uri, default=default)
Copy link
Member

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()?

Copy link
Member Author

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.

@jirikuncar jirikuncar force-pushed the cli-dir branch 2 times, most recently from b38cb3c to 54e6c96 Compare May 19, 2016 11:38
@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):
Copy link
Member

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 with cp <bucket, key?> <destination> as well as cp <src bucket, key> <dest bucket, key>) so we have basic upload/download cli.

I.e. basically imitating unix commands.

@coveralls
Copy link

coveralls commented May 19, 2016

Coverage Status

Coverage decreased (-2.8%) to 88.292% when pulling 54e6c96 on jirikuncar:cli-dir into a17c9a5 on inveniosoftware:master.

@coveralls
Copy link

coveralls commented May 19, 2016

Coverage Status

Coverage decreased (-2.8%) to 88.292% when pulling 54e6c96 on jirikuncar:cli-dir into a17c9a5 on inveniosoftware:master.

@coveralls
Copy link

coveralls commented May 19, 2016

Coverage Status

Coverage decreased (-3.09%) to 88.033% when pulling 74d055f on jirikuncar:cli-dir into 905420e on inveniosoftware:master.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
@coveralls
Copy link

coveralls commented May 19, 2016

Coverage Status

Coverage decreased (-3.08%) to 88.047% when pulling 1a0e59a on jirikuncar:cli-dir into 905420e on inveniosoftware:master.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
@jirikuncar jirikuncar changed the title WIP cli: import from directory cli: import from directory May 20, 2016
@jirikuncar jirikuncar mentioned this pull request May 20, 2016
@lnielsen lnielsen self-assigned this May 20, 2016
@coveralls
Copy link

coveralls commented May 20, 2016

Coverage Status

Coverage decreased (-3.04%) to 88.09% when pulling 22f17f6 on jirikuncar:cli-dir into 905420e on inveniosoftware:master.

@lnielsen lnielsen merged commit 22f17f6 into inveniosoftware:master May 20, 2016
@jirikuncar jirikuncar deleted the cli-dir branch May 20, 2016 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants