Commit Graph
14 Commits
Author SHA1 Message Date
steven-omaha 4a1d67847e fix: don't overwrite config file
So far we have written a default config file if we encountered any error
when trying to read the one that should exist. That included:
* missing key-value-pairs,
* empty file, and
* a non-existant file.

Therefore, when a field is added to the Config struct, the entire config
file was overwritten with a default config. This occured during #20.

Instead, we now provide default values in form of generator functions to
serde. Any value that is present in the config is then parsed and
replaces the default value. Only if the config file does not exist we
create an empty one.

Closes #26.
2023-05-19 17:41:33 +02:00
teackot 6f10c789eb Add flatpak_systemwide option 2023-05-16 18:32:29 +03:00
steven-omaha 082cad9529 chore: reformat a docstring 2023-05-12 22:41:16 +02:00
steven-omaha 001ccb5bf6 docs: update todo, reminder in Config to update readme 2023-05-12 22:41:01 +02:00
steven-omaha 08f9a9305c docs(config): update Config::load 2023-04-28 14:07:37 +02:00
steven-omaha b524840bc9 add option to disable backends 2023-02-28 12:58:24 +01:00
steven-omaha ed9ed4f589 show transition information when new version runs for first time 2023-02-23 13:12:25 +01:00
steven-omaha 100ee9bef9 start reworking config loading (for transition) WIP 2023-02-23 12:09:09 +01:00
steven-omaha 93075c4bfc replace qualified names with use 2023-02-15 16:11:02 +01:00
steven-omaha 9c512073b8 handle non-existing pacdef-related dirs 2023-02-15 15:52:56 +01:00
steven-omaha 9e0913ef25 refactor Config::load 2023-02-15 15:23:11 +01:00
steven-omaha c490c660b4 add missing docs 2023-02-14 15:01:01 +01:00
steven-omaha 38a44f1745 fix some pedantic lints 2023-02-14 14:02:37 +01:00
steven-omaha e7cb7d9321 rename all crates 2023-02-14 13:12:08 +01:00