Documentation
¶
Overview ¶
Package devlinks manages local development binary links for Grove tools
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearAllCurrentLinks ¶
func ClearAllCurrentLinks() error
ClearAllCurrentLinks resets all active development links This is called when switching to a released version
func SaveConfig ¶
SaveConfig saves the devlinks configuration to the registry file
Types ¶
type BinaryLinks ¶
type BinaryLinks struct {
// Links maps an alias (e.g., "main", "feature-x") to its link details
Links map[string]LinkInfo `json:"links"`
Current string `json:"current"` // The alias of the active link
}
BinaryLinks holds all local development links and the current active link for a single binary
type Config ¶
type Config struct {
// Binaries maps a binary name (e.g., "grove", "flow") to its link information
Binaries map[string]*BinaryLinks `json:"binaries"`
}
Config is the top-level structure for the devlinks registry file
func LoadConfig ¶
LoadConfig loads the devlinks configuration from the registry file
type LinkInfo ¶
type LinkInfo struct {
Path string `json:"path"` // Absolute path to the binary
WorktreePath string `json:"worktree_path"` // Absolute path to the root of the worktree
RegisteredAt string `json:"registered_at"`
}
LinkInfo contains the details for a specific registered local development binary
Click to show internal directories.
Click to hide internal directories.