Files
dvc/dvc/command/metrics.py
T
Ruslan Kuprieiev 1e7d548ca4 dvc: add dvc metrics
Fixes #592

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-04-19 20:47:37 +03:00

12 lines
499 B
Python

from dvc.command.common.base import CmdBase
class CmdMetrics(CmdBase):
def run(self):
for branch, metric in self.project.metrics(self.args.path,
json_path=self.args.json_path,
tsv_path=self.args.tsv_path,
htsv_path=self.args.htsv_path).items():
self.project.logger.info("{}: {}".format(branch, metric))
return 0