stdlib: dagger.#Output
Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
parent
8383efdba6
commit
53f4ef049a
4
.dagger/env/test-core/plan/test-core.cue
vendored
4
.dagger/env/test-core/plan/test-core.cue
vendored
@ -8,8 +8,8 @@ name: dagger.#Input & {
|
||||
string | *"world"
|
||||
}
|
||||
|
||||
message: "Hello, \(name)!" @dagger(output)
|
||||
message: dagger.#Output & "Hello, \(name)!"
|
||||
|
||||
dir: dagger.#Input & dagger.#Artifact
|
||||
|
||||
samedir: dir @dagger(output)
|
||||
samedir: dagger.#Output & dir
|
||||
|
@ -25,3 +25,9 @@ import (
|
||||
_
|
||||
...
|
||||
}
|
||||
|
||||
#Output: {
|
||||
@dagger(output)
|
||||
_
|
||||
...
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ setup() {
|
||||
unset DAGGER_WORKSPACE
|
||||
}
|
||||
|
||||
@test "core: inputs" {
|
||||
@test "core: inputs & outputs" {
|
||||
# List available inputs
|
||||
run dagger -e test-core input list
|
||||
assert_success
|
||||
@ -22,9 +22,14 @@ setup() {
|
||||
assert_success
|
||||
assert_output --partial 'Hello, Bob!'
|
||||
|
||||
run dagger -e test-core output list
|
||||
assert_success
|
||||
assert_output --partial 'message "Hello, Bob!"'
|
||||
|
||||
# Unset text input
|
||||
dagger -e test-core input unset name
|
||||
run dagger -e test-core up
|
||||
assert_success
|
||||
assert_output --partial 'Hello, world!'
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user