[chore] cleanup server CLI / environment / configuration file parsing #1244
Labels
chore
a pain in the butt that needs doing
cli
Command-line interface related
config
Something needs to be made configurable, or there's a config issue
enhancement
New feature or request
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)The text was updated successfully, but these errors were encountered: