Docs: 102: use new dagger.#Input in sample code
Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
parent
e8b8c47751
commit
656b01041d
@ -140,10 +140,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Source code of the sample application
|
// Source code of the sample application
|
||||||
src: dagger.#Artifact @dagger(input)
|
src: dagger.#Artifact & dagger.#Input
|
||||||
```
|
```
|
||||||
|
|
||||||
This defines a component at the key `src`, of type `dagger.#Artifact`, annotated as an user input.
|
This defines a component at the key `src`, and specifies that it is both an artifact and an input.
|
||||||
|
|
||||||
### Component 2: yarn package
|
### Component 2: yarn package
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user