pub fn generate_completions(shell: Shell, writer: &mut impl Write) -> Result<()>
Write shell completions for shell to writer.
shell
writer
Returns an error if writing to writer fails.
use ironflow_cli::cli::generate_completions; use clap_complete::Shell; let mut buf = Vec::new(); generate_completions(Shell::Bash, &mut buf)?; assert!(!buf.is_empty());