Output shell completion code for the specified shell
Output shell completion code for the specified shell (bash, zsh, or fish). The shell code must be evalutated to provide interactive completion of cozy-stack commands.
Bash:
$ source <(cozy-stack completion bash)
$ cozy-stack completion bash > /etc/bash_completion.d/cozy-stack
$ cozy-stack completion bash > $(brew --prefix)/etc/bash_completion.d/cozy-stack
Note: this requires the bash-completion framework, which is not installed by default on Mac. This can be installed by using 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
Zsh:
$ echo "autoload -U compinit; compinit" >> ~/.zshrc
$ cozy-stack completion zsh > "${fpath[1]}/_cozy-stack"
fish:
$ cozy-stack completion fish | source
$ cozy-stack completion fish > /etc/fish/completions/cozy-stack.fish
cozy-stack completion <shell> [flags]
-h, --help help for completion
--admin-host string administration server host (default "localhost")
--admin-port int administration server port (default 6060)
-c, --config string configuration file (default "$HOME/.cozy.yaml")
--host string server host (default "localhost")
-p, --port int server port (default 8080)
- cozy-stack - cozy-stack is the main command