fixup! Add subcommand to generate completions
This commit is contained in:
parent
9aca589167
commit
49429688cf
2 changed files with 7 additions and 10 deletions
|
|
@ -53,8 +53,5 @@ pub enum ConfigCli {
|
|||
},
|
||||
|
||||
#[structopt(name = "generate-completion")]
|
||||
GenerateCompletion {
|
||||
shell: String,
|
||||
},
|
||||
GenerateCompletion { shell: String },
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ pub fn main() {
|
|||
other => {
|
||||
eprintln!("Unsupported shell: {}", other);
|
||||
std::process::exit(1);
|
||||
},
|
||||
}
|
||||
};
|
||||
let mut out = std::io::stdout();
|
||||
CliArgs::clap().gen_completions_to("zellij", shell, &mut out);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue