Documentation
¶
Overview ¶
Package cli implements git-stack subcommands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is set via -ldflags at release time (GoReleaser). When left as "dev", ResolvedVersion falls back to module/VCS build info.
Functions ¶
func ResolvedVersion ¶ added in v0.1.1
func ResolvedVersion() string
ResolvedVersion returns the release version when stamped, otherwise the module version from go install, otherwise a short VCS revision for local builds.
func Upgrade ¶ added in v0.1.3
func Upgrade(opts UpgradeOpts) error
Upgrade checks for a newer release and installs it over the running binary.
Types ¶
type UpgradeOpts ¶ added in v0.1.3
type UpgradeOpts struct {
Check bool // only report; do not install
Force bool // reinstall even when already on latest
}
UpgradeOpts controls upgrade behavior.
Click to show internal directories.
Click to hide internal directories.