Commit graph

4 commits

Author SHA1 Message Date
finga 0434505b2d Use standard paths for a possible config location
Check several possible standard paths when there is no path to the
configuration file given as argument. To find the configuration file
following paths are used. The local directory `./config.toml`, the
user global configuration directory
`$XDG_CONFIG_HOME/whakarite/config.toml` and the system wide
configuration directory `/etc/whakarite/config.toml`. Note that in the
later two cases the directory which contains the `config.toml`
receives its name from the `$CARGO_BIN_NAME` environment variable at
compile time.
2023-01-25 22:11:32 +01:00
finga 21396daf83 Parse command-line-arguments
Use command-line-arguments to set the config file path and the log
level.
2023-01-24 01:20:42 +01:00
finga d37f31dd8a Add config file parsing
Use the `serde` and `toml` crates to handle config file parsing.
2023-01-24 01:19:20 +01:00
finga 665015c296 Basic minimal prototype
Use a postgres database as storage and start with sone basic
functionality.
2023-01-24 00:38:50 +01:00