Documentation
¶
Overview ¶
Package deps manages external dependencies for Gas Town.
Index ¶
Constants ¶
View Source
const BeadsInstallPath = "github.com/steveyegge/beads/cmd/bd@latest"
BeadsInstallPath is the go install path for beads.
View Source
const MinBeadsVersion = "0.47.0"
MinBeadsVersion is the minimum compatible beads version for this Gas Town release. Update this when Gas Town requires new beads features.
Variables ¶
This section is empty.
Functions ¶
func EnsureBeads ¶
EnsureBeads checks for bd and installs it if missing or outdated. Returns nil if bd is available and compatible. If autoInstall is true, will attempt to install bd when missing.
Types ¶
type BeadsStatus ¶
type BeadsStatus int
BeadsStatus represents the state of the beads installation.
const ( BeadsOK BeadsStatus = iota // bd found, version compatible BeadsNotFound // bd not in PATH BeadsTooOld // bd found but version too old BeadsUnknown // bd found but couldn't parse version )
func CheckBeads ¶
func CheckBeads() (BeadsStatus, string)
CheckBeads checks if bd is installed and compatible. Returns status and the installed version (if found).
Click to show internal directories.
Click to hide internal directories.