Commit graph

9 commits

Author SHA1 Message Date
Andrew
e35bedab48
🔨 Importable configuration.py for mc-apply.py (#28182)
Some checks are pending
CI - Build Tests / Build Test (push) Waiting to run
CI - Unit Tests / Unit Test (push) Waiting to run
CI - Validate Source Files / Validate Source Files (push) Waiting to run
2025-11-24 19:57:47 -06:00
Steven Haigh
a1a9904d32
🔨 Enhance mc-apply.py (#28157)
Enhance `mc-apply.py` with `configuration.py` features and value normalization:
- Verbose logging system with `--verbose` flag (0-2 levels)
- `fetch_example()` to download configs from GitHub (`examples/path` or URLs)
- `disable_all_options()` to comment out all `#define` statements
- Special directives support via directives JSON key
- Support for `[disable]`, `examples/path`, and direct URL directives

Implement value normalization for consistent behavior:
- "on", "true", true, "" => enable (uncomment `#define`)
- "off", "false", false => disable (comment out `#define`)
- All other values => set value (`#define OPTION value`)

Update example marlin_config.json to demonstrate different value formats and directive usage. Changes are fully backward compatible with existing JSON configuration files.
2025-11-15 15:44:16 -06:00
Scott Lahteine
35da223f0a 🧑‍💻 Py scripts refinements 2025-10-07 02:26:49 -05:00
Andrew
2f4f2bce15
🔨 PowerShell compatibility (#27720) 2025-03-17 18:04:59 -05:00
ellensp
36623a2382
🐛 Fix config embed and restore (#27628)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2025-01-08 16:44:31 -06:00
Andrew
959be66cc2
🔨 Build scripts cleanup (#27157)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
2024-06-14 16:01:34 -05:00
dmitrygribenchuk
83aac65664
🔨 Clean up Python imports (#24736) 2022-09-05 13:19:19 -05:00
Scott Lahteine
306e03b03b 🧑‍💻 Use spaces indent for Python 2022-08-19 11:10:42 -05:00
X-Ryl669
b464a4b1a4
Configurations embed and retrieve (#21321) 2021-12-14 00:22:06 -06:00