lbcli gen auto-complete
Generates a shell autocompletion script for lbcli.
Synopsis
Generates a shell autocompletion script for lbcli.
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 lbcli gen autocomplete# Add "--completionfile=/path/to/file" flag to set alternative# file-path and name.# Logout and in again to reload the completion scripts,# or just source them in directly:$ . /etc/bash_completionlbcli gen autocomplete [flags]Examples:
# Create a bash completion filelbcli gen autocomplete --completionfile=/path/to/file| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
| -completionfile | string | "/etc/bash_completion.d/lbcli.sh" | Auto completion file. | |
| --help | -h | bool | Help for autocomplete. | |
| --type | string | ”string” | Auto complete file type (currently only bash-supported). |
Was this page helpful?