Documentation
¶
Index ¶
- func IsInteractiveTerminal() bool
- func ShouldUseTUI(ciFlag bool) bool
- type Dependency
- type Registry
- func (r *Registry) Check(dep *Dependency) bool
- func (r *Registry) CheckGum() bool
- func (r *Registry) CheckMise() bool
- func (r *Registry) GetGumDep() *Dependency
- func (r *Registry) GetInstallCommand(dep *Dependency) string
- func (r *Registry) GetMiseDep() *Dependency
- func (r *Registry) Install(dep *Dependency) (bool, error)
- func (r *Registry) PromptForInstall(dep *Dependency) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInteractiveTerminal ¶
func IsInteractiveTerminal() bool
IsInteractiveTerminal checks if stdout is a terminal
func ShouldUseTUI ¶
ShouldUseTUI returns true if TUI should be used
Types ¶
type Dependency ¶
Dependency represents a required tool
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry manages dependency resolution with fallback
func (*Registry) Check ¶
func (r *Registry) Check(dep *Dependency) bool
Check checks if a dependency is available
func (*Registry) GetGumDep ¶
func (r *Registry) GetGumDep() *Dependency
GetGumDep returns the gum dependency
func (*Registry) GetInstallCommand ¶
func (r *Registry) GetInstallCommand(dep *Dependency) string
GetInstallCommand returns the installation command for a dependency
func (*Registry) GetMiseDep ¶
func (r *Registry) GetMiseDep() *Dependency
GetMiseDep returns the mise dependency
func (*Registry) Install ¶
func (r *Registry) Install(dep *Dependency) (bool, error)
Install tries to install a dependency
func (*Registry) PromptForInstall ¶
func (r *Registry) PromptForInstall(dep *Dependency) (bool, error)
PromptForInstall prompts user about installing a dependency
Click to show internal directories.
Click to hide internal directories.