package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Feb 4, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
AppName is the application name used for config directories.
ConfigExists checks if the config file exists.
ConfigPath returns the config file path.
Dir returns the config directory path.
EnsureDir creates the config directory if it doesn't exist.
EnsureKeyringDir creates the keyring directory if it doesn't exist.
KeyringDir returns the keyring directory path.
WriteConfig writes the config file atomically.
type File struct {
DefaultProfile string `yaml:"default_profile,omitempty"`
Profiles map[string]Profile `yaml:"profiles,omitempty"`
KeyringBackend string `yaml:"keyring_backend,omitempty"`
}
File represents the config file structure.
ReadConfig reads the config file.
type Profile struct {
AccountID string `yaml:"account_id,omitempty"`
}
Profile represents a named profile configuration.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.