engine.#Copy matches docker.#Copy

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones
2022-01-27 20:09:12 -07:00
parent 39e206e7d2
commit 7eb10f96fb
6 changed files with 29 additions and 30 deletions

View File

@@ -69,9 +69,15 @@ package engine
// Copy files from one FS tree to another
#Copy: {
$dagger: task: _name: "Copy"
// Input of the operation
input: #FS
#CopyInfo
// Contents to copy
contents: #FS
// Source path (optional)
source: string | *"/"
// Destination path (optional)
dest: string | *"/"
// Output of the operation
output: #FS
}

View File

@@ -25,12 +25,10 @@ import (
// Copy action
_copy: engine.#Copy & {
"input": engine.#Scratch
source: {
root: input
"path": path
}
dest: "/"
"input": engine.#Scratch
contents: input
source: path
dest: "/"
}
// Subdirectory tree