dvc: introduce 'dvc cache fetch'

Fixes #521

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-03-08 07:08:45 +02:00
parent 783fad935b
commit 36be0a221a
3 changed files with 22 additions and 2 deletions
+10
View File
@@ -40,6 +40,16 @@ class CmdDataPush(CmdDataBase):
return 0
class CmdDataFetch(CmdDataBase):
def do_run(self, target=None):
try:
self.project.fetch(target=target, jobs=self.args.jobs)
except DvcException as exc:
self.project.logger.error('Failed to fetch data from the cloud', exc)
return 1
return 0
class CmdDataStatus(CmdDataBase):
def _show(self, status):
for s in status: