exec cue import -o - -f -l "\(strings.ToLower(kind))" --list ./import1
cmp stdout expect-stdout1

# Issue #368
exec cue import -o - -f --list ./import2
cmp stdout expect-stdout2

# Issue #369
exec cue import --with-context -l '"\(path.Ext(filename))": data' ./import3/data.json
cmpenv import3/data.cue expect3

# Issue #2721
exec cue import -f --list issue2721/empty.yaml
cmp issue2721/empty.cue issue2721/empty.cue.golden
-- expect-stdout1 --
service: [{
	kind: "Service"
	name: "booster"
}, {
	kind: "Service"
	name: """
		supplement
		foo
		"""
	json: "[1, 2]"
}]
deployment: [{
	kind:     "Deployment"
	name:     "booster"
	replicas: 1
}]
-- expect-stdout2 --
[[{a: 1}], [{b: 2}]]
-- expect3 --
".json": [1]
-- import1/services.jsonl --
{
    "kind": "Service",
    "name": "booster"
}
{
    "kind": "Deployment",
    "name": "booster",
    "replicas": 1
}
{
    "kind": "Service",
    "name": "supplement\nfoo",
    "json": "[1, 2]"
}
-- import2/data.jsonl --
[{"a": 1}]
[{"b": 2}]
-- import3/data.json --
[1]
-- cue.mod/module.cue --
module: "test.example"
language: version: "v0.9.0"
-- issue2721/empty.yaml --
-- issue2721/empty.cue.golden --
[*null | _]
