clap/examples
2023-11-27 09:28:30 -06:00
..
derive_ref fix(error): Change from neutral 'note' to helpful 'tip' 2023-03-27 20:45:11 -05:00
tutorial_builder docs(tutorial): Attempt to clarify attributes 2023-09-11 20:50:12 -05:00
tutorial_derive fix(doc): Fix typo in 03_04_subcommands.md 2023-09-13 20:56:05 -07:00
cargo-example-derive.md fix(help): Remove extraneous text from built-ins 2023-01-03 11:02:26 -06:00
cargo-example-derive.rs docs(examples): Differentiate struct from command name 2023-02-06 10:25:14 -06:00
cargo-example.md fix(help): Remove extraneous text from built-ins 2023-01-03 11:02:26 -06:00
cargo-example.rs chore: Inline simple non-mixed format args 2023-05-04 15:58:04 -04:00
demo.md fix(help): Remove extraneous text from built-ins 2023-01-03 11:02:26 -06:00
demo.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
escaped-positional-derive.md fix(error): Try to soften unexpected argument/value errors 2023-01-13 21:29:49 -06:00
escaped-positional-derive.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
escaped-positional.md fix(error): Try to soften unexpected argument/value errors 2023-01-13 21:29:49 -06:00
escaped-positional.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
find.md fix(help): Remove extraneous text from built-ins 2023-01-03 11:02:26 -06:00
find.rs chore: Inline simple non-mixed format args 2023-05-04 15:58:04 -04:00
git-derive.md fix(help): Use right about when flattening 2023-11-27 09:28:30 -06:00
git-derive.rs feat(help): Allow controlling flattening 2023-11-09 13:31:11 -06:00
git.md fix(help): Use right about when flattening 2023-11-27 09:28:30 -06:00
git.rs feat(help): Allow controlling flattening 2023-11-09 13:31:11 -06:00
multicall-busybox.md fix(help): Remove extraneous text from built-ins 2023-01-03 11:02:26 -06:00
multicall-busybox.rs fix: Switch to owned types 2022-08-22 14:55:55 -05:00
multicall-hostname.md fix!: Remove App alias for Command 2022-07-21 15:08:37 -05:00
multicall-hostname.rs feat(multicall): Stablize multicall 2022-05-20 12:20:40 -05:00
pacman.md fix(error): Match rustc for giving more information 2023-01-03 13:22:35 -06:00
pacman.rs chore: Make format!() calls more readable 2023-01-29 19:14:47 +00:00
README.md doc(fix typo): add missing "l" in "toml" 2022-10-01 20:36:01 +02:00
repl.rs chore: Inline simple non-mixed format args 2023-05-04 15:58:04 -04:00
typed-derive.md docs(cookbook): Correct a typo 2023-07-21 10:54:08 -05:00
typed-derive.rs docs(cookbook): Correct a typo 2023-07-21 10:54:08 -05:00

Examples

We try to focus our documentation on the four types of documentation. Examples fit into this by providing:

This directory contains the source for the above.

Contributing

New examples should fit within the above structure and support their narrative

  • Add the example to Cargo.toml for any required-features
  • Document how the example works with a .md file which will be verified using trycmd
  • Pull the .rs and .md file into the appropriate module doc comment to be accessible on docs.rs