stdlib: dagger.#Input

Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
Solomon Hykes 2021-06-18 16:55:45 +00:00 committed by Solomon Hykes
parent 49277af680
commit 8383efdba6
2 changed files with 12 additions and 2 deletions

View File

@ -4,8 +4,12 @@ import (
"dagger.io/dagger"
)
name: string | *"world" @dagger(input)
name: dagger.#Input & {
string | *"world"
}
message: "Hello, \(name)!" @dagger(output)
dir: dagger.#Artifact @dagger(input)
dir: dagger.#Input & dagger.#Artifact
samedir: dir @dagger(output)

View File

@ -19,3 +19,9 @@ import (
id: string
}
#Input: {
@dagger(input)
_
...
}