Populate structs from cli args and/or .env file
Intended to be used like this:
use FromEnv;
use lazy_static;
use Deserialize;
lazy_static!
Now you can either provide values for cred_file and server_url via CLI or .env file, or a mix of both. Any value can be left out.
CLI values override .env files, which in turn override defaults.
with a .env file:
cred_file = credentials.json
or directly in the CLI:
cargo run -- --server_url localhost://8080
It uses serde_json under the hood.