Merge pull request #12962 from bronzdoc/vagrant-box-add-completion

Make bash completion for "vagrant box add"
This commit is contained in:
Sophia Castellarin 2023-01-04 10:43:37 -08:00 committed by GitHub
commit 9f9e02b61b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,6 +153,21 @@ _vagrant() {
COMPREPLY=($(compgen -W "${box_list}" -- ${cur}))
return 0
;;
"add")
local add_commands="\
--name \
--checksum \
--checksum-type \
-c --clean \
-f --force \
"
if [[ $cur == -* ]]; then
COMPREPLY=($(compgen -W "${add_commands}" -- ${cur}))
else
COMPREPLY=($(compgen -o default -- "${cur}"))
fi
return 0
;;
*)
;;
esac