serokell / coffer

Multi-backend password store with multiple frontends
4 stars 2 forks source link

[#42] Specifying config via environment variable #53

Closed DK318 closed 2 years ago

DK318 commented 2 years ago

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)

MagicRB commented 2 years ago

LGTM

dcastro commented 2 years ago

@MagicRB for future reference, please go through "Files changed > review changes > Approve" to approve a PR