Documentation
¶
Overview ¶
Package config provides configuration management for cfl.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigPath ¶
func DefaultConfigPath() string
DefaultConfigPath returns the default configuration file path.
Types ¶
type Config ¶
type Config struct {
URL string `yaml:"url"`
Email string `yaml:"email"`
APIToken string `yaml:"api_token"`
DefaultSpace string `yaml:"default_space,omitempty"`
OutputFormat string `yaml:"output_format,omitempty"`
}
Config holds the cfl configuration.
func LoadWithEnv ¶
LoadWithEnv loads configuration from file and overrides with environment variables.
func (*Config) LoadFromEnv ¶
func (c *Config) LoadFromEnv()
LoadFromEnv loads configuration from environment variables. Environment variables override existing values only if set and non-empty. Precedence: CFL_* → ATLASSIAN_* → existing config value
func (*Config) NormalizeURL ¶
func (c *Config) NormalizeURL()
NormalizeURL ensures the URL has the /wiki suffix for Confluence Cloud.
Click to show internal directories.
Click to hide internal directories.