proffer

Proffer is a cross-platform tool to distribute cloud images between diff accounts and regions.

View on GitHub

proffer completion

Generates shell completion script for specified shell type

Synopsis

Output shell completion code for the specified shell (bash/zsh). The shell code must be evaluated to provide interactive completion of proffer commands. This can be done by sourcing it from the .bash_profile.

Note: this requires the bash-completion framework.

To install it on Mac use homebrew: $ brew install bash-completion

Once installed, bash_completion must be evaluated. This can be done by adding the following line to the .bash_profile $ source $(brew –prefix)/etc/bash_completion

If bash-completion is not installed on Linux, please install the ‘bash-completion’ package via your distribution’s package manager.

Note for zsh users: [1] zsh completions are only supported in versions of zsh >= 5.2

proffer completion SHELL [flags]

Examples


For bash-completion
#1 Install bash completion on a Mac using homebrew
	$ brew install bash-completion
	$ printf "\n# Bash completion support\nsource $(brew --prefix)/etc/bash_completion\n" >> $HOME/.bash_profile
	$ source $HOME/.bash_profile

#2 Load the proffer completion code for bash into the current shell
	$ source <(proffer completion bash)

#3 Write bash completion code to a file and source it from .bash_profile
	$ proffer completion bash > ~/.proffer/proffer_completion.bash.inc
	$ printf "\n# Proffer shell completion\nsource '$HOME/.proffer/proffer_completion.bash.inc'\n" >> $HOME/.bash_profile
	$ source $HOME/.bash_profile

For zsh-completion
# Load the proffer completion code for zsh[1] into the current shell
	$ source <(proffer completion zsh)

Options

  -h, --help   help for completion

Options inherited from parent commands

  -d, --debug             Set debug flag to get detailed logging
      --var-file string   YAML file containing dynamic variables

SEE ALSO

Auto generated by spf13/cobra on 12-Jun-2020