cuelang.org/go@v0.10.1/tools/trim/testdata/list_removal_2.txtar (about) 1 -- in.cue -- 2 service: [string]: { 3 ports: [{a: 1}, {a: 1}, ...{ extra: 3 }] 4 } 5 service: a: { 6 ports: [{a: 1}, {a: 1,}] 7 } 8 -- out/trim -- 9 == in.cue 10 service: [string]: { 11 ports: [{a: 1}, {a: 1}, ...{extra: 3}] 12 } 13 service: a: {}