add ENV variable to disable config generation and parsing

This commit is contained in:
Lion Kortlepel
2023-12-29 01:53:05 +01:00
parent c3b4528c89
commit 234bdf5877
4 changed files with 36 additions and 5 deletions

View File

@@ -25,6 +25,7 @@ namespace Env {
enum class Key {
// provider settings
PROVIDER_UPDATE_MESSAGE,
PROVIDER_DISABLE_CONFIG,
};
std::optional<std::string> Get(Key key);

View File

@@ -48,5 +48,6 @@ private:
std::string TagsAsPrettyArray() const;
bool IsDefault();
bool mFailed { false };
bool mDisableConfig { false };
std::string mConfigFileName;
};