doctor: optional per-check area and hint
Check gets Area and Hint, omitted from the JSON when empty; the table only grows an AREA or HINT column when some check uses one, so existing reports are unchanged. Report.Add records a check with all fields. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
131d82642c
commit
3d286da90d
4 files changed
+72
-4
No files matched your search
@@ -328,7 +328,11 @@ docs/program-conventions.md in the meta-repository):
|
||||
- `doctor.Report` collects the locations the program resolves
|
||||
(`AddPaths(app)` adds the standard `core/paths` ones) and named checks;
|
||||
`Run(args, stdout, stderr)` prints a table or `--json` and returns the
|
||||
exit code (0 all good, 1 a check failed, 2 usage).
|
||||
exit code (0 all good, 1 a check failed, 2 usage). A check may carry
|
||||
an `area` (a group such as "config" or "services") and a `hint` (what
|
||||
to do about it), recorded with `Add(doctor.Check{...})`; both are
|
||||
omitted from the JSON when empty, and the table only gets an AREA or
|
||||
HINT column when some check uses it (since v0.10.0).
|
||||
|
||||
## core/configcmd: "<program> config"
|
||||
|
||||
|
||||
Reference in new issue
Block a user