Documentation
¶
Overview ¶
Package cmd implements the initech CLI commands using Cobra. Each subcommand lives in its own file. Root handles global flags and version.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var LatestRelease *update.ReleaseInfo
LatestRelease holds the result of the background version check. Populated by PersistentPostRun, consumed by notification surfaces.
var Version = "dev"
Version is set at build time via ldflags.
Functions ¶
Types ¶
type CheckResult ¶ added in v0.23.53
type CheckResult struct {
Label string // e.g. "Config", "claude", "workbench"
Status string // "OK", "WARN", "FAIL", "NOTE", "INFO"
Detail string // Human-readable description
}
CheckResult is a single named check with a status and detail string.
type DoctorEnv ¶ added in v0.23.53
type DoctorEnv struct {
LookPath func(string) (string, error)
GetVersion func([]string) string
Dial func(string, string, time.Duration) (net.Conn, error)
WorkDir string
}
DoctorEnv provides injectable dependencies for doctor checks.
func DefaultDoctorEnv ¶ added in v0.23.53
func DefaultDoctorEnv() DoctorEnv
DefaultDoctorEnv returns the production dependencies.
type DoctorReport ¶ added in v0.23.53
type DoctorReport struct {
Prereqs []CheckResult
Project []CheckResult
Remotes []CheckResult
Environment []CheckResult
ProjectName string // Empty if no project found.
ProjectRoot string
}
DoctorReport holds all check results grouped by section.
func RunDoctorReport ¶ added in v0.23.53
func RunDoctorReport(env DoctorEnv) DoctorReport
RunDoctorReport runs all doctor checks and returns a structured report.
func (DoctorReport) HasRequiredMissing ¶ added in v0.23.53
func (r DoctorReport) HasRequiredMissing() bool
HasRequiredMissing returns true if any prerequisite check failed.
func (DoctorReport) WarningCount ¶ added in v0.23.53
func (r DoctorReport) WarningCount() int
WarningCount returns the total number of warnings across all sections.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
selectortest is a manual QA harness for the role selector widget.
|
selectortest is a manual QA harness for the role selector widget. |