config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package config loads Fuse configuration from fuse.yaml + env overrides.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocateConfig

func LocateConfig(cwd string) string

LocateConfig returns the first existing fuse.yaml walking up from cwd. Returns "" if nothing found.

Types

type Config

type Config struct {
	Version     int          `yaml:"version"`
	GroveURL    string       `yaml:"grove_url"`
	GroveBinary string       `yaml:"grove_binary"`
	Merge       MergeConfig  `yaml:"merge"`
	Git         GitConfig    `yaml:"git"`
	Server      ServerConfig `yaml:"server"`
}

func Default

func Default() *Config

Default returns the baseline configuration used when no file is found.

func Load

func Load(path string) (*Config, error)

Load reads fuse.yaml from path (or returns defaults if not present) and applies environment overrides (GROVE_URL, FUSE_HANDOFF_THRESHOLD, FUSE_GROVE_REQUIRED).

type GitConfig

type GitConfig struct {
	AutoInstall     bool   `yaml:"auto_install"`
	AttributesScope string `yaml:"attributes_scope"`
}

type MergeConfig

type MergeConfig struct {
	ConfidenceMode       string  `yaml:"confidence_mode"`
	HandoffThreshold     float64 `yaml:"handoff_threshold"`
	EnableBreakingChange bool    `yaml:"enable_breaking_change"`
	EnableContext        bool    `yaml:"enable_context"`
	GroveRequired        bool    `yaml:"grove_required"`
}

type ServerConfig

type ServerConfig struct {
	Port int `yaml:"port"`
}

Jump to

Keyboard shortcuts

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