hive-forge, hivectl, swarmctl: fix clap help passive voice, regen docs
Rewrites every write-good.Passive hit in the hive-forge clap help text
into terse, imperative, active voice (meaning unchanged) and drops
clap-markdown's own fixed footer ('This document was generated
automatically by...') via MarkdownOptions::show_footer(false), since
that string isn't ours to reword and vale flagged it too.
docs/tools/{hivectl,swarmctl,forge}-cli.md are generated from each
crate's clap tree (see hive-forge/src/main.rs's MarkdownDocs verb) —
regenerated here from the fixed source, not hand-edited.
Refs #4549
This commit is contained in:
parent
2aa9f19ccb
commit
f0e3ed04d3
18 changed files with 87 additions and 89 deletions
|
|
@ -127,7 +127,11 @@ async fn main() -> Result<()> {
|
|||
Cmd::Start { scope, no_wait } => start(&socket, scope.to_scope(), no_wait).await,
|
||||
Cmd::Restart { scope, graceful } => restart(&socket, scope.to_scope(), graceful).await,
|
||||
Cmd::MarkdownDocs => {
|
||||
print!("{}", clap_markdown::help_markdown::<Cli>());
|
||||
// `show_footer(false)`: drop clap-markdown's own fixed
|
||||
// "This document was generated automatically by..." footer —
|
||||
// it's the one string in this doc that isn't ours to reword.
|
||||
let options = clap_markdown::MarkdownOptions::new().show_footer(false);
|
||||
print!("{}", clap_markdown::help_markdown_custom::<Cli>(&options));
|
||||
Ok(())
|
||||
}
|
||||
Cmd::Open { target } => open_url(&socket, target).await,
|
||||
|
|
|
|||
Loading…
Reference in a new issue