doctor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 13 Imported by: 0

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