mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-10 20:13:24 -08:00
Add --set key=value to override a section-qualified scalar configuration key for a single run and --print-config to print the effective configuration, with secrets redacted. SettingsCache owns the override map, so reads see the override without rewriting the ini file, and rebuilds the disallowed-name regexps when users/disallowedregexp is overridden. Bare keys and array-scoped keys are rejected because array loops read them relative to the active group, where a full-key override would either be ignored or rewrite every entry. Cover the ini, default, override, override-only-key, regexp-rebuild, secret-redaction, and parse paths with a server-labelled gtest. |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| servatrice_settings_test.cpp | ||
| servers_settings_test.cpp | ||
| settings_defaults_test.cpp | ||
| settings_manager_test.cpp | ||
| settings_migration_test.cpp | ||