repro: implement downstream option (#1926)

* repro: implement downstream option

Close #1555

* Update scripts/completion/dvc.zsh

Co-Authored-By: mroutis <[email protected]>

* Update dvc/command/repro.py

Co-Authored-By: mroutis <[email protected]>
This commit is contained in:
Mr. Outis
2019-04-25 04:50:44 +03:00
committed by Ruslan Kuprieiev
parent 44e20f1aa8
commit c0104e2e61
7 changed files with 177 additions and 3 deletions
+7
View File
@@ -39,6 +39,7 @@ class CmdRepro(CmdBase):
all_pipelines=self.args.all_pipelines,
ignore_build_cache=self.args.ignore_build_cache,
no_commit=self.args.no_commit,
downstream=self.args.downstream,
)
if len(stages) == 0:
@@ -140,4 +141,10 @@ def add_parser(subparsers, parent_parser):
default=False,
help="Don't put files/directories into cache.",
)
repro_parser.add_argument(
"--downstream",
action="store_true",
default=False,
help="Reproduce the pipeline starting from the specified stage.",
)
repro_parser.set_defaults(func=CmdRepro)