forked from iterative/dvc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
list: rename target param to path, update docs (iterative#3462)
Close iterative#3381
- Loading branch information
Showing
5 changed files
with
57 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ def run(self): | |
try: | ||
entries = Repo.ls( | ||
self.args.url, | ||
self.args.target, | ||
self.args.path, | ||
rev=self.args.rev, | ||
recursive=self.args.recursive, | ||
outs_only=self.args.outs_only, | ||
|
@@ -45,24 +45,18 @@ def run(self): | |
|
||
|
||
def add_parser(subparsers, parent_parser): | ||
LIST_HELP = "List files and DVC outputs in the repo." | ||
LIST_HELP = ( | ||
"List repository contents, including files" | ||
" and directories tracked by DVC and by Git." | ||
) | ||
list_parser = subparsers.add_parser( | ||
"list", | ||
parents=[parent_parser], | ||
description=append_doc_link(LIST_HELP, "list"), | ||
help=LIST_HELP, | ||
formatter_class=argparse.RawTextHelpFormatter, | ||
) | ||
list_parser.add_argument( | ||
"url", | ||
help="Supported urls:\n" | ||
"/path/to/file\n" | ||
"/path/to/directory\n" | ||
"C:\\\\path\\to\\file\n" | ||
"C:\\\\path\\to\\directory\n" | ||
"https://github.com/path/to/repo\n" | ||
"[email protected]:path/to/repo.git\n", | ||
) | ||
list_parser.add_argument("url", help="Location of DVC repository to list") | ||
list_parser.add_argument( | ||
"-R", | ||
"--recursive", | ||
|
@@ -76,7 +70,7 @@ def add_parser(subparsers, parent_parser): | |
"--rev", nargs="?", help="Git revision (e.g. branch, tag, SHA)" | ||
) | ||
list_parser.add_argument( | ||
"target", | ||
"path", | ||
nargs="?", | ||
help="Path to directory within the repository to list outputs for", | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters