Skip to main content

Module config

Module config 

Source
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.
GoogleConfig
Google Ads provider configuration (stub).
LinkedInConfig
LinkedIn Marketing provider configuration (stub).
MetaConfig
Meta (Facebook/Instagram) provider configuration.
MktConfig
Top-level configuration loaded from config.toml.
Profile
A named profile containing provider-specific configurations.
TikTokConfig
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 path is readable or writable by group/other (the file may contain tokens). None when permissions are fine, the file does not exist, or the platform has no Unix modes.
write_private
Write content to path, creating the file owner-only (0600).