doctor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package doctor provides health checks for CLI dependencies and configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResult

type CheckResult struct {
	Name       string
	Status     CheckStatus
	Message    string
	Details    string
	Suggestion string
}

CheckResult represents the result of a health check.

type CheckStatus

type CheckStatus int

CheckStatus represents a health check status.

const (
	// StatusOK indicates a successful check.
	StatusOK CheckStatus = iota
	// StatusWarning indicates a non-critical issue.
	StatusWarning
	// StatusError indicates a critical issue.
	StatusError
	// StatusSkipped indicates the check was skipped.
	StatusSkipped
)

type Doctor

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

Doctor performs health checks on the system.

func NewDoctor

func NewDoctor() *Doctor

NewDoctor creates a new Doctor instance.

func (*Doctor) RunAll

func (d *Doctor) RunAll(ctx context.Context) []*CheckResult

RunAll runs all health checks.

Jump to

Keyboard shortcuts

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