devlinks

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 4 Imported by: 0

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() error

ClearAllCurrentLinks resets all active development links This is called when switching to a released version

func SaveConfig

func SaveConfig(config *Config) error

SaveConfig saves the devlinks configuration to the registry file

Types

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

func LoadConfig() (*Config, error)

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

Jump to

Keyboard shortcuts

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