Versions in this module Expand all Collapse all v0 v0.9.0 Feb 2, 2026 v0.8.0 Jan 25, 2026 Changes in this version + var DefaultRegistry = Registry + func FormatMissingError(result CheckResult) string + type CLIPrompter struct + In io.Reader + Out io.Writer + func NewCLIPrompter() *CLIPrompter + func (p *CLIPrompter) Choose(message string, options []string) (int, error) + func (p *CLIPrompter) Confirm(message string) (bool, error) + func (p *CLIPrompter) Error(message string) + func (p *CLIPrompter) Info(message string) + func (p *CLIPrompter) Warn(message string) + type CheckResult struct + Missing []MissingRequirement + Satisfied []string + Unknown []string + func EnsureRequirements(requires []string, prompter Prompter) CheckResult + func EnsureRequirementsWithChecker(requires []string, checker *Checker, prompter Prompter) CheckResult + func (r CheckResult) AllSatisfied() bool + type Checker struct + Registry Registry + func NewChecker() *Checker + func NewCheckerWithRegistry(reg Registry) *Checker + func (c *Checker) Check(requires []string) CheckResult + func (c *Checker) GetAllInstallCommands(name string) []InstallMethod + func (c *Checker) GetInstallCommand(name string) string + func (c *Checker) IsInstalled(name string) bool + type InstallMethod struct + Command string + Name string + Platforms []string + Requires []string + type MissingRequirement struct + AvailableMethods []InstallMethod + Requirement Requirement + SuggestedMethod *InstallMethod + type Prompter interface + Choose func(message string, options []string) (int, error) + Confirm func(message string) (bool, error) + Error func(message string) + Info func(message string) + Warn func(message string) + type Registry map[string]Requirement + func (r Registry) Get(name string) *Requirement + func (r Registry) Merge(overlay Registry) Registry + func (r Registry) Names() []string + type Requirement struct + Check string + Homepage string + InstallMethods []InstallMethod + Name string + Purpose string