cargo-liner 0.10.1

Cargo subcommand to install and update binary packages listed in configuration.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::io;

use clap::CommandFactory;

use crate::cli::{CompletionsArgs, LinerArgs};

pub fn run(args: &CompletionsArgs) {
    log::info!("Generating auto-completion script for {:?}...", args.shell);
    clap_complete::generate(
        args.shell,
        &mut LinerArgs::command(),
        clap::crate_name!(),
        &mut io::stdout(),
    );
}