dependencies

package
v1.0.34 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

func ShouldUseTUI(ciFlag bool) bool

ShouldUseTUI returns true if TUI should be used

Types

type Dependency

type Dependency struct {
	Name    string
	Command string
}

Dependency represents a required tool

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry manages dependency resolution with fallback

func New

func New() *Registry

New creates a new dependency registry

func (*Registry) Check

func (r *Registry) Check(dep *Dependency) bool

Check checks if a dependency is available

func (*Registry) CheckGum

func (r *Registry) CheckGum() bool

CheckGum checks if gum is available

func (*Registry) CheckMise

func (r *Registry) CheckMise() bool

CheckMise checks if mise 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

Jump to

Keyboard shortcuts

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