Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitCodeFromErr ¶
ExitCodeFromErr maps domain errors to shell exit codes; unknown returns 1.
Types ¶
type Params ¶
type Params struct {
Owner, Repo, Tag string
UseLatest bool // if true, Tag is ignored; use GitHub releases/latest
InstallDir string // default "bin" (relative to cwd resolved to abs)
Force bool
Token string // optional; also read from GITHUB_TOKEN in CLI
AllowPrerelease bool // default false
OutputName string // empty = name from archive
GitHubBaseURL string // empty = default
GOOS string // optional explicit target override
GOARCH string // optional explicit target override
}
Params configures Install (plugin binary from GitHub Releases).
Click to show internal directories.
Click to hide internal directories.