mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-06 18:24:57 +08:00
Add filter operation (#1588)
* add filter operation * add tests * add tests * revert debug * simplify filter * fix tests * remove logs
This commit is contained in:
@@ -37,6 +37,7 @@ var participleYqRules = []*participleYqRule{
|
||||
|
||||
{"MapValues", `map_?values`, opToken(mapValuesOpType), 0},
|
||||
simpleOp("map", mapOpType),
|
||||
simpleOp("filter", filterOpType),
|
||||
simpleOp("pick", pickOpType),
|
||||
|
||||
{"FlattenWithDepth", `flatten\([0-9]+\)`, flattenWithDepth(), 0},
|
||||
|
||||
Reference in New Issue
Block a user