clap/examples
2024-01-23 17:38:54 -05:00
..
derive_ref fix(error): Change from neutral 'note' to helpful 'tip' 2023-03-27 20:45:11 -05:00
tutorial_builder docs(tutorial): Don't cover 'author' as its not shown 2024-01-17 08:06:56 -06:00
tutorial_derive docs(tutorial): Don't cover 'author' as its not shown 2024-01-17 08:06:56 -06: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(tutorial): Don't cover 'author' as its not shown 2024-01-17 08:06:56 -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(tutorial): Don't cover 'author' as its not shown 2024-01-17 08:06:56 -06: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(tutorial): Don't cover 'author' as its not shown 2024-01-17 08:06:56 -06: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): Correctly show help for fake flags 2024-01-08 09:58:42 -06:00
find.rs docs(cookbook): Clarify intent of fake flags 2024-01-08 10:14:37 -06: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 docs(tutorial): Don't cover 'author' as its not shown 2024-01-17 08:06:56 -06:00
README.md doc(fix typo): add missing "l" in "toml" 2022-10-01 20:36:01 +02:00
repl-derive.md docs(example): Added repl derive example 2024-01-23 17:35:15 -05:00
repl-derive.rs fix: Remove comma from end of EchoArgs 2024-01-23 17:38:54 -05: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