mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-03-01 06:53:10 -08:00
feat(cli): Automatically generate man page
Instead of using a static one, generate it via clap_mangen. To generate the manpage run `rosenpass --generate-manpage <folder>`. Right now clap does not support flattening of generated manpages, meaning that each subcommand is explained in its own file. To add extra sections to the main file `rosenpass.1`, it's rewritten after the initial creation. Once clap support flattened Man pages, the `generate_to` call can be removed and all subcommand are added to the `rosenpass.1` file. This implementation allows downstream manpage generation to stay unchanged even after switching from multiple manpages to a flattened one. Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
@@ -47,6 +47,8 @@ env_logger = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
toml = { workspace = true }
|
||||
clap = { workspace = true }
|
||||
clap_complete = { workspace = true }
|
||||
clap_mangen = { workspace = true }
|
||||
mio = { workspace = true }
|
||||
rand = { workspace = true }
|
||||
zerocopy = { workspace = true }
|
||||
|
||||
Reference in New Issue
Block a user