mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-13 03:39:11 +02:00
The goal is supporting the special `all` platform that results in pages for all platforms being listed when calling `--list`. It's part of the tldr client specification. However, `All` should not be a variant of the `PlatformType` enum, because `Current` isn't a `PlatformType` either. Thus, we accept the string `all` but convert it into the current platform when parsing. For consistency, the same is done when no platform is specified, by introducing yet another possible value `current` which is used by default. This way, we get rid of the `Option`. To simplify handling of os / platform arguments, a conflict between `--platform` and `--os` was introduced. |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| book.toml | ||
| README.md | ||