Module _cookbook

Source
Available on crate feature unstable-doc only.
Expand description

§Documentation: Cookbook

Typed arguments: derive

  • Topics:
    • Custom parse()

Custom cargo command: builder, derive

  • Topics:
    • Subcommands
    • Cargo plugins
    • custom terminal styles (colors)

find-like interface: builder

  • Topics:
    • Position-sensitive flags

git-like interface: builder, derive

  • Topics:
    • Subcommands
    • External subcommands
    • Optional subcommands
    • Default subcommands
    • last

pacman-like interface: builder

  • Topics:
    • Flag subcommands
    • Conflicting arguments

Escaped positionals with --: builder, derive

Multi-call

  • busybox: builder
    • Topics:
      • Subcommands
  • hostname: builder
    • Topics:
      • Subcommands

repl: builder, derive

  • Topics:
    • Read-Eval-Print Loops / Custom command lines

Modules§

cargo_example
Example: cargo subcommand (Builder API)
cargo_example_derive
Example: cargo subcommand (Derive API)
escaped_positional
Example (Builder API)
escaped_positional_derive
Example (Derive API)
find
Example: find-like CLI (Builder API)
git
Example: git-like CLI (Builder API)
git_derive
Example: git-like CLI (Derive API)
multicall_busybox
Example: busybox-like CLI (Builder API)
multicall_hostname
Example: hostname-like CLI (Builder API)
pacman
Example: pacman-like CLI (Builder API)
repl
Example: Command REPL (Builder API)
repl_derive
Example: REPL (Derive API)
typed_derive
Example: Custom Types (Derive API)