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

View File

@@ -81,7 +81,12 @@ upstream-domain test suite.
## R2: Honor ckconfig's help-only fallback before starting invocation features
**Priority:** P2. **Status:** open. **Plan coverage:** Stages 2–4 and 7–8.
**Priority:** P2. **Status:** complete. **Plan coverage:** Stages 2–4 and 7–8.
Added the CheckInput help signal and deferred feature requiredness until real
execution. Regression checks cover implicit/explicit/aliased help, malformed
values, real operations, and normal ckprompt installation. All three workspace
suites passed on Go 1.27.4.
**Relevant code and contracts:**