blob: ff50b4b5a4eb9bfe6009a62df28ec3ba50e5ef21 [file] [log] [blame]
cue import -o - -f -l '"\(strings.ToLower(kind))": "\(name)":' ./import
cmp stdout expect-stdout
cue import -o - -f -l 'strings.ToLower(kind)' -l name ./import
cmp stdout expect-stdout
-- expect-stdout --
service: booster: {
kind: "Service"
name: "booster"
}
deployment: booster: {
kind: "Deployment"
name: "booster"
replicas: 1
}
service: "supplement\nfoo": {
kind: "Service"
name: """
supplement
foo
"""
json: "[1, 2]"
}
-- import/services.jsonl --
{
"kind": "Service",
"name": "booster"
}
{
"kind": "Deployment",
"name": "booster",
"replicas": 1
}
{
"kind": "Service",
"name": "supplement\nfoo",
"json": "[1, 2]"
}
-- cue.mod --