tool

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(tools []Tool) error

Install creates the directories necessary to install the provided tools and

func InstallDir

func InstallDir() (string, error)

func LatestDir

func LatestDir() (string, error)

func Remove

func Remove(tools []Tool) error

Remove removes the provided tools from the install directory

func RemoveInstallDir

func RemoveInstallDir() error

Types

type Map

type Map map[string]Tool

func GetMap

func GetMap() Map

func (Map) Names

func (m Map) Names() []string

type Tool

type Tool interface {
	Name() string

	Install(rootDir, latestDir string) error

	Configure() error

	Remove(rootDir, latestDir string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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