Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
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.
Click to show internal directories.
Click to hide internal directories.