completion
Dump the shell completion script
The completion command dumps the shell completion script required to use shell autocompletion (currently, bash, fish, zsh completion are supported).
Static installation
Dump the script to a global completion file and restart your shell:
./bin/acli completion | sudo tee /etc/bash_completion.d/acli
Or dump the script to a local file and source it:
./bin/acli completion > completion.sh # source the file whenever you use the project source completion.sh # or add this line at the end of your "~/.bashrc" file: source /path/to/completion.sh
Dynamic installation
Add this to the end of your shell configuration file (e.g. "~/.bashrc"):
eval "$(/home/runner/work/cli/cli/bin/acli completion )"
Usage
acli completion [--debug] [--] [<shell>]
Arguments
shell
Optional
The shell type (e.g. "bash"), the value of the "$SHELL" env var will be used if this is not given
Options
--debug
Optional
Tail the completion debug log
Defaults to
false
--help | -h
Optional
Display help for the given command. When no command is given display help for the `list` command
Defaults to
false
--quiet | -q
Optional
Do not output any message
Defaults to
false
--verbose | -v|-vv|-vvv
Optional
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Defaults to
false
--version | -V
Optional
Display this application version
Defaults to
false
--ansi
Optional
Force (or disable --no-ansi) ANSI output
--no-ansi
Optional
Negate the "--ansi" option
Defaults to
false
--no-interaction | -n
Optional
Do not ask any interactive question
Defaults to
false