NewTestConfig creates a config for testing
(generatedConfigPath string, key uuid.UUID)
| 74 | |
| 75 | // NewTestConfig creates a config for testing |
| 76 | func NewTestConfig(generatedConfigPath string, key uuid.UUID) *Config { |
| 77 | cfg, _ := Load() |
| 78 | cfg.GeneratedConfigPath = generatedConfigPath |
| 79 | cfg.ApiKey = key |
| 80 | return cfg |
| 81 | } |
| 82 | |
| 83 | func GetEnv(key, fallback string) string { |
| 84 | value, exists := os.LookupEnv(key) |