config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() types.Config

Load loads the configuration from YAML file and environment variables. Environment variables take precedence over YAML config.

func WritablePath

func WritablePath() string

WritablePath returns the config file self-configuration should write to: the first existing config path (so additions are visible to Load), else the preferred default ~/.config/nib/config.yaml.

Types

type AgentTypeConfig

type AgentTypeConfig = types.AgentTypeConfig

AgentTypeConfig is re-exported for ergonomic use within the config package.

func MergeAgentTypes

func MergeAgentTypes(user []AgentTypeConfig) []AgentTypeConfig

MergeAgentTypes returns the built-in types with any user entries merged in: an entry whose Name matches a default overrides it field-for-field; a new Name is appended. Defaults not mentioned by the user are preserved.

Jump to

Keyboard shortcuts

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