serokell / coffer

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

Move config to a config file #15

Closed dcastro closed 2 years ago

dcastro commented 2 years ago

@MagicRB has written a Config module with the relevant data types & decoders.

In the diogo/cli branch, we are still hardcoding the configuration in Main.

We should refactor the CLI so that the config is read from a file rather than being hardcoded.

It should also be noted that the Config data types support multiple backends, but the CLI assumes there's only 1 backend. The CLI will have to be changed to support multiple backends, but this can be done in a separate issue (#16). For now, let's just assume the user intends to use the first backend from the config file.