overrides

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: 3 Imported by: 0

Documentation

Overview

Package overrides manages workspace-specific binary path overrides

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBinaryOverride

func GetBinaryOverride(workspaceRoot, binaryName string) string

GetBinaryOverride returns the override path for a binary in a workspace Returns empty string if no override is configured

func GetConfigPath

func GetConfigPath(workspaceRoot string) string

GetConfigPath returns the path to the overrides config file for a workspace

func ListOverrides

func ListOverrides(workspaceRoot string) (map[string]string, error)

ListOverrides returns all configured overrides for a workspace

func RemoveBinaryOverride

func RemoveBinaryOverride(workspaceRoot, binaryName string) error

RemoveBinaryOverride removes an override for a binary in a workspace

func SaveConfig

func SaveConfig(workspaceRoot string, config *Config) error

SaveConfig saves the overrides configuration for a workspace

func SetBinaryOverride

func SetBinaryOverride(workspaceRoot, binaryName, binaryPath string) error

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

func LoadConfig(workspaceRoot string) (*Config, error)

LoadConfig loads the overrides configuration for a workspace

Jump to

Keyboard shortcuts

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