mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
completion: fix dvc exp completion
This commit is contained in:
committed by
Saugat Pachhai
parent
c0580c740b
commit
f3a7ec7f48
@@ -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))"
|
||||
}
|
||||
""",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user