| cue import -o - -f --with-context -l '"\(path.Ext(filename)):\(index+1)/\(recordCount)": "\(data["@name"])":' ./import |
| cmp stdout expect-stdout |
| 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 -- |