Debian Codegraph @

debian/missing-sources/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 //!
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
51 pub mod cargo_example;
52 pub mod cargo_example_derive;
53 pub mod escaped_positional;
54 pub mod escaped_positional_derive;
55 pub mod find;
56 pub mod git;
57 pub mod git_derive;
58 pub mod multicall_busybox;
59 pub mod multicall_hostname;
60 pub mod pacman;
61 pub mod repl;
62 pub mod repl_derive;
63 pub mod typed_derive;