cli

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 19 Imported by: 0

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 Run

func Run(args []string) error

Run parses args and executes. args should be os.Args[1:].

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL