2021-11-30 18:30:19 +00:00
|
|
|
# Examples
|
2021-11-10 22:15:30 +00:00
|
|
|
|
2021-11-30 18:30:19 +00:00
|
|
|
- Basic demo: [derive](demo.md)
|
2022-03-14 14:37:52 +00:00
|
|
|
- Typed arguments: [derive](typed-derive.md)
|
2022-02-22 14:43:33 +00:00
|
|
|
- Topics:
|
|
|
|
- Custom `parse()`
|
2021-12-15 17:33:10 +00:00
|
|
|
- Custom cargo command: [builder](cargo-example.md), [derive](cargo-example-derive.md)
|
2022-02-22 14:43:33 +00:00
|
|
|
- Topics:
|
|
|
|
- Subcommands
|
|
|
|
- Cargo plugins
|
2021-12-15 17:12:16 +00:00
|
|
|
- git-like interface: [builder](git.md), [derive](git-derive.md)
|
2022-02-22 14:43:33 +00:00
|
|
|
- Topics:
|
|
|
|
- Subcommands
|
|
|
|
- External subcommands
|
2022-04-01 14:27:29 +00:00
|
|
|
- Optional subcommands
|
2022-03-23 16:08:07 +00:00
|
|
|
- Default subcommands
|
2021-12-11 13:22:09 +00:00
|
|
|
- pacman-like interface: [builder](pacman.md)
|
2022-02-22 14:43:33 +00:00
|
|
|
- Topics:
|
|
|
|
- Flag subcommands
|
|
|
|
- Conflicting arguments
|
2021-12-15 17:12:16 +00:00
|
|
|
- Escaped positionals with `--`: [builder](escaped-positional.md), [derive](escaped-positional-derive.md)
|
2021-11-30 18:30:19 +00:00
|
|
|
- Multi-call
|
2021-12-15 17:12:16 +00:00
|
|
|
- busybox: [builder](multicall-busybox.md)
|
2022-02-22 14:43:33 +00:00
|
|
|
- Topics:
|
|
|
|
- Subcommands
|
2021-12-15 17:12:16 +00:00
|
|
|
- hostname: [builder](multicall-hostname.md)
|
2022-02-22 14:43:33 +00:00
|
|
|
- Topics:
|
|
|
|
- Subcommands
|
2022-05-02 11:21:52 +00:00
|
|
|
- repl: [builder](repl.rs)
|
|
|
|
- Topics:
|
|
|
|
- Read-Eval-Print Loops / Custom command lines
|
2021-11-10 22:15:30 +00:00
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
2021-11-30 18:30:19 +00:00
|
|
|
New examples:
|
2022-05-27 11:43:09 +00:00
|
|
|
- Building: They must be added to [Cargo.toml](../Cargo.toml) with the appropriate `required-features`.
|
2021-11-30 18:30:19 +00:00
|
|
|
- Testing: Ensure there is a markdown file with [trycmd](https://docs.rs/trycmd) syntax
|
|
|
|
- Link the `.md` file from here
|
|
|
|
|
2022-02-23 04:36:54 +00:00
|
|
|
See also the general [CONTRIBUTING](../CONTRIBUTING.md).
|