module

Fluxion::CLI::OutputFile

Writes a file the user asked for, refusing to clobber silently.

Class methods

write(path : String, content : String, force : Bool) : String

Writes atomically, and refuses an existing path without --force.

The symlink check matters: without it, a pre-positioned link would let this write through to somewhere the user never named.

Source