Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureTool ¶ added in v1.5.1
EnsureTool ensures that tool exists, if not it is installed
func InstallTools ¶ added in v1.5.1
InstallTools installs tools
Types ¶
type DepsFunc ¶
type DepsFunc func(deps ...interface{})
DepsFunc represents function for executing dependencies
type Executor ¶
type Executor interface { // Execute executes commands by their paths Execute(ctx context.Context, name string, paths []string) error }
Executor defines interface of command executor
func NewIoCExecutor ¶
NewIoCExecutor returns new executor using IoC container to resolve parameters of commands
type Tool ¶ added in v1.5.1
type Tool struct { // Name is the name of the tool Name string // Version is the version of the tool Version string // IsGlobal instructs us to install the tool in global bin folder IsGlobal bool // URL is the url to the archive containing the tool URL string // Hash is the hash of the downloaded file Hash string // Binaries is the list of relative paths to binaries to install in local bin folder Binaries map[string]string }
Tool represents the tool to be required by the build system
Click to show internal directories.
Click to hide internal directories.