Documentation
¶
Index ¶
Constants ¶
View Source
const (
// InstallDir is the directory where dependency binaries (CLI, ccache) are installed.
InstallDir = "/usr/local/bin"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tool ¶
type Tool struct {
Name string
Version string
Install func(ctx context.Context, logger log.Logger) error
}
Tool describes an external binary that needs to be available on PATH.
func CLITool ¶
CLITool returns a Tool that installs the bitrise-build-cache binary matching the version embedded in the current binary's module dependencies. When the current process IS the CLI binary (e.g. dev builds via `go run`), it self-installs by copying the running executable to InstallDir.
func (Tool) IsInstalled ¶
IsInstalled returns true if the tool binary is found on PATH.
Click to show internal directories.
Click to hide internal directories.