Open NyaaaWhatsUpDoc opened 1 year ago
@tsmethurst if you're good with this, I have the start of some changes, and the rest of them ready in my head :)
@NyaaaWhatsUpDoc should we still consider this issue open? Or should we close it? I don't think we're having too much trouble with our config stuff these days.
Current issues:
config.Get___()
despite only ever being used incmd/gotosocial/action/...
My proposed change:
DatabaseConfiguration{}
,StorageConfiguration{}
etcdebug config
action to be underconfig dump-json
, and then adddump-yaml
anddump-toml
actions to allow printing current configuration to file. useful if you have an old configuration file that you want to easily update with the latest flags without manually doing itcmd/config-migrate
utility that allows converting from old to new configuration file format. environment variable parsing and those relying on CLI flags will unfortunately run into breakages, but ultimately we are alpha and I don't think many will be relying on them for the finer configurables (e.g. oidc)