clap/examples
2022-10-04 16:26:57 -04:00
..
derive_ref fix(error): Quote literals consistently 2022-09-29 08:54:03 -05:00
tutorial_builder docs(builder): Add help text 2022-10-04 16:26:57 -04:00
tutorial_derive docs(derive): Add help text 2022-10-04 16:24:35 -04:00
cargo-example-derive.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
cargo-example-derive.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
cargo-example.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
cargo-example.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
demo.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
demo.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
escaped-positional-derive.md fix(parser): Quote the suggested help 2022-09-15 16:24:59 -05:00
escaped-positional-derive.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -05:00
escaped-positional.md fix(parser): Quote the suggested help 2022-09-15 16:24:59 -05:00
escaped-positional.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
find.md fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
find.rs fix: Switch to owned types 2022-08-22 14:55:55 -05:00
git-derive.md docs(cookbook): Provide example of --color[=WHEN] 2022-09-30 20:33:36 -05:00
git-derive.rs docs(cookbook): Provide example of --color[=WHEN] 2022-09-30 20:33:36 -05:00
git.md docs(cookbook): Provide example of --color[=WHEN] 2022-09-30 20:33:36 -05:00
git.rs docs(cookbook): Provide example of --color[=WHEN] 2022-09-30 20:33:36 -05:00
multicall-busybox.md fix(help): Make output more dense 2022-09-07 17:13:55 -05: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(help): Separate command flags like options 2022-09-19 09:07:43 -05:00
pacman.rs feat(parser): Provide convenience for SetTrue 2022-09-01 19:40:56 -05:00
README.md doc(fix typo): add missing "l" in "toml" 2022-10-01 20:36:01 +02:00
repl.rs fix: Switch to owned types 2022-08-22 14:55:55 -05:00
typed-derive.md fix(parser): Quote the suggested help 2022-09-15 16:24:59 -05:00
typed-derive.rs docs(derive): Update for new attributes 2022-09-02 15:39:13 -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