feat(defaultConfig): added default config generation script

While writing 4DSSE we want a way to keep track of what defaults have been set for config files, and validate that we are using the same config variables where we want to. This python script generates a "default" yaml file based on the default values given in .get<T>
This commit is contained in:
2025-02-23 11:29:16 -05:00
parent a20a150c85
commit 109326f339
4 changed files with 104 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# Default Configuration Generator
Small tool to quickly generate a YAML config file which encodes all the default options used in 4DSSE. All c, c++, h, and hpp in the src directory are scanned and the config variables and their default values pulled out.
## Usage
- You must have python installed
```bash
./generateDefaultConfig.sh
```
There should now be a file called defaults.yaml which stores all the default values.
## Notes
This file could be used as a config file; however, it is more realistically intended for debugging and for checking what the default values set for config options in the code are.