Documentation
¶
Overview ¶
Package overrides manages workspace-specific binary path overrides
Index ¶
- func GetBinaryOverride(workspaceRoot, binaryName string) string
- func GetConfigPath(workspaceRoot string) string
- func ListOverrides(workspaceRoot string) (map[string]string, error)
- func RemoveBinaryOverride(workspaceRoot, binaryName string) error
- func SaveConfig(workspaceRoot string, config *Config) error
- func SetBinaryOverride(workspaceRoot, binaryName, binaryPath string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBinaryOverride ¶
GetBinaryOverride returns the override path for a binary in a workspace Returns empty string if no override is configured
func GetConfigPath ¶
GetConfigPath returns the path to the overrides config file for a workspace
func ListOverrides ¶
ListOverrides returns all configured overrides for a workspace
func RemoveBinaryOverride ¶
RemoveBinaryOverride removes an override for a binary in a workspace
func SaveConfig ¶
SaveConfig saves the overrides configuration for a workspace
func SetBinaryOverride ¶
SetBinaryOverride sets an override path for a binary in a workspace
Types ¶
type Config ¶
type Config struct {
// Binaries maps binary name to its override path
// Example: {"flow": "/path/to/grove-flow/.grove-worktrees/feature/bin/flow"}
Binaries map[string]string `json:"binaries"`
}
Config holds workspace-specific binary overrides This allows a workspace to point to binaries from other workspaces
func LoadConfig ¶
LoadConfig loads the overrides configuration for a workspace