dvc: introduce -m option for repro

Fixes #188

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-06-16 16:01:32 +03:00
parent c733b8130b
commit 83d831735c
4 changed files with 18 additions and 10 deletions
+5 -10
View File
@@ -3,16 +3,11 @@ from dvc.command.common.base import CmdBase
class CmdMetricsShow(CmdBase):
def run(self):
res = self.project.metrics_show(self.args.path,
json_path=self.args.json_path,
tsv_path=self.args.tsv_path,
htsv_path=self.args.htsv_path,
all_branches=self.args.all_branches)
for branch, val in res.items():
self.project.logger.info('{}:'.format(branch))
for fname, metric in val.items():
self.project.logger.info('\t{}: {}'.format(fname, metric))
self.project.metrics_show(self.args.path,
json_path=self.args.json_path,
tsv_path=self.args.tsv_path,
htsv_path=self.args.htsv_path,
all_branches=self.args.all_branches)
return 0