pull: add glob option (#5032)

* api: add glob option for pull command

Related: #4816

Signed-off-by: Ioana Grigoropol <[email protected]>

* api: add globbing utility function

Related: #4816

Signed-off-by: Ioana Grigoropol <[email protected]>

* api: use utility function for pull command

Signed-off-by: Ioana Grigoropol <[email protected]>

* Update dvc/utils/__init__.py

Co-authored-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ioana Grigoropol
2020-12-19 21:38:40 +02:00
committed by GitHub
co-authored by Ruslan Kuprieiev
parent 2ce617c642
commit f51bef040a
5 changed files with 46 additions and 13 deletions
+6
View File
@@ -179,6 +179,12 @@ def add_parser(subparsers, _parent_parser):
default=False,
help="Fetch run history for all stages.",
)
pull_parser.add_argument(
"--glob",
action="store_true",
default=False,
help="Pull cache for targets matching shell-style wildcards.",
)
pull_parser.set_defaults(func=CmdDataPull)
# Push