doctor

package
v0.0.0-...-63d04e1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 23 Imported by: 1 module, 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 NewDoctorCommand

func NewDoctorCommand(clients *shared.ClientFactory) *cobra.Command

Types

type DoctorHookJSON

type DoctorHookJSON struct {
	Versions []struct {
		Name    string `json:"name"`
		Current string `json:"current"`
		Message string `json:"message"`
		Error   struct {
			Message string `json:"message"`
		} `json:"error"`
	} `json:"versions"`
}

DoctorHookJSON holds expected values from the doctor hook

type DoctorReport

type DoctorReport struct {
	Sections []Section
}

DoctorReport contains information about system statistics

func (DoctorReport) TotalErrors

func (d DoctorReport) TotalErrors() int

TotalErrors returns the sum of all errors across sections

type Section

type Section struct {
	Label       string
	Value       string
	Subsections []Section
	Errors      []slackerror.Error
}

func CheckGit

func CheckGit(ctx context.Context) (Section, error)

CheckGit checks for the version of an installed Git on the user machine

func (*Section) HasError

func (s *Section) HasError() bool

HasError returns if errors exist in any section or subsection

func (*Section) RenderLabel

func (s *Section) RenderLabel() string

RenderLabel formats a label for use with optional values

func (*Section) SumErrors

func (s *Section) SumErrors() int

SumErrors returns the error count in sections and subsections

Jump to

Keyboard shortcuts

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