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.
dagger/stdlib/.dagger/env/os/plan/main.cue
Solomon Hykes d7a805f42b stdlib: move all imports to alpha.dagger.io
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-25 10:31:22 +00:00

27 lines
388 B
CUE

package main
import (
"alpha.dagger.io/os"
"alpha.dagger.io/alpine"
)
// Write a file to an empty dir
EmptyDir: {
f: os.#File & {
path: "/foo.txt"
write: data: "hello world!"
}
f: contents: "hello world!"
}
// Read from a pre-existing file
Read: {
f: os.#File & {
from: alpine.#Image & {
version: "3.13.4"
}
path: "/etc/alpine-release"
}
f: contents: "3.13.4\n"
}