We can't specify config file via environment variable.
Suppose we don't like default config.toml file and want to use
different config file. And writing --config my-lovely-config.toml
in each command looks very odd.
Solution
Supported specifying config file via COFFER_CONFIG environment variable.
--config has presedence over this variable.
Related issue(s)
Fixes #42.
Related changes (conditional)
Tests
[ ] If I added new functionality, I added tests covering it.
[x] If I fixed a bug, I added a regression test to prevent the bug from
silently reappearing again.
Documentation
[x] I checked whether I should update the docs and did so if necessary:
Description
Problem
We can't specify config file via environment variable. Suppose we don't like default
config.toml
file and want to use different config file. And writing--config my-lovely-config.toml
in each command looks very odd.Solution
Supported specifying config file via
COFFER_CONFIG
environment variable.--config
has presedence over this variable.Related issue(s)
Related changes (conditional)
Tests
Documentation
Public contracts
Stylistic guide (mandatory)