cmd

package
v0.25.35 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 29 Imported by: 0

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

View Source
var LatestRelease *update.ReleaseInfo

LatestRelease holds the result of the background version check. Populated by PersistentPostRun, consumed by notification surfaces.

View Source
var Version = "dev"

Version is set at build time via ldflags.

Functions

func Execute

func Execute()

Execute runs the root command.

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.

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.

Jump to

Keyboard shortcuts

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