From 7e645f54c5d0ab78592436988576a0f2765e9fab Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Sat, 29 Oct 2022 21:24:26 +0200 Subject: Deprecate spack bootstrap trust/untrust (#33600) * Deprecate spack bootstrap trust/untrust * Update CI * Update tests --- share/spack/spack-completion.bash | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'share') diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash index 48e4c86b42..f0588e5368 100755 --- a/share/spack/spack-completion.bash +++ b/share/spack/spack-completion.bash @@ -425,11 +425,21 @@ _spack_bootstrap_status() { } _spack_bootstrap_enable() { - SPACK_COMPREPLY="-h --help --scope" + if $list_options + then + SPACK_COMPREPLY="-h --help --scope" + else + SPACK_COMPREPLY="" + fi } _spack_bootstrap_disable() { - SPACK_COMPREPLY="-h --help --scope" + if $list_options + then + SPACK_COMPREPLY="-h --help --scope" + else + SPACK_COMPREPLY="" + fi } _spack_bootstrap_reset() { -- cgit v1.2.3-70-g09d2