blob: fee1d0032c377dbf372365d6c7238727a8f05dbc [file] [log] [blame]
cue cmd dump
cmp stdout expect-stdout
-- f1.cue --
package kube
test: {
a: 1
}
// A kind at the top-level should not be allowed.
kind: "foo"
$id: "bar"
-- dump_tool.cue --
package kube
import (
"tool/cli"
"encoding/yaml"
)
command: dump: {
task: print: cli.Print & { text: yaml.Marshal(test) }
}
-- expect-stdout --
a: 1