Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = map[string]types.Command{ "enter": { Description: "Enters the environment", Fn: enter, }, "build/me": { Description: "Rebuilds the builder", Fn: func(ctx context.Context, deps types.DepsFunc) error { return nil }, }, "tools/setup": { Description: "Installs all the tools for the host operating system", Fn: tools.EnsureAll, }, "tools/verify": { Description: "Verifies the checksums of all the tools", Fn: tools.VerifyChecksums, }, }
Commands is the list of standard commands useful for every environment.
Functions ¶
func EnsureTool ¶
EnsureTool ensures that tool exists, if not it is installed
func InstallTools ¶
InstallTools installs tools
func RegisterCommands ¶
RegisterCommands registers registeredCommands.
Types ¶
type Tool ¶
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.