doctor

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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

func JSON(cmd *cobra.Command, data string)

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

type ResultItem struct {
	Category string
	Status   string
	Message  string
}

ResultItem holds the display data for a single doctor check result.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL