Documentation
¶
Index ¶
Constants ¶
View Source
const ( OSLinux = "linux" OSWindows = "windows" OSMacOS = "macos" OSDarwin = "darwin" )
OS constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Command string `json:"command"`
Args []string `json:"args"`
Description string `json:"description,omitempty"`
}
Command represents a shell command to execute
type HTTPClient ¶
type HTTPClient interface {
Name() string
SupportsOS(os string) bool
IsAvailable() bool
CheckURLCommand(url string, expectedStatus int, retries *Retries) Command
}
HTTPClient defines a simple interface for HTTP clients
type PackageManager ¶
type PackageManager interface {
Name() string
SupportsOS(os string) bool
InstallCommand(pkg, version string) Command
CheckInstalledCommand(pkg string) Command
// GetInstallCommands returns all commands needed for installation (e.g., install + global set for asdf)
GetInstallCommands(pkg, version string) []Command
}
PackageManager defines a simple interface for package managers
Click to show internal directories.
Click to hide internal directories.