Refine config mutability #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Clarify and enforce stricter boundaries around the mutability of the global
DocMachine::Configobject after initial parsing, to prevent unintended side effects.Expected outcome
Once argument parsing completes,
DocMachine::Configshould effectively be immutable for commandRunclasses; only the CLI parsing phase mutates it.Current state
The shared config object is mutable and passed by reference, allowing subcommands to change properties after initialization, which may leak state between commands.
Technical details
config.dupwhen handing off toRunclasses.Additional info
Local task id: aa30c75.
aa30c75 Refine config mutabilityto Refine config mutability