Load and write config from/to standard paths, changing Beehive's default behaviour.
This is a breaking change: when writing the config file for the first time (i.e. if beehive was run without a config), the file will be written to ~/.config/beehive/beehive.conf (OS dependant) instead of the current directory.
Loading the config from the current directory, if available, is still preferred, so that doesn't change.
Fixes #283
New config backend abstraction
This PR also adds support for multiple config file backends to make it easier to implement other backends (encrypted, networked, etc).
Implements a filesystem and a memory backend to start with.
New config path defaults
Builds on top and supersedes https://github.com/muesli/beehive/pull/286
Load and write config from/to standard paths, changing Beehive's default behaviour.
This is a breaking change: when writing the config file for the first time (i.e. if beehive was run without a config), the file will be written to
~/.config/beehive/beehive.conf
(OS dependant) instead of the current directory.Loading the config from the current directory, if available, is still preferred, so that doesn't change.
Fixes #283
New config backend abstraction
This PR also adds support for multiple config file backends to make it easier to implement other backends (encrypted, networked, etc).
Implements a filesystem and a memory backend to start with.
Fixes #291