mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-04 00:14:55 +08:00
Adding splat[] short hand to explode,collect,flatten,groupby,path,pivot,select and more
This commit is contained in:
@@ -139,6 +139,15 @@ var pathOperatorScenarios = []expressionScenario{
|
||||
"D0, P[], (!!map)::a: [frog]\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
description: "Delete splat",
|
||||
skipDoc: true,
|
||||
document: `a: [cat, frog]`,
|
||||
expression: `delpaths([["a", 0]])[]`,
|
||||
expected: []string{
|
||||
"D0, P[a], (!!seq)::[frog]\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
description: "Delete - wrong parameter",
|
||||
subdescription: "delpaths does not work with a single path array",
|
||||
|
||||
Reference in New Issue
Block a user