Registry / cli / clap-complete

clap-complete

JSON →
library4.6.5rscratesunverified

Generate shell completion scripts for your clap::Command.

# Cargo.toml [dependencies] clap_complete = "4.6.5"
INSTALL
IMPORT
SIG · CLAP-COMPLETE
C
clap-complete
clirustv4.6.5
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.

generate
use clap_complete::generate;

Generates Bash completion script for a clap command.

use clap::Command; use clap_complete::generate; fn main() { let mut cmd = Command::new("myapp"); generate(clap_complete::shells::Bash, &mut cmd, "myapp", &mut std::io::stdout()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.6.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
Resources
clap-complete — cargo add clap-complete · libregistry