Make bash completion for "vagrant box add" patch by @ip1981

This commit is contained in:
bronzdoc 2022-10-19 17:02:23 -06:00
parent 1dbc204d24
commit 3f08d3383d

View File

@ -153,6 +153,21 @@ _vagrant() {
COMPREPLY=($(compgen -W "${box_list}" -- ${cur})) COMPREPLY=($(compgen -W "${box_list}" -- ${cur}))
return 0 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 esac