yq/pkg/yqlib/operator_pipe.go

12 lines
319 B
Go
Raw Normal View History

package yqlib
import "container/list"
2021-01-12 23:18:53 +00:00
func pipeOperator(d *dataTreeNavigator, matchingNodes *list.List, expressionNode *ExpressionNode) (*list.List, error) {
lhs, err := d.GetMatchingNodes(matchingNodes, expressionNode.Lhs)
if err != nil {
return nil, err
}
2021-01-12 23:18:53 +00:00
return d.GetMatchingNodes(lhs, expressionNode.Rhs)
}