Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveInstallDir ¶
func RemoveInstallDir() error
Types ¶
type Tool ¶
type Tool interface { // Name returns the name of the tool Name() string // ExecutableName returns the main binary name of the tool that will be installed in latest ExecutableName() string // Install fetches the latest tool from it's respective source, installs // it in a tool-unique directory under the provided rootDir, and symlinks // it to provided the latestDir Install() error // Configure currently unused Configure() error // Remove uninstalls the tool by deleting its tool-unique directory under // the provided rootDir and unlinking itself from the latestDir Remove() error // Installed validates whether the tool has already been installed under the // provided rootDir or not Installed() (bool, error) // InstalledVersion gets the version installed in latest folder InstalledVersion() (string, error) // LatestVersion gets the latest version available on repo LatestVersion() (string, error) }
func ListInstalled ¶
ListInstalled returns a slice containing all tools the current machine has installed
Click to show internal directories.
Click to hide internal directories.