Issue 6651: Added alias ls for dvc list (#6683)

This commit is contained in:
Amey Kulkarni
2021-09-25 21:14:11 +03:00
committed by GitHub
parent 7fe370b729
commit fbd8f5c185
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -54,6 +54,7 @@ def add_parser(subparsers, parent_parser):
)
list_parser = subparsers.add_parser(
"list",
aliases=["ls"],
parents=[parent_parser],
description=append_doc_link(LIST_HELP, "list"),
help=LIST_HELP,
+5
View File
@@ -109,3 +109,8 @@ def test_show_colors(mocker, capsys, monkeypatch):
"\x1b[01;34msrc\x1b[0m",
"\x1b[01;32mrun.sh\x1b[0m",
]
def test_list_alias():
cli_args = parse_args(["ls", "local_dir"])
assert cli_args.func == CmdList