it works! wip

This commit is contained in:
Mike Farah 2020-01-11 19:13:52 +11:00
parent 74c7a4e027
commit 2d237e7e8e
2 changed files with 10 additions and 5 deletions

View File

@ -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)
}

View File

@ -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