fix: sync generated CLI docs with their clap source strings
docs/tools/swarmctl-cli.md and docs/tools/hivectl-cli.md are generated
(nix/checks.nix's swarmctl-docs/hivectl-docs freshness checks diff a
fresh 'markdown-docs' run against the committed copy). The earlier
Contractions/Foreign fixes in this branch edited the generated
markdown directly instead of the clap #[arg(...)]/doc-comment strings
in swarmctl/src/main.rs and hivectl/src/cli.rs -- so CI's freshness
check would regenerate the docs from unfixed source and silently
undo the fix (found by argus's review).
Applied the exact same 13 wording changes to source (5 in
swarmctl/src/main.rs, 8 in hivectl/src/cli.rs) that the earlier commits
already made to the generated .md, matched 1:1 against
'git diff origin/main HEAD -- docs/tools/{swarmctl,hivectl}-cli.md'
rather than guessed. Regenerated both docs from the now-fixed source
and confirmed byte-identical to what's already committed (both
'diff <(binary markdown-docs) docs/tools/X-cli.md' exit 0) -- source
and generated output are back in sync.
cargo clippy -p swarmctl -p hivectl --all-targets -- -D warnings and
scripts/check-doc-refs.sh both clean.
This commit is contained in:
parent
ec9ee866db
commit
bc8f1b3cb8
2 changed files with 16 additions and 16 deletions
|
|
@ -58,10 +58,10 @@ struct PathArgs {
|
|||
/// rather than whatever is on `PATH`.
|
||||
#[arg(long, value_name = "PATH")]
|
||||
authelia_bin: Option<PathBuf>,
|
||||
/// Host-side path of authelia's users database — i.e. the path inside
|
||||
/// Host-side path of authelia's users database — that is the path inside
|
||||
/// the container, prefixed with the container's root.
|
||||
///
|
||||
/// This is the only user store: it is read before every change and
|
||||
/// This is the only user store: it's read before every change and
|
||||
/// written in place, and `swarm-authelia-bridge` writes the same file.
|
||||
//
|
||||
// The `--store` flag that named a second, private JSON store is gone
|
||||
|
|
@ -162,7 +162,7 @@ enum UserVerb {
|
|||
|
||||
#[derive(Args)]
|
||||
struct AddArgs {
|
||||
/// Login name. Conservative ASCII only — it is a YAML map key and
|
||||
/// Login name. Conservative ASCII only — it's a YAML map key and
|
||||
/// reaches access-control rules and logs.
|
||||
username: String,
|
||||
/// Name shown in the SSO UI. Defaults to the username.
|
||||
|
|
@ -184,10 +184,10 @@ struct UpdateArgs {
|
|||
display_name: Option<String>,
|
||||
#[arg(long, value_name = "ADDRESS")]
|
||||
email: Option<String>,
|
||||
/// Repeatable. Adding a group the user is already in is not an error.
|
||||
/// Repeatable. Adding a group the user is already in isn't an error.
|
||||
#[arg(long = "add-group", value_name = "GROUP")]
|
||||
add_groups: Vec<String>,
|
||||
/// Repeatable. Fails if the user is not in the group — a revocation
|
||||
/// Repeatable. Fails if the user isn't in the group — a revocation
|
||||
/// that reports success without revoking is the failure nobody
|
||||
/// re-checks.
|
||||
#[arg(long = "remove-group", value_name = "GROUP")]
|
||||
|
|
|
|||
Loading…
Reference in a new issue