mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-06 07:18:28 +01:00
13 lines
356 B
Python
13 lines
356 B
Python
from dvc.exceptions import DvcException
|
|
from dvc.command.base import CmdBase
|
|
|
|
|
|
class CmdImport(CmdBase):
|
|
def run(self):
|
|
try:
|
|
self.project.imp(self.args.url, self.args.out)
|
|
except DvcException as ex:
|
|
self.project.logger.error('Failed to import {}'.format(self.args.url), ex)
|
|
return 1
|
|
return 0
|