cooklang-chef 0.6.0

CLI to manage cooklang recipes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::io;

use clap::{Args, CommandFactory};

#[derive(Debug, Args)]
pub struct GenerateCompletionsArgs {
    shell: clap_complete::Shell,
}

pub fn run(args: GenerateCompletionsArgs) -> anyhow::Result<()> {
    clap_complete::generate(
        args.shell,
        &mut crate::CliArgs::command(),
        env!("CARGO_BIN_NAME"),
        &mut io::stdout(),
    );
    Ok(())
}