MattSurabian / pact

An experimental cryptographic application for encrypting and decrypting data which implements the experimental cryptographic library MSG.
MIT License
3 stars 1 forks source link

Support Multiple Configuration Files #11

Open MattSurabian opened 9 years ago

MattSurabian commented 9 years ago

By default configuration is stored at ~/.config/pact/pact.json. Ideally if the current directory contains a pact.json that file should be loaded with precedence.

MattSurabian commented 9 years ago

To avoid getting tangled in path resolution and normalization efforts the idea is to always write full absolute paths to the configuration file and always expand based on the current working directory.

MattSurabian commented 9 years ago

This can happen even without cascading support for sparse configs being in viper. Though when that is supported Pact should leverage it.