Debian Codegraph @

debian/rust-vendor/clap/src/_cookbook/mod.rs

raw
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 //! - Configurable command aliases
32 //!
33 //! pacman-like interface: [builder][pacman]
34 //! - Topics:
35 //! - Flag subcommands
36 //! - Conflicting arguments
37 //! - Visualizing help output changes through snapshot testing
38 //!
39 //! Escaped positionals with `--`: [builder][escaped_positional], [derive][escaped_positional_derive]
40 //!
41 //! Multi-call
42 //! - busybox: [builder][multicall_busybox]
43 //! - Topics:
44 //! - Subcommands
45 //! - hostname: [builder][multicall_hostname]
46 //! - Topics:
47 //! - Subcommands
48 //!
49 //! repl: [builder][repl], [derive][repl_derive]
50 //! - Topics:
51 //! - Read-Eval-Print Loops / Custom command lines
52
53 pub mod cargo_example;
54 pub mod cargo_example_derive;
55 pub mod escaped_positional;
56 pub mod escaped_positional_derive;
57 pub mod find;
58 pub mod git;
59 pub mod git_derive;
60 pub mod multicall_busybox;
61 pub mod multicall_hostname;
62 pub mod pacman;
63 pub mod repl;
64 pub mod repl_derive;
65 pub mod typed_derive;