Honor help-only input checks before starting features

This commit is contained in:
2026-11-22 22:21:32 +00:00
parent 362afc79b6
commit 98e3958dfb
8 changed files with 121 additions and 15 deletions

View File

@@ -401,7 +401,11 @@ An empty suite adds nothing. The flag defaults to false; explicit false and
repeated selections use the ordinary Boolean rules. Applications pass
`Invocation.Context` into PromptKit and wait for their own work before returning.
The observer starts after command input construction and successful `CheckInput`,
before `Run`; validation or acquisition inside `Run` is included. Help, version,
before `Run`; validation or acquisition inside `Run` is included.
`CommandSpec.CheckInput` may return `commandkit.ErrHelpRequested` for a
help-only preflight result; core renders help without starting features or
requiring execution-only invocation flags. ckconfig uses this for bare
`config explain`. Help, version,
completion, parse errors, and rejected command inputs do not start observation.
The requested summary is text on diagnostics after deferred messages and before