We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2780903 commit 1605938Copy full SHA for 1605938
README.md
@@ -83,7 +83,7 @@ yaml sample.yaml b.e[1].name
83
```
84
will output 'sam'
85
86
-#### Array Splat
+### Array Splat
87
e.g.: given a sample file of
88
```yaml
89
b:
@@ -103,9 +103,9 @@ will output:
103
- sam
104
105
106
+## Update examples
107
-
108
-### Updating yaml
+### Update to stdout
109
Given a sample.yaml file of:
110
111
@@ -120,3 +120,16 @@ will output:
120
121
c: cat
122
123
+
124
125
+### Updating yaml in-place
126
+Given a sample.yaml file of:
127
+```yaml
128
+b:
129
+ c: 2
130
+```
131
+then
132
+```bash
133
+yaml wi sample.yaml b.c cat
134
135
+will update the sample.yaml file so that the value of 'c' is cat.
0 commit comments