Use configuration file

This commit is contained in:
2022-02-19 20:37:30 +01:00
parent 3e27c21565
commit f090741944
11 changed files with 356 additions and 39 deletions

7
config/default.toml Normal file
View File

@@ -0,0 +1,7 @@
[application]
port = 8000
# See https://docs.rs/tracing-subscriber/latest/tracing_subscriber/struct.EnvFilter.html
log_directive = "info"
[taskwarrior]
data_location = "/tmp"

2
config/test.toml Normal file
View File

@@ -0,0 +1,2 @@
[application]
log_directive = "debug"