1 2 3 4 5 6 7 8 9
use clap::CommandFactory; use clap_complete::Shell; use std::io; pub fn run(shell: Shell) -> i32 { let mut cmd = crate::Cli::command(); clap_complete::generate(shell, &mut cmd, "tirith", &mut io::stdout()); 0 }