xx
.md

io_append_text

io_append_text asynchronously appends text to a project-relative file and returns a dependency. Missing parent directories and files are created. Existing content is preserved.

Append operations run asynchronously. Operations targeting the same file must be chained with deps.

Arguments

ArgumentRequiredDescription
pathYesProject-relative file path to append to.
textYesText appended to the file.
depsNoDependencies to complete before appending.

Example

load("@io@1", "io_append_text")

log = io_append_text(
    "generated/build.log",
    "build completed\n",
    deps=[build],
)