clap/examples
2024-11-08 11:07:48 -06:00
..
derive_ref chore: Update from template 2024-05-14 12:27:02 -05:00
tutorial_builder chore: Update from template 2024-05-14 12:27:02 -05:00
tutorial_derive chore: Update from template 2024-05-14 12:27:02 -05: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(cookbook): Style cargo plugin 2024-08-08 10:31:27 -05:00
cargo-example.md fix(help): Remove extraneous text from built-ins 2023-01-03 11:02:26 -06:00
cargo-example.rs docs(cookbook): Style cargo plugin 2024-08-08 10:31:27 -05:00
demo.md fix(help): Remove extraneous text from built-ins 2023-01-03 11:02:26 -06:00
demo.rs chore: Update from template 2024-05-14 12:27:02 -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(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 docs: Highlight notes/warnings in a block 2024-11-08 11:07:48 -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.rs fix: Format chained method 2024-01-23 22:29:19 -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 chore: Update from template 2024-05-14 12:27:02 -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