1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//! Shell completion generation command. use clap::CommandFactory; use clap_complete::generate; use crate::cli::{Cli, CompletionsArgs}; /// Generates shell completions and writes them to stdout. pub fn handle(args: &CompletionsArgs) { let mut cmd = Cli::command(); generate( args.shell, &mut cmd, "marketsurge-agent", &mut std::io::stdout(), ); }