Skip to main content

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