Files
dvc/dvc/command/install.py
T
Mr. Outis 4c420d5f4d logger [rfc]: Use a module instead of a class
- Remove deprecation warnings
- Format error output and remove duplicated info

Close #1086
2018-12-23 21:06:39 -06:00

13 lines
285 B
Python

import dvc.logger as logger
from dvc.command.base import CmdBase
class CmdInstall(CmdBase):
def run_cmd(self):
try:
self.project.install()
except Exception:
logger.error('failed to install dvc hooks')
return 1
return 0