clap/_cookbook/mod.rs
1// Contributing
2//
3// New examples:
4// - Building: They must be added to `Cargo.toml` with the appropriate `required-features`.
5// - Testing: Ensure there is a markdown file with [trycmd](https://docs.rs/trycmd) syntax
6// - Link the `.md` file from here
7
8//! # Documentation: Cookbook
9//!
10//! Typed arguments: [derive][typed_derive]
11//! - Topics:
12//!   - Custom `parse()`
13//!
14//! Custom cargo command: [builder][cargo_example], [derive][cargo_example_derive]
15//! - Topics:
16//!   - Subcommands
17//!   - Cargo plugins
18//!   - custom terminal [styles][crate::Command::styles] (colors)
19//!
20//! find-like interface: [builder][find]
21//! - Topics:
22//!   - Position-sensitive flags
23//!
24//! git-like interface: [builder][git], [derive][git_derive]
25//! - Topics:
26//!   - Subcommands
27//!   - External subcommands
28//!   - Optional subcommands
29//!   - Default subcommands
30//!   - [`last`][crate::Arg::last]
31//!
32//! pacman-like interface: [builder][pacman]
33//! - Topics:
34//!   - Flag subcommands
35//!   - Conflicting arguments
36//!
37//! Escaped positionals with `--`: [builder][escaped_positional], [derive][escaped_positional_derive]
38//!
39//! Multi-call
40//! - busybox: [builder][multicall_busybox]
41//!   - Topics:
42//!     - Subcommands
43//! - hostname: [builder][multicall_hostname]
44//!   - Topics:
45//!     - Subcommands
46//!
47//! repl: [builder][repl], [derive][repl_derive]
48//! - Topics:
49//!   - Read-Eval-Print Loops / Custom command lines
50
51pub mod cargo_example;
52pub mod cargo_example_derive;
53pub mod escaped_positional;
54pub mod escaped_positional_derive;
55pub mod find;
56pub mod git;
57pub mod git_derive;
58pub mod multicall_busybox;
59pub mod multicall_hostname;
60pub mod pacman;
61pub mod repl;
62pub mod repl_derive;
63pub mod typed_derive;