From f3a7ec7f48ed215d3ddc215555ed1c8397c95b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Tue, 19 Apr 2022 17:14:17 +0545 Subject: [PATCH] completion: fix dvc exp completion --- dvc/commands/completion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dvc/commands/completion.py b/dvc/commands/completion.py index 1a68cf58e..6e56ce7b7 100644 --- a/dvc/commands/completion.py +++ b/dvc/commands/completion.py @@ -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))" } """, }