Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountFixable ¶
CountFixable returns the number of fixable issues across all results.
Types ¶
type CheckItem ¶
type CheckItem struct {
Label string `json:"label"`
Status Status `json:"-"`
Detail string `json:"detail,omitempty"`
Fixable bool `json:"fixable,omitempty"`
// For JSON output
StatusStr string `json:"status"`
}
CheckItem represents a single line item within a check result.
type ConfigCheck ¶
type ConfigCheck struct {
// contains filtered or unexported fields
}
ConfigCheck validates the configuration file.
func NewConfigCheck ¶
func NewConfigCheck(cfg *config.Config, configPath string) *ConfigCheck
NewConfigCheck creates a new configuration check.
func (*ConfigCheck) Name ¶
func (c *ConfigCheck) Name() string
type OrphanCheck ¶
type OrphanCheck struct {
// contains filtered or unexported fields
}
OrphanCheck detects directories in the repos folder without session records.
func NewOrphanCheck ¶
func NewOrphanCheck(sessions session.Store, reposDir string, fix bool) *OrphanCheck
NewOrphanCheck creates a new orphan worktree check. If fix is true, orphaned directories will be deleted.
func (*OrphanCheck) Name ¶
func (c *OrphanCheck) Name() string
type PluginCheck ¶
type PluginCheck struct {
// contains filtered or unexported fields
}
PluginCheck reports each plugin's availability.
func NewPluginCheck ¶
func NewPluginCheck(plugins []PluginInfo) *PluginCheck
NewPluginCheck creates a new plugin availability check.
func (*PluginCheck) Name ¶
func (c *PluginCheck) Name() string
type PluginInfo ¶
type PluginInfo struct {
Name string
Available bool
Disabled bool // explicitly disabled via config (enabled: false)
}
PluginInfo describes a plugin's availability for doctor checks. Decoupled from the plugin interface to avoid import cycles.
type RepoDirsCheck ¶
type RepoDirsCheck struct {
// contains filtered or unexported fields
}
RepoDirsCheck verifies that configured workspaces entries exist and are accessible.
func NewRepoDirsCheck ¶
func NewRepoDirsCheck(dirs []string) *RepoDirsCheck
NewRepoDirsCheck creates a new repo directories check.
func (*RepoDirsCheck) Name ¶
func (c *RepoDirsCheck) Name() string
type ToolsCheck ¶
type ToolsCheck struct{}
ToolsCheck verifies that required external tools are available on $PATH.
func (*ToolsCheck) Name ¶
func (c *ToolsCheck) Name() string