Expand description
Configuration loading and profile management.
Reads config.toml from the XDG config directory and supports
environment variable overrides for sensitive values like API tokens.
Structs§
- Defaults
- Global defaults.
- Google
Config - Google Ads provider configuration (stub).
- Linked
InConfig - LinkedIn Marketing provider configuration (stub).
- Meta
Config - Meta (Facebook/Instagram) provider configuration.
- MktConfig
- Top-level configuration loaded from
config.toml. - Profile
- A named profile containing provider-specific configurations.
- TikTok
Config - TikTok for Business provider configuration (stub).
Functions§
- config_
dir - Returns the mkt config directory.
- config_
file - Returns the path to
config.toml. - permissions_
warning - A warning message when
pathis readable or writable by group/other (the file may contain tokens).Nonewhen permissions are fine, the file does not exist, or the platform has no Unix modes. - write_
private - Write
contenttopath, creating the file owner-only (0600).