From b92b1ba0bb279d89f1f9d02b8cc496324905b8e8 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Fri, 12 Oct 2018 09:49:49 -0700 Subject: [PATCH] Add `cloud` command to bash completion --- contrib/bash/completion.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/bash/completion.sh b/contrib/bash/completion.sh index 07c8cdcf4..a3963a7c7 100644 --- a/contrib/bash/completion.sh +++ b/contrib/bash/completion.sh @@ -53,7 +53,7 @@ __vagrantinvestigate() { _vagrant() { cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" - commands="box connect destroy docker-exec docker-logs docker-run global-status halt help init list-commands login package plugin provision push rdp reload resume rsync rsync-auto share snapshot ssh ssh-config status suspend up version" + commands="box cloud connect destroy docker-exec docker-logs docker-run global-status halt help init list-commands login package plugin provision push rdp reload resume rsync rsync-auto share snapshot ssh ssh-config status suspend up version" if [ $COMP_CWORD == 1 ] then @@ -95,6 +95,11 @@ _vagrant() { COMPREPLY=($(compgen -W "${box_commands}" -- ${cur})) return 0 ;; + "cloud") + cloud_commands="auth box search provider publish version" + COMPREPLY=($(compgen -W "${cloud_commands}" -- ${cur})) + return 0 + ;; "plugin") plugin_commands="install license list uninstall update" COMPREPLY=($(compgen -W "${plugin_commands}" -- ${cur}))