Name | Date | Size | ||
---|---|---|---|---|
.. | 25-Oct-2024 | 4 KiB | ||
cargo-example-derive.md | H A D | 25-Oct-2024 | 1 KiB | |
cargo-example-derive.rs | H A D | 25-Oct-2024 | 466 | |
cargo-example.md | H A D | 25-Oct-2024 | 961 | |
cargo-example.rs | H A D | 25-Oct-2024 | 659 | |
demo.md | H A D | 25-Oct-2024 | 444 | |
demo.rs | H A D | 25-Oct-2024 | 445 | |
derive_ref/ | H | 25-Oct-2024 | 4 KiB | |
escaped-positional-derive.md | H A D | 25-Oct-2024 | 1.3 KiB | |
escaped-positional-derive.rs | H A D | 25-Oct-2024 | 692 | |
escaped-positional.md | H A D | 25-Oct-2024 | 1.2 KiB | |
escaped-positional.rs | H A D | 25-Oct-2024 | 1 KiB | |
find.md | H A D | 25-Oct-2024 | 832 | |
find.rs | H A D | 25-Oct-2024 | 3.2 KiB | |
git-derive.md | H A D | 25-Oct-2024 | 2.8 KiB | |
git-derive.rs | H A D | 25-Oct-2024 | 4.2 KiB | |
git.md | H A D | 25-Oct-2024 | 2.5 KiB | |
git.rs | H A D | 25-Oct-2024 | 4.8 KiB | |
multicall-busybox.md | H A D | 25-Oct-2024 | 891 | |
multicall-busybox.rs | H A D | 25-Oct-2024 | 1.6 KiB | |
multicall-hostname.md | H A D | 25-Oct-2024 | 268 | |
multicall-hostname.rs | H A D | 25-Oct-2024 | 654 | |
pacman.md | H A D | 25-Oct-2024 | 1.8 KiB | |
pacman.rs | H A D | 25-Oct-2024 | 4.1 KiB | |
README.md | H A D | 25-Oct-2024 | 830 | |
repl.rs | H A D | 25-Oct-2024 | 2.5 KiB | |
tutorial_builder/ | H | 25-Oct-2024 | 4 KiB | |
tutorial_derive/ | H | 25-Oct-2024 | 4 KiB | |
typed-derive.md | H A D | 25-Oct-2024 | 3.8 KiB | |
typed-derive.rs | H A D | 25-Oct-2024 | 2.9 KiB |
README.md
1# Examples 2 3We try to focus our documentation on the [four types of 4documentation](https://documentation.divio.com/). Examples fit into this by 5providing: 6- [Cookbook / How-To Guides](https://docs.rs/clap/latest/clap/_cookbook/index.html) 7- Tutorials ([derive](https://docs.rs/clap/latest/clap/_derive/_tutorial/index.html), [builder](https://docs.rs/clap/latest/clap/_tutorial/index.html)) 8 9This directory contains the source for the above. 10 11## Contributing 12 13New examples should fit within the above structure and support their narrative 14- Add the example to [Cargo.toml](../Cargo.toml) for any `required-features` 15- Document how the example works with a `.md` file which will be verified using [trycmd](https://docs.rs/trycmd) 16- Pull the `.rs` and `.md` file into the appropriate module doc comment to be accessible on docs.rs 17