Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallDir ¶
func RemoveInstallDir ¶
func RemoveInstallDir() error
Types ¶
type Tool ¶
type Tool interface {
// Name returns the name of the tool
Name() 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(rootDir, latestDir string) error
// Confiure is currently unused
Configure() error
// Remove uninstalls the tool by deleting it's tool-unique directory under
// the provided rootDir and unlinking itself from the latestDir
Remove(rootDir, latestDir string) error
// Installed validates whether the tool has already been installed under the
// provided rootDir or not
Installed(rootDir string) (bool, error)
}
func ListInstalled ¶ added in v0.1.0
ListInstalled returns a slice containing all tools the current machine has installed
Click to show internal directories.
Click to hide internal directories.