mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-18 23:10:14 +01:00
15 lines
463 B
Python
15 lines
463 B
Python
from dvc.exceptions import DvcException
|
|
from dvc.command.base import CmdBase
|
|
|
|
|
|
class CmdMove(CmdBase):
|
|
def run(self):
|
|
try:
|
|
self.project.move(self.args.src, self.args.dst)
|
|
except DvcException as ex:
|
|
msg = 'Failed to move \'{}\' -> \'{}\''.format(self.args.src,
|
|
self.args.dst)
|
|
self.project.logger.error(msg, ex)
|
|
return 1
|
|
return 0
|