mesheryctl system completion
Output shell completion code
Synopsis
Output shell completion code
mesheryctl system completion [bash|zsh|fish]
Examples
# bash <= 3.2
source /dev/stdin <<< "$(mesheryctl system completion bash)"
# bash >= 4.0
source <(mesheryctl system completion bash)
# bash <= 3.2 on osx
brew install bash-completion # ensure you have bash-completion 1.3+
mesheryctl system completion bash > $(brew --prefix)/etc/bash_completion.d/mesheryctl
# bash >= 4.0 on osx
brew install bash-completion@2
mesheryctl system completion bash > $(brew --prefix)/etc/bash_completion.d/mesheryctl
# zsh
# If shell completion is not already enabled in your environment you will need
# to enable it. You can execute the following once:
# Might need to start a new shell for this setup to take effect.
$ echo "autoload -U compinit; compinit" >> ~/.zshrc
source <(mesheryctl system completion zsh)
# zsh on osx / oh-my-zsh
mesheryctl system completion zsh > "${fpath[1]}/_mesheryctl"
# fish:
mesheryctl system completion fish | source
# To load fish shell completions for each session, execute once:
mesheryctl system completion fish > ~/.config/fish/completions/mesheryctl.fish
Options
-h, --help help for completion
Options inherited from parent commands
--config string path to config file (default "/home/runner/.meshery/config.yaml") -c, --context string (optional) temporarily change the current context. -v, --verbose verbose output -y, --yes (optional) assume yes for user interactive prompts.
See Also
Go back to command reference index