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