version

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RegexVersionNumber = regexp.MustCompile(`(?m)[v\s](\d+\.\d+\.\d+)`)

	// ErrNotInstalled is returned when the tool binary is missing.
	ErrNotInstalled = errors.New("not installed")
	// ErrVersionUnknown is returned when the binary exists but its version
	// could not be determined (unsupported flag, empty/unparseable output, ...).
	// Callers should surface a generic label and may log the wrapped detail.
	ErrVersionUnknown = errors.New("unknown")
)

Functions

func ExtractInstalledVersion

func ExtractInstalledVersion(tool types.Tool, basePath string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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