delegation

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 delegation manages the binary delegation mode configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigPath

func GetConfigPath() (string, error)

GetConfigPath returns the path to the delegation config file

func SaveConfig

func SaveConfig(config *Config) error

SaveConfig saves the delegation configuration

func SetMode

func SetMode(mode Mode) error

SetMode sets the delegation mode

Types

type Config

type Config struct {
	Mode Mode `json:"mode"`
}

Config holds the delegation configuration

func LoadConfig

func LoadConfig() (*Config, error)

LoadConfig loads the delegation configuration

type Mode

type Mode string

Mode represents the binary delegation strategy

const (
	// ModeGlobal uses globally configured binaries (default)
	ModeGlobal Mode = "global"
	// ModeWorkspace prioritizes workspace-local binaries
	ModeWorkspace Mode = "workspace"
)

func GetMode

func GetMode() Mode

GetMode returns the current delegation mode

Jump to

Keyboard shortcuts

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