dvs completion
Generate shell completion scripts.
Descriptionβ
The completion command generates shell completion scripts for bash, zsh, or fish. These scripts enable tab completion for dvs commands.
Usageβ
dvs completion <shell>
Argumentsβ
<shell>- The shell name:bash,zsh, orfish
Outputs the script to stdout, the script can be saved to a file or sourced directly.
Prerequisitesβ
- A valid shell name must be provided
Examplesβ
# Generate bash completion
dvs completion bash
# Generate zsh completion
dvs completion zsh
# Generate fish completion
dvs completion fish
# Save to file
dvs completion bash > ~/.dvs-completion.bash
Installationβ
To install completion, use the dvs install-completion command, which automatically detects your shell and installs the appropriate script.
Related Commandsβ
dvs install-completion- Automatically install completion for the current shell