aboutsummaryrefslogtreecommitdiff
path: root/src/cli/spec/completion.rs
blob: 8cc27d7b7af11198be37a21033b9da2141f8348e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use clap::{Arg, Command};

pub(super) fn command() -> Command {
    Command::new("completion")
        .visible_alias("completions")
        .about("Generate shell completion scripts")
        .arg(
            Arg::new("shell")
                .value_name("SHELL")
                .required(true)
                .value_parser(super::super::completion::SUPPORTED_SHELLS)
                .help("Shell to generate completions for"),
        )
}