Documentation
¶
Overview ¶
Package doctor provides formatted output helpers for the doctor command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSON ¶
JSON prints pre-marshaled JSON data to the command's output stream. Nil cmd is a no-op.
Parameters:
- cmd: Cobra command for output
- data: Pre-marshaled JSON string
func Report ¶
func Report( cmd *cobra.Command, results []ResultItem, warnings, errors int, )
Report writes the doctor report in a human-readable format grouped by category. Nil cmd is a no-op.
Parameters:
- cmd: Cobra command for output
- results: Individual check results to display
- warnings: Total warning count
- errors: Total error count
Types ¶
type ResultItem ¶
ResultItem holds the display data for a single doctor check result.
Click to show internal directories.
Click to hide internal directories.