doctor

package
v0.0.0-...-158bfa7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

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