vers 0.5.0

Install and manage dev tools with multiple environments
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::cli::Opts;
use clap::CommandFactory;
use clap_complete::Shell;
use std::io::stdout;

pub fn generate_completions(shell: Shell) {
    let mut cmd = Opts::command();
    let cmd_name = cmd.get_name().to_string();
    clap_complete::generate(shell, &mut cmd, cmd_name, &mut stdout())
}