mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-02 07:04:48 +08:00
Generic ast (#1829)
Remove dependency on yaml.Node for internal AST representation. Yaml decoder is now just another decoder.
This commit is contained in:
@@ -60,7 +60,7 @@ var envOperatorScenarios = []expressionScenario{
|
||||
environmentVariables: map[string]string{"pathEnv": ".a.b[0].name", "valueEnv": "moo"},
|
||||
expression: `eval(strenv(pathEnv)) = strenv(valueEnv)`,
|
||||
expected: []string{
|
||||
"D0, P[], (doc)::{a: {b: [{name: moo}, {name: cat}]}}\n",
|
||||
"D0, P[], (!!map)::{a: {b: [{name: moo}, {name: cat}]}}\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -136,7 +136,7 @@ var envOperatorScenarios = []expressionScenario{
|
||||
document: "{v: \"${myenv}\"}",
|
||||
expression: `.v |= envsubst`,
|
||||
expected: []string{
|
||||
"D0, P[], (doc)::{v: \"cat meow\"}\n",
|
||||
"D0, P[], (!!map)::{v: \"cat meow\"}\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user