Docs: 102: use new dagger.#Input in sample code

Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
Solomon Hykes 2021-06-21 13:13:18 +00:00 committed by Solomon Hykes
parent e8b8c47751
commit 656b01041d

View File

@ -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