mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-11 23:10:10 +01:00
Issue 6651: Added alias ls for dvc list (#6683)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user