1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Generates shell completion scripts (bash, zsh, fish, PowerShell, Elvish)
//! into `OUT_DIR` at build time, from the same `clap` command definition
//! the binary itself parses against — so completions can never drift from
//! the real CLI surface the way a hand-maintained completion script would.
//!
//! `include!`s `src/cli.rs` directly rather than depending on a `mandible`
//! library target (this crate is binary-only, spec §8): a build script is
//! its own separate compilation and has no other way to reach the `Cli`
//! type. This is the same pattern ripgrep and fd use for the same reason.
//!
//! Packaging (`[package.metadata.deb]`/`[package.metadata.generate-rpm]`
//! in `Cargo.toml`, spec §15) references the generated files via a glob
//! into `target/<profile>/build/mandible-*/out/`, since the hashed
//! directory component isn't known ahead of time — the same convention
//! those tools use.
use ;
use ;
use env;
include!;