Discover Packages
github.com/bronlabs/bron-cli
internal
config
package
Version:
v0.3.4
Opens a new window with list of versions in this module.
Published: Apr 29, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const DefaultBaseURL = "https://api.bron.org"
type Config struct {
ActiveProfile string `yaml:"active_profile"`
Profiles map[string ]Profile `yaml:"profiles"`
}
FilePath returns the resolved on-disk location of this config.
Resolve returns the profile to use, applying env overrides on top of YAML.
Precedence (highest first): explicit name → BRON_PROFILE → ActiveProfile → "default".
Env vars BRON_WORKSPACE_ID, BRON_BASE_URL, BRON_API_KEY_FILE override individual fields.
Save writes the config back to disk, creating parent directories as needed.
File mode is 0600 — it may contain workspace IDs and key-file paths.
type Profile struct {
Workspace string `yaml:"workspace,omitempty"`
BaseURL string `yaml:"base_url,omitempty"`
KeyFile string `yaml:"key_file,omitempty"`
Proxy string `yaml:"proxy,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.