funnyboy-roks/pastes

Clean up config handling

funnyboy-roks opened this issue · 0 comments

The code right now for the config is a mess, and I'm not 100% sure on the right way to handle the config.

I'd like to automatically generate the config on startup if it's not already there and none have been specified via --config, like it is now, but I'm not sure if there's a nicer way to do it. We could use serde to write it, but I don't think that one can have comments with the toml crate. It may be possible to add comments with the toml_edit crate, but I don't know enough about it.

If anyone has knowledge or would like to tackle this, contributions are welcome!