mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
it works! wip
This commit is contained in:
parent
74c7a4e027
commit
2d237e7e8e
@ -96,7 +96,7 @@ func TestReadCmd(t *testing.T) {
|
||||
|
||||
func TestReadWithAdvancedFilterCmd(t *testing.T) {
|
||||
cmd := getRootCommand()
|
||||
result := test.RunCmd(cmd, "read examples/sample.yaml b.e(name == sam).value")
|
||||
result := test.RunCmd(cmd, "read -v examples/sample.yaml b.e(name==sam).value")
|
||||
if result.Error != nil {
|
||||
t.Error(result.Error)
|
||||
}
|
||||
|
@ -1,4 +1,9 @@
|
||||
- name: fred
|
||||
value: 3
|
||||
- name: sam
|
||||
value: 4
|
||||
a: true
|
||||
b:
|
||||
c: 2
|
||||
d: [3, 4, 5]
|
||||
e:
|
||||
- name: fred
|
||||
value: 3
|
||||
- name: sam
|
||||
value: 4
|
Loading…
Reference in New Issue
Block a user