FogOfWar.Wrapper.Output (Fog of War v0.1.0)

Copy Markdown View Source

Stages generated files before replacing a project or installed app. Destination checks protect the source tree and other inputs from replacement.

How it fits

Used by Generator and Workflow to stage replacements safely. It is an implementation detail of generation and installation.

Summary

Functions

Build in a temporary sibling directory and replace the destination after success.

Check a destination against protected paths before writing or replacing it.

Write a relative file under a staging directory controlled by the wrapper.

Functions

replace!(output, opts, build)

Build in a temporary sibling directory and replace the destination after success.

validate!(output, protected)

Check a destination against protected paths before writing or replacing it.

write_staged!(stage, relative, content)

Write a relative file under a staging directory controlled by the wrapper.