OkaeriPoland / okaeri-configs

Simple Java/POJO config library written with love and Lombok
MIT License
77 stars 11 forks source link

[Feature Request] Adding missing keys on OkaeriConfigInitializer#saveDefaults #6

Closed CDFN closed 3 years ago

CDFN commented 3 years ago

It'd be great if missing keys were added on OkaeriConfigInitializer#saveDefaults. Currently if we add field to a class and config file the class is assigned to already exists, new field isn't getting inserted into the config file.

dasavick commented 3 years ago

saveDefaults is used to save config only when the bindFile does not exist. To update comments/add new keys use save(true) where boolean means: "should we force update config?"