blob: 34860cadcc0b4a9f5caba08fdf70f839b4e7484f [file] [log] [blame]
cue import -o - -f --with-context -l '"\(path.Ext(filename)):\(index+1)/\(recordCount)"' -l 'data["@name"]' ./import
cmp stdout expect-stdout
-- expect-stdout --
".jsonl:1/3": elem1: {
kind: "Service"
"@name": "elem1"
}
".jsonl:2/3": elem2: {
kind: "Deployment"
"@name": "elem2"
}
".jsonl:3/3": elem3: {
kind: "Service"
"@name": "elem3"
}
-- import/services.jsonl --
{
"kind": "Service",
"@name": "elem1"
}
{
"kind": "Deployment",
"@name": "elem2"
}
{
"kind": "Service",
"@name": "elem3"
}
-- cue.mod --