doctor

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDoctorCmd

func NewDoctorCmd(f *cmdutil.Factory) *cobra.Command

NewDoctorCmd creates the doctor subcommand. The --json flag is NOT defined locally here -- it is inherited from root's persistent flags.

Types

type CheckResult

type CheckResult struct {
	Name    string `json:"name"`
	Status  string `json:"status"`
	Message string `json:"message"`
	Details string `json:"details,omitempty"`
}

CheckResult holds the outcome of a single health check.

type TestableCmd

type TestableCmd struct {
	// contains filtered or unexported fields
}

TestableCmd wraps the doctor command with a parent that carries root persistent flags (--json, --jq, --yes, --no-color, --host) so tests can exercise --json without spinning up a full root command.

func NewTestableCmd

func NewTestableCmd(f *cmdutil.Factory) *TestableCmd

NewTestableCmd creates a TestableCmd for use in tests.

func (*TestableCmd) Execute

func (tc *TestableCmd) Execute(args []string) error

Execute runs the doctor command with the given args via a minimal parent that exposes root persistent flags.

Jump to

Keyboard shortcuts

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