moved to spec because engine.#Copy is currently unimplemented

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones
2021-12-16 12:54:07 -07:00
parent 3224a0aeab
commit ba91f15cc7

View File

@@ -0,0 +1,26 @@
package dagger
import (
"alpha.dagger.io/europa/dagger/engine/spec/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: engine.#Copy & {
"input": engine.#Scratch.output
source: {
root: input
"path": path
}
}
}