lbcli gen auto-complete

AI Tools

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.:

$ 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_completion
lbcli gen autocomplete [flags]

Examples:

# Create a bash completion file lbcli 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).


On This Page