mirror of
https://github.com/mikefarah/yq.git
synced 2026-08-24 08:22:13 +08:00
Adding splat[] short hand to explode,collect,flatten,groupby,path,pivot,select and more
This commit is contained in:
@@ -320,6 +320,16 @@ var stringsOperatorScenarios = []expressionScenario{
|
||||
"D0, P[], (!!seq)::- word\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
description: "Split splat",
|
||||
skipDoc: true,
|
||||
document: `"word; cat"`,
|
||||
expression: `split("; ")[]`,
|
||||
expected: []string{
|
||||
"D0, P[0], (!!str)::word\n",
|
||||
"D0, P[1], (!!str)::cat\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
skipDoc: true,
|
||||
document: `!horse "word"`,
|
||||
|
||||
Reference in New Issue
Block a user