mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-18 23:10:14 +01:00
13 lines
295 B
Python
13 lines
295 B
Python
from dvc.logger import Logger
|
|
from dvc.command.base import CmdBase
|
|
|
|
|
|
class CmdInstall(CmdBase):
|
|
def run_cmd(self):
|
|
try:
|
|
self.project.install()
|
|
except Exception as e:
|
|
Logger.error('Failed to install dvc hooks', e)
|
|
return 1
|
|
return 0
|