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.
Joel Longtine 3003b31be3 Make engine.#Scratch a specialization of #FS, rather than a task
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-07 15:43:58 -07:00

29 lines
404 B
CUE

package dagger
import (
"alpha.dagger.io/europa/dagger/engine"
)
// Select a subdirectory from a filesystem tree
#Subdir: {
// Input tree
input: #FS
// Path of the subdirectory
// Example: "/build"
path: string
// Subdirectory tree
output: #FS & copy.output
// Copy action
copy: engine.#Copy & {
"input": engine.#Scratch
source: {
root: input
"path": path
}
dest: "/"
}
}