package
Version:
v0.19.0
Opens a new window with list of versions in this module.
Published: Aug 23, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package config persists aiacc providers and accounts as TOML.
DefaultPath returns the config file location, honoring XDG_CONFIG_HOME.
Save writes the config, creating the parent directory if needed.
type Account struct {
Dir string `toml:"dir"`
Quota int `toml:"quota,omitempty"`
}
type Config struct {
Providers map[string]Provider `toml:"providers"`
}
Load reads the config; a missing file yields an empty, ready-to-use Config.
type Provider struct {
EnvVar string `toml:"env_var"`
Command string `toml:"command,omitempty"`
Accounts map[string]Account `toml:"accounts"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.