diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 20fd5ea..50b2d6b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,6 +6,7 @@ extern crate slog; use clap::ArgAction; use clap_complete::{generate, Shell}; +use clap_complete_nushell::Nushell; use slog::Drain; use std::io; @@ -50,7 +51,7 @@ fn main() { clap::Arg::new("gen-completions") .help("Generate completions") .long("gen-completions") - .value_parser(["bash", "fish", "zsh", "powershell", "elvish"]), + .value_parser(["bash", "fish", "nushell", "zsh", "powershell", "elvish"]), ) .arg( clap::Arg::new("whole-file") @@ -78,6 +79,9 @@ fn main() { "fish" => { generate(Shell::Fish, &mut args_clone, app_name, &mut io::stdout()); } + "nushell" => { + generate(Nushell, &mut args_clone, app_name, &mut io::stdout()); + } "zsh" => { generate(Shell::Zsh, &mut args_clone, app_name, &mut io::stdout()); } |