This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Solomon Hykes e7f1649fe6 A new CUE standard library for the Europa release
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-12-13 13:24:45 -08:00

57 lines
593 B
CUE

package engine
// A filesystem state
#FS: {
_fs: ID: string
}
// Produce an empty directory
// FIXME: replace with a null value for #FS?
#Scratch: {
_scratch: {}
output: #FS
}
#ReadFile: {
_readFile: {}
input: #FS
path: string
contents: string
output: #FS
}
#WriteFile: {
_writeFile: {}
input: #FS
path: string
contents: string
output: #FS
}
#Copy: {
_copy: {}
input: #FS
#CopyInfo
output: #FS
}
#CopyInfo: {
source: {
root: #FS
path: string | *"/"
}
dest: string
}
#Merge: {
_merge: {}
input: #FS
layers: [...#CopyInfo]
output: #FS
}