blob: 3a9cbb1e63e9f207980d6979e71293af4d337853 [file] [log] [blame]
cue import -o - -f -l "\(strings.ToLower(kind))" --list ./import
cmp stdout expect-stdout
-- expect-stdout --
service: [{
kind: "Service"
name: "booster"
}, {
kind: "Service"
name: """
supplement
foo
"""
json: "[1, 2]"
}]
deployment: [{
kind: "Deployment"
name: "booster"
replicas: 1
}]
-- import/services.jsonl --
{
"kind": "Service",
"name": "booster"
}
{
"kind": "Deployment",
"name": "booster",
"replicas": 1
}
{
"kind": "Service",
"name": "supplement\nfoo",
"json": "[1, 2]"
}
-- cue.mod --