blob: 54f41310b05a44355eaf383dfd39c872e61052d5 [file] [log] [blame]
cue eval --with-context -l '"\(path.Ext(filename)):\(index+1)/\(recordCount)"' -l 'data["@name"]' -s services.jsonl
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"
}
-- services.jsonl --
{
"kind": "Service",
"@name": "elem1"
}
{
"kind": "Deployment",
"@name": "elem2"
}
{
"kind": "Service",
"@name": "elem3"
}
-- cue.mod --