Documentation
¶
Index ¶
- func ConfigDir() (string, error)
- func ConfigFilePath() (string, error)
- func CredentialsFilePath() (string, error)
- func LoadConfig() (map[string]string, error)
- func LoadCredentials() (map[string]string, error)
- func SaveConfig(cfg map[string]string) error
- func SaveCredentials(creds map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigDir ¶
ConfigDir returns the flowmi configuration directory. It checks $XDG_CONFIG_HOME/flowmi first, falling back to ~/.config/flowmi.
func ConfigFilePath ¶
ConfigFilePath returns the full path to config.toml.
func CredentialsFilePath ¶
CredentialsFilePath returns the full path to credentials.toml.
func LoadConfig ¶
LoadConfig reads key-value pairs from config.toml. Returns an empty map (not an error) if the file does not exist.
func LoadCredentials ¶
LoadCredentials reads key-value pairs from credentials.toml. Returns an empty map (not an error) if the file does not exist.
func SaveConfig ¶
SaveConfig writes key-value pairs to config.toml.
func SaveCredentials ¶
SaveCredentials writes key-value pairs to credentials.toml with 0600 permissions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.