core/write-text
Create a text file from a parameter.
Create a text file from a parameter.
Inputs
No artifact inputs.
Parameters
-
content -
Required
Exact UTF-8 file contents.
Outputs
-
file -
Kind: file
Text file containing content verbatim.
Execution
-
Environment
-
Rugix Bakery
-
Source epoch
-
Consumed
-
Output cache
-
Allowed
Behavior
Write the content parameter to a file without adding a newline. Compositions
can use its file output to turn configurable text into a file input for
another rule.
Example
For example, define a configuration file:
uses = "core/write-text"
parameters.content = """
[all]
enable_uart=1
"""
Save the invocation as build-rule.toml and run
./run-bakery bake rule build-rule.toml build/result. The exported file is
build/result/file.