makectl 0.2.0

Generate and manage targets in your Makefiles
1
2
3
4
5
6
7
8
9
10
11
12
use anyhow::Result;
use clap::CommandFactory;
use clap_complete::generate;
use clap_complete::Shell;

use crate::cli::Cli;

pub fn execute(shell: Shell) -> Result<()> {
    let mut cmd = Cli::command();
    generate(shell, &mut cmd, "makectl", &mut std::io::stdout());
    Ok(())
}