pub fn write_full_content(
file: ConfigFile,
content: &str,
dry_run: bool,
) -> Result<PatchOutcome, ConfigWriteError>Expand description
What: Atomically replace the entire content of a config file.
Inputs:
file: TargetConfigFile.content: Full new content.dry_run: Whentrue, do not modify disk.
Output:
PatchOutcomemirroringpatch_keysemantics.
ยงErrors
ConfigWriteError::Iowhen the atomic temp-file write or rename fails.
Details:
- Used by callers that have already produced a fully serialized buffer (e.g. theme pre-commit validation that writes to a temp path, validates, then commits).