doctor

package
v3.1.21 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Checks []*Check

Checks is the list of available commands

Functions

func Register

func Register(command *Check)

Register registers a command with the list

func RunChecks

func RunChecks(ctx context.Context, colorize, autofix bool, checks []*Check) error

RunChecks runs the doctor checks for the provided list

func SortChecks

func SortChecks(checks []*Check)

Types

type Check

type Check struct {
	Title                      string
	Name                       string
	IsDefault                  bool
	Run                        func(ctx context.Context, logger log.Logger, autofix bool) error
	AbortIfFailed              bool
	SkipDatabaseInitialization bool
	Priority                   int
	InitStorage                bool
}

Check represents a Doctor check

Source Files

  • actions.go
  • authorizedkeys.go
  • breaking.go
  • checkOldArchives.go
  • dbconsistency.go
  • dbversion.go
  • doctor.go
  • fix16961.go
  • fix8312.go
  • heads.go
  • lfs.go
  • mergebase.go
  • misc.go
  • paths.go
  • repository.go
  • storage.go
  • usertype.go

Jump to

Keyboard shortcuts

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