CLI Auto-Completion
Ketch CLI supports auto-completion for most significant shells.
You can run ketch completion -h in your terminal and follow directions to set up auto-completion for your shell.
ketch completion -h
To load completions:
Bash:
$ source <(ketch completion bash)
# To load completions for each session, execute once:
# Linux:
$ ketch completion bash > /etc/bash_completion.d/ketch
# macOS:
$ ketch completion bash > /usr/local/etc/bash_completion.d/ketch
Zsh:
# If shell completion is not already enabled in your environment,
# you will need to enable it. You can execute the following once:
$ echo "autoload -U compinit; compinit" >> ~/.zshrc
# To load completions for each session, execute once:
$ ketch completion zsh > "${fpath[1]}/_ketch"
# You will need to start a new shell for this setup to take effect.
fish:
$ ketch completion fish | source
# To load completions for each session, execute once:
$ ketch completion fish > ~/.config/fish/completions/ketch.fish
PowerShell:
PS> ketch completion powershell | Out-String | Invoke-Expression
# To load completions for every new session, run:
PS> ketch completion powershell > ketch.ps1
# and source this file from your PowerShell profile.
Usage:
ketch completion [bash|zsh|fish|powershell]
Flags:
-h, --help help for completion
Updated almost 2 years ago