Registry / cli / clap-complete-nushell

clap-complete-nushell

JSON →
library4.6.0rscratesunverified

A generator library used with clap for Nushell completion scripts.

# Cargo.toml [dependencies] clap_complete_nushell = "4.6.0"
INSTALL
IMPORT
SIG · CLAP-COMPLETE-NUSH
C
clap-complete-nushell
clirustv4.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Nushell
use clap_complete_nushell::Nushell;

Generate Nushell completion script for a clap command.

use clap::{Command, Arg}; use clap_complete_nushell::Nushell; use clap_complete::Generator; fn main() { let mut cmd = Command::new("myapp") .arg(Arg::new("file").required(true)); let gen = Nushell; gen.generate(&mut cmd, &mut std::io::stdout()); }
Debug
Known issues
gotchaRequires the `clap_complete` crate as a dependency for the `Generator` trait.
fix
Add `clap_complete` to your Cargo.toml.
affects: >=4.6.0
Upgrade
Version history
4.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
82 hits · last 30 days
node
80
Resources
clap-complete-nushell — cargo add clap-complete-nushell · libregistry