Help us shape the future of Go! Take the 2026 Go Developer Survey

doctor

package
v1.65.0 Latest Latest
Warning

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

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

Documentation

Overview

Package doctor provides the 'eng doctor' diagnostic command to check workstation dependencies, tools, configuration paths, and runtime health.

Index

Constants

This section is empty.

Variables

View Source
var DoctorCmd = &cobra.Command{
	Use:     "doctor",
	Aliases: []string{"doc"},
	Short:   "Check system health and verify dependencies",
	Long: `Inspects your workstation environment and verifies the availability and health of:
  - Core CLI tools (git, brew, docker, asdf, tailscale, bw, gpg, gh, glab)
  - Configured workspace paths and dotfiles
  - Installation and update status

Exits non-zero when a required tool is missing, so CI can gate on it.`,
	Example: `  eng doctor`,
	RunE: func(cmd *cobra.Command, _args []string) error {
		return runDoctor()
	},
}

DoctorCmd represents the doctor diagnostic command.

Functions

This section is empty.

Types

type ToolCheck

type ToolCheck struct {
	Name        string
	Binary      string
	Description string
	Required    bool
}

ToolCheck defines an external dependency check.

Jump to

Keyboard shortcuts

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