| cue export -l "\(strings.ToLower(kind))" --list import/services.jsonl |
| cmp stdout expect-stdout |
| -- expect-stdout -- |
| { |
| "service": [ |
| { |
| "kind": "Service", |
| "name": "booster" |
| }, |
| { |
| "kind": "Service", |
| "name": "supplement\nfoo", |
| "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 -- |