implement nushell completions (#24)
closes #19 Reviewed-on: http://192.168.1.227:3000/sfrembling/pallet/pulls/24 Co-authored-by: godsfryingpan <sfrembling@gmail.com> Co-committed-by: godsfryingpan <sfrembling@gmail.com>
This commit was merged in pull request #24.
This commit is contained in:
@@ -83,6 +83,7 @@ enum ShellCompletions {
|
||||
Fish,
|
||||
PowerShell,
|
||||
Zsh,
|
||||
Nushell,
|
||||
}
|
||||
|
||||
impl App {
|
||||
@@ -158,6 +159,12 @@ impl App {
|
||||
name,
|
||||
&mut std::io::stdout(),
|
||||
),
|
||||
ShellCompletions::Nushell => clap_complete::generate(
|
||||
clap_complete_nushell::Nushell,
|
||||
&mut command,
|
||||
name,
|
||||
&mut std::io::stdout(),
|
||||
),
|
||||
}
|
||||
}
|
||||
UtilSubcommand::GenCompileCommands { mode } => {
|
||||
|
||||
Reference in New Issue
Block a user