Allows setting config via commandline
Changes the very first lines of Code, slightly changing how the config is loaded. Config Values can now be set in the following ways:
- The TOML-File pointed at by CONDUIT_CONFIG
- The Value of CONDUIT_* Environment Variables
- The TOML-File that is supplied via the command line
Where each value takes precedence over existing values. Since Clap is used for parsing the command line arguments, this also implements -V and --version to display the version of conduit as well as -h and --help to show a simple help message. Since it was never necessary to use CONDUIT_CONFIG (although practically enforced and heavily suggested) conduit no longer panics without the variable set and only complains about missing configuration keys like it did with the workaround.
-
I agree to release my code and all other changes of this MR under the Apache-2.0 license