[Feature] Switch primary configuration to YAML file #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Motivation
Replace the current flat flag/env-based
Configstruct with a YAML file (config.yaml), loaded viagopkg.in/yaml.v3. Structure config as one sub-tree per module, e.g.:Secrets (tokens, webhook secrets) stay out of the file itself — use
${ENV_VAR}placeholders resolved at load time, so the YAML file itself can be safely committed as a template/example.Add a
-configflag (default e.g../config.yaml) to point to the file location. Keep this independent from the module refactor (#1) but coordinate — modules should read their config from their own sub-tree, not a shared flat struct.Proposal
No response
Alternatives Considered
No response