pub fn run(
out: &mut dyn Write,
command: Command,
args: &CompletionArgs,
) -> Result<CompletionReport, CliError>Expand description
Generate a completion script for command and print it to out.
command is the caller’s full clap clap::Command tree (built from
crate::cli::Cli::command) rather than something this module
constructs itself, so a change to the verb tree in cli.rs is picked
up automatically with no separate description to keep in sync.
§Errors
Returns CliError::Io if writing to out fails.