Skip to main content

complete

Function complete 

Source
pub fn complete(options: &CompleteOptions) -> Result<String, UsageErr>
Expand description

Generates a shell completion script for the specified shell.

§Arguments

  • options - Configuration options including target shell and spec source

§Returns

The generated completion script as a string, or an error if the shell is unsupported.

§Supported Shells

  • bash - Bash completion using complete builtin
  • fish - Fish shell completions
  • zsh - Zsh completion using compdef
  • powershell - PowerShell completion using Register-ArgumentCompleter