Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoolEnv ¶ added in v0.2.0
GetBoolEnv gets a boolean environment variable or returns a default value
func GetEnv ¶
Helper functions to get values from environment variables GetEnv gets an environment variable or returns a default value
func GetEnvDuration ¶
GetEnvDuration gets a duration environment variable or returns a default value
func LoadEnvFileForTesting ¶
func LoadEnvFileForTesting()
LoadEnvFileForTesting exports the loadEnvFile function for testing purposes
Types ¶
type Config ¶
type Config struct {
// Essential settings
Username string
Password string
Repository string
Namespace string
Content string
MaxContent int
OutputPath string
// Performance settings
Concurrency int
Timeout time.Duration
RetryCount int
RetryDelay time.Duration
// Advanced settings
LogLevel string
LogFile string
ShowVersion bool
Force bool
DryRun bool
Profile string
ConfigFilePath string
Version string
// Telemetry settings
TelemetryEnabled bool
MetricsEnabled bool
}
Config represents the application configuration
func DefaultConfig ¶ added in v0.2.0
func DefaultConfig() *Config
DefaultConfig returns a config with sensible defaults
func ParseConfig ¶
ParseConfig parses command-line flags, environment variables, and config files
func (*Config) LoadFromFile ¶ added in v0.2.0
LoadFromFile loads configuration from a file
func (*Config) SaveToFile ¶ added in v0.2.0
SaveToFile saves configuration to a file
type ConfigProfile ¶ added in v0.2.0
ConfigProfile represents a named set of configuration options