Registry / cli / clap-complete-fig

clap-complete-fig

JSON →
library4.5.2rscratesunverified

A generator library used with clap for Fig completion scripts.

# Cargo.toml [dependencies] clap_complete_fig = "4.5.2"
INSTALL
IMPORT
SIG · CLAP-COMPLETE-FIG
C
clap-complete-fig
clirustv4.5.2
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.

Fig
use clap_complete_fig::Fig;

Generates Fig completion scripts for a clap command.

use clap_complete_fig::Fig; use clap::{Command, Arg}; fn main() { let mut cmd = Command::new("myapp") .arg(Arg::new("file")); let fig = Fig::new(); fig.generate(&mut cmd, &mut std::io::stdout()); }
Debug
Known issues
gotchaRequires the `unstable-dynamic` feature of clap to be enabled for full functionality.
fix
Add `features = ["unstable-dynamic"]` to your clap dependency.
affects: >=4.0.0
Upgrade
Version history
4.5.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
26
OpenAI (training)
1
Resources
clap-complete-fig — cargo add clap-complete-fig · libregistry