mirror of
https://github.com/mikefarah/yq.git
synced 2025-01-13 20:15:57 +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) {
|
func TestReadWithAdvancedFilterCmd(t *testing.T) {
|
||||||
cmd := getRootCommand()
|
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 {
|
if result.Error != nil {
|
||||||
t.Error(result.Error)
|
t.Error(result.Error)
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
- name: fred
|
a: true
|
||||||
value: 3
|
b:
|
||||||
- name: sam
|
c: 2
|
||||||
value: 4
|
d: [3, 4, 5]
|
||||||
|
e:
|
||||||
|
- name: fred
|
||||||
|
value: 3
|
||||||
|
- name: sam
|
||||||
|
value: 4
|
Loading…
Reference in New Issue
Block a user