diff --git a/.dagger/env/test-core/plan/test-core.cue b/.dagger/env/test-core/plan/test-core.cue index 60122bbb..a3495b94 100644 --- a/.dagger/env/test-core/plan/test-core.cue +++ b/.dagger/env/test-core/plan/test-core.cue @@ -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) diff --git a/stdlib/dagger/dagger.cue b/stdlib/dagger/dagger.cue index 8dc76711..094159b3 100644 --- a/stdlib/dagger/dagger.cue +++ b/stdlib/dagger/dagger.cue @@ -19,3 +19,9 @@ import ( id: string } + +#Input: { + @dagger(input) + _ + ... +}