completion: fix dvc exp completion

This commit is contained in:
Saugat Pachhai (सौगात)
2022-04-19 17:28:22 +05:45
committed by Saugat Pachhai
parent c0580c740b
commit f3a7ec7f48
+2 -2
View File
@@ -31,7 +31,7 @@ _dvc_compgen_stages_and_files() {
}
_dvc_compgen_exps() {
local _dvc_exps=($(dvc exp list -q --all --names-only))
local _dvc_exps=($(dvc exp list -q --all-commits --names-only))
compgen -W "${_dvc_exps[*]}" -- $1
}
""",
@@ -64,7 +64,7 @@ _dvc_compadd_stages_and_files() {
}
_dvc_compadd_exps() {
_describe 'experiments' "($(dvc exp list -q -a --names-only))"
_describe 'experiments' "($(dvc exp list -q --all-commits --names-only))"
}
""",
}