1
0
mirror of https://github.com/taigrr/yq synced 2025-01-18 04:53:17 -08:00

Updated docs to explicity put array paths in quotes

This commit is contained in:
Mike Farah
2018-02-28 08:07:34 +11:00
parent 92ce195424
commit 8f15dba812
8 changed files with 42 additions and 29 deletions

View File

@@ -414,13 +414,14 @@ b.e[0].name: Howdy Partner
foo.bar: 7
</code></pre>
<pre><code class="bash">yaml r sample.yaml b[foo.bar]
<pre><code class="bash">yaml r sample.yaml 'b[foo.bar]'
</code></pre>
<pre><code class="bash">yaml w sample.yaml b[foo.bar] 9
<pre><code class="bash">yaml w sample.yaml 'b[foo.bar]' 9
</code></pre>
<p>Any valid yaml key can be specified as part of a key lookup.</p>
<p>Note that the path is in quotes to avoid the square brackets being interpreted by your shell.</p>