third_party_rust_clap/examples
徐未来 a85e791e75 clap 4.1.4升级至4.1.13
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-04-02 20:06:53 +08:00
..
derive_ref clap 4.1.4升级至4.1.13 2024-04-02 20:06:53 +08:00
tutorial_builder docs: Prefer get_flag over get_one::<bool> 2023-01-23 09:23:38 -06:00
tutorial_derive clap 4.1.4升级至4.1.13 2024-04-02 20:06:53 +08: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 clap 4.1.4升级至4.1.13 2024-04-02 20:06:53 +08:00
cargo-example.md fix(help): Remove extraneous text from built-ins 2023-01-03 11:02:26 -06:00
cargo-example.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05: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 fix: Switch to owned types 2022-08-22 14:55:55 -05:00
git-derive.md clap 4.1.4升级至4.1.13 2024-04-02 20:06:53 +08:00
git-derive.rs clap 4.1.4升级至4.1.13 2024-04-02 20:06:53 +08:00
git.md fix(help): Remove extraneous text from built-ins 2023-01-03 11:02:26 -06:00
git.rs clap 4.1.4升级至4.1.13 2024-04-02 20:06:53 +08: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 clap 4.1.4升级至4.1.13 2024-04-02 20:06:53 +08:00
README.md doc(fix typo): add missing "l" in "toml" 2022-10-01 20:36:01 +02:00
repl.rs clap 4.1.4升级至4.1.13 2024-04-02 20:06:53 +08:00
typed-derive.md fix(error): Try to polish/clarify messages 2023-01-06 17:01:36 -06:00
typed-derive.rs clap 4.1.4升级至4.1.13 2024-04-02 20:06:53 +08: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