steven-omaha
89fc17c473
refact(main): create_empty_config_file
2023-06-02 12:38:42 +02:00
TeeWallz
25ea8d99b9
Added call to create config directory
2023-06-01 20:27:32 +02:00
steven-omaha
db6fd74832
fix: remove dbg
2023-05-19 17:55:29 +02:00
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
steven-omaha
06cfbc792b
refact(main): major update message
2023-05-15 13:24:30 +02:00
steven-omaha
faa6b1451d
refact(main): extract load_default_config
2023-05-08 15:38:46 +02:00
steven-omaha
ef937ca146
add error GroupFileNotFound
2023-02-24 15:33:26 +01:00
steven-omaha
49289c9677
improve outer error message
2023-02-23 13:13:37 +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
d064416a37
format docstrings (still WIP)
2023-02-23 12:11:45 +01:00
steven-omaha
100ee9bef9
start reworking config loading (for transition) WIP
2023-02-23 12:09:09 +01:00
steven-omaha
5f85394f62
clean up main error handling
2023-02-23 11:51:55 +01:00
steven-omaha
5148cca267
Revert "add error NoGroupFilesInArguments"
...
This partially reverts commit a4c900c9a7 .
TODO.md is unaffected by this.
2023-02-22 14:20:09 +01:00
steven-omaha
a4c900c9a7
add error NoGroupFilesInArguments
2023-02-22 12:29:02 +01:00
steven-omaha
729312f8c2
add main error types
2023-02-18 15:35:54 +01:00
steven-omaha
ab87194850
clean up error contexts
2023-02-15 16:15:54 +01:00
steven-omaha
817c5af84e
rename get_pacdef_group_dir to get_group_dir
2023-02-15 11:54:02 +01:00
steven-omaha
4358323ad5
add lint semicolon if nothing returned
2023-02-15 11:53:41 +01:00
steven-omaha
53c61e67ad
rename pacdef_main to main
2023-02-14 17:49:06 +01:00
steven-omaha
e7cb7d9321
rename all crates
2023-02-14 13:12:08 +01:00
steven-omaha
fa49e1a187
pin more versions
2023-02-14 12:33:20 +01:00
steven-omaha
f1d1666863
cleaned up Cargo files
2023-02-13 19:49:23 +01:00
steven-omaha
d7ea6ce708
introduce workspace
2023-02-13 19:46:35 +01:00