Generates a shell autocompletion script for cfcli.
Synopsis
Generates a shell autocompletion script for cfcli.
Note that the current version supports Bash only. This should work for *nix systems with Bash installed.
By default, the file is written directly to /etc/bash_completion.d for convenience, and the command may need superuser rights, e.g.:
x
$ sudo cfcli gen autocompleteAdd "--completionfile=_path_to_file" flag to set alternative file-path and name.Log out and in again to reload the completion scripts, or just source them in directly:
$ . _etc_bash_completioncfcli gen autocomplete [flags]Examples:
# Create a bash completion filecfcli gen autocomplete --completionfile=_path_to_file| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
| -completionfile | string | "/etc/bash_completion.d/cfcli.sh" | Auto completion file. | |
| --help | -h | bool | Help for autocomplete. | |
| --type | string | ”bash” | Auto complete file type (currently only bash-supported). |
Was this page helpful?