mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-11 15:28:27 +01:00
Fixes #277 Fixes #657 Signed-off-by: Ruslan Kuprieiev <[email protected]>
14 lines
334 B
Python
14 lines
334 B
Python
from dvc.project import Project
|
|
from dvc.logger import Logger
|
|
from dvc.command.common.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
|