leapview completion
Generate the autocompletion script for leapview for the specified shell. See each sub-command's help for details on how to use the generated script.
Usage
leapview completion [flags]
Machine-readable: JSON · Markdown
Options
| Flag | Type | Default | Description |
|---|---|---|---|
-h, --help |
bool | false |
help for completion |
Inherited options
| Flag | Type | Default | Description |
|---|---|---|---|
--no-input |
bool | false |
disable terminal prompts and automatic browser opening |
Subcommands
bash: Generate the autocompletion script for bashfish: Generate the autocompletion script for fishpowershell: Generate the autocompletion script for powershellzsh: Generate the autocompletion script for zsh
bash
Generate the autocompletion script for the bash shell.
This script depends on the 'bash-completion' package. If it is not installed already, you can install it via your OS's package manager.
To load completions in your current shell session:
source <(leapview completion bash)
To load completions for every new session, execute once:
Linux:
leapview completion bash > /etc/bash_completion.d/leapview
macOS:
leapview completion bash > $(brew --prefix)/etc/bash_completion.d/leapview
You will need to start a new shell for this setup to take effect.
Usage
leapview completion bash
Behavior
| Side effect | Confirmation |
|---|---|
read |
never |
Machine-readable: JSON · Markdown
Options
| Flag | Type | Default | Description |
|---|---|---|---|
-h, --help |
bool | false |
help for bash |
--no-descriptions |
bool | false |
disable completion descriptions |
Inherited options
| Flag | Type | Default | Description |
|---|---|---|---|
--no-input |
bool | false |
disable terminal prompts and automatic browser opening |
fish
Generate the autocompletion script for the fish shell.
To load completions in your current shell session:
leapview completion fish | source
To load completions for every new session, execute once:
leapview completion fish > ~/.config/fish/completions/leapview.fish
You will need to start a new shell for this setup to take effect.
Usage
leapview completion fish [flags]
Behavior
| Side effect | Confirmation |
|---|---|
read |
never |
Machine-readable: JSON · Markdown
Options
| Flag | Type | Default | Description |
|---|---|---|---|
-h, --help |
bool | false |
help for fish |
--no-descriptions |
bool | false |
disable completion descriptions |
Inherited options
| Flag | Type | Default | Description |
|---|---|---|---|
--no-input |
bool | false |
disable terminal prompts and automatic browser opening |
powershell
Generate the autocompletion script for powershell.
To load completions in your current shell session:
leapview completion powershell | Out-String | Invoke-Expression
To load completions for every new session, add the output of the above command to your powershell profile.
Usage
leapview completion powershell [flags]
Behavior
| Side effect | Confirmation |
|---|---|
read |
never |
Machine-readable: JSON · Markdown
Options
| Flag | Type | Default | Description |
|---|---|---|---|
-h, --help |
bool | false |
help for powershell |
--no-descriptions |
bool | false |
disable completion descriptions |
Inherited options
| Flag | Type | Default | Description |
|---|---|---|---|
--no-input |
bool | false |
disable terminal prompts and automatic browser opening |
zsh
Generate the autocompletion script for the zsh shell.
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 in your current shell session:
source <(leapview completion zsh)
To load completions for every new session, execute once:
Linux:
leapview completion zsh > "${fpath[1]}/_leapview"
macOS:
leapview completion zsh > $(brew --prefix)/share/zsh/site-functions/_leapview
You will need to start a new shell for this setup to take effect.
Usage
leapview completion zsh [flags]
Behavior
| Side effect | Confirmation |
|---|---|
read |
never |
Machine-readable: JSON · Markdown
Options
| Flag | Type | Default | Description |
|---|---|---|---|
-h, --help |
bool | false |
help for zsh |
--no-descriptions |
bool | false |
disable completion descriptions |
Inherited options
| Flag | Type | Default | Description |
|---|---|---|---|
--no-input |
bool | false |
disable terminal prompts and automatic browser opening |