sq completion
To load completions:
Bash:
$ source <(sq completion bash)
# To load completions for each session, execute once:
Linux:
$ sq completion bash > /etc/bash_completion.d/sq
MacOS:
$ sq completion bash > /usr/local/etc/bash_completion.d/sq
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:
$ sq completion zsh > "${fpath[1]}/_sq"
# You will need to start a new shell for this setup to take effect.
Fish:
$ sq completion fish | source
# To load completions for each session, execute once:
$ sq completion fish > ~/.config/fish/completions/sq.fish
Powershell:
PS> sq completion powershell | Out-String | Invoke-Expression
# To load completions for every new session, run:
PS> sq completion powershell > sq.ps1
# and source this file from your powershell profile.
Usage:
sq completion [bash|zsh|fish|powershell]
Flags:
--help help for completion
Global Flags:
--config string Load config from here
--log Enable logging
--log.file string Path to log file; empty disables logging
--log.level string Log level: one of DEBUG, INFO, WARN, ERROR
-M, --monochrome Don't colorize output
-v, --verbose Verbose output