userconfig

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package userconfig manages machine-local Means settings. Collection operations receive these settings explicitly and never read the user's home directory.

Index

Constants

View Source
const Example = `` /* 463-byte string literal not displayed */

Variables

This section is empty.

Functions

func LoadEnvironment

func LoadEnvironment(path string) error

LoadEnvironment fills unset environment variables from the collection's .env, then the working directory's .env. Existing variables, even empty ones, win. Missing files are optional. Parse errors deliberately omit credential values.

func Path

func Path() (string, error)

Types

type Config

type Config struct{ Embeddings *collection.EmbeddingConfig }

func Open

func Open() (cfg *Config, warning error, err error)

Open bootstraps a missing file and loads settings. A bootstrap failure is a warning with disabled settings; an existing invalid/unreadable file is an error. Callers own reporting, keeping library code and MCP stdout silent.

func Parse

func Parse(data []byte) (*Config, error)

Jump to

Keyboard shortcuts

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