generateCompletionForCommand

Generate a completion script for the given shell and command.

Parameters

command

The command to generate a completion script for.

shell

The shell to generate a completion script for. One of "bash", "zsh", or "fish". If any other value is provided, the script will be generated for bash.