Files
mgmt/examples/lang/readfile1.mcl
James Shubin 5a531b7948 lang: funcs: Add a new readfile function
This adds a new function that reads files from the local host.
2019-02-01 05:20:22 -05:00

7 lines
143 B
Plaintext

import "os"
# this copies the contents from /tmp/foo and puts them in /tmp/output
file "/tmp/output" {
content => os.readfile("/tmp/foo"),
}