Migrating one config structure to another
Closed this issue · 1 comments
chris9740 commented
Hello! When making changes to my configuration, how can I "migrate" from one configuration structure to another?
Current configuration:
mode = "Standard"
address = "127.0.0.1:53"
tor = true
Desired configuration:
mode = "Standard"
address = "127.0.0.1:53"
[tor]
enabled = true
address = "127.0.0.1:9050"
Here's a repo that contains the basic code: https://github.com/chris9740/confy-migrate
deg4uss3r commented
Hey @chris9740, unfortunately this repository is not intended to help with migration.
It is more about making configs easy to create, I would see migration being more of the application code that calls this library, like a database migration would be, possibly this could be done cleanly in the deserialization stage before you use the config file in your logic.