diff --git a/CHANGELOG.md b/CHANGELOG.md index 7743852..4d954e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,8 @@ Categories Used: - Merge folders in decompression [\#798](https://github.com/ouch-org/ouch/pull/798) ([tommady](https://github.com/tommady)) - Add `--no-smart-unpack` flag to decompression command to disable smart unpack [\#809](https://github.com/ouch-org/ouch/pull/809) ([talis-fb](https://github.com/talis-fb)) -- Add aliases for comic book archives []() ([md9753](https://github.com/md9753)) +- Provide Nushell completions (packages still need to install them) [\#827](https://github.com/ouch-org/ouch/pull/827) ([FrancescElies](https://github.com/FrancescElies)) +- Add aliases for comic book archives [\#835](https://github.com/ouch-org/ouch/pull/835https://github.com/ouch-org/ouch/pull/835) ([md9753](https://github.com/md9753)) ### Improvements diff --git a/Cargo.lock b/Cargo.lock index 9425043..71b8cf9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -394,6 +394,16 @@ dependencies = [ "clap", ] +[[package]] +name = "clap_complete_nushell" +version = "4.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6a8b1593457dfc2fe539002b795710d022dc62a65bf15023f039f9760c7b18a" +dependencies = [ + "clap", + "clap_complete", +] + [[package]] name = "clap_derive" version = "4.5.28" @@ -1092,6 +1102,7 @@ dependencies = [ "bzip3", "clap", "clap_complete", + "clap_complete_nushell", "clap_mangen", "filetime_creation", "flate2", diff --git a/Cargo.toml b/Cargo.toml index fc692b6..5d31493 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,6 +54,7 @@ is_executable = "1.0.1" [build-dependencies] clap = { version = "4.5.20", features = ["derive", "env", "string"] } clap_complete = "4.5.28" +clap_complete_nushell = "4.5.5" clap_mangen = "0.2.24" [dev-dependencies] diff --git a/build.rs b/build.rs index c023757..7d2c6fe 100644 --- a/build.rs +++ b/build.rs @@ -19,6 +19,7 @@ use std::{ use clap::{CommandFactory, ValueEnum}; use clap_complete::{generate_to, Shell}; +use clap_complete_nushell::Nushell; use clap_mangen::Man; include!("src/cli/args.rs"); @@ -45,5 +46,6 @@ fn main() { for shell in Shell::value_variants() { generate_to(*shell, cmd, "ouch", out).unwrap(); } + generate_to(Nushell, cmd, "ouch", out).unwrap(); } }