Documentation
¶
Overview ¶
Package install provides installation utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsPath ¶
ContainsPath checks if the given directory is in the PATH environment variable.
func DefaultUserBin ¶
func DefaultUserBin() string
DefaultUserBin returns a sensible per-user bin directory per OS.
func ExecuteInstall ¶
ExecuteInstall performs the install actions (will create dirs, copy file, set modes). It returns human-friendly messages describing what was actually done (created directories, copied the binary, added to PATH, etc.).
func PlanInstall ¶
PlanInstall returns a list of human-readable actions that would be performed.
func PlanUninstall ¶
PlanUninstall returns a list of actions that would be performed by Uninstall.
Types ¶
type Options ¶
type Options struct {
User bool
System bool
Path string
From string
DryRun bool
Check bool
Yes bool
AddToPath bool // if true, installer will add target dir to PATH (with confirmation)
}
Options controls install behavior.
Click to show internal directories.
Click to hide internal directories.