mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-05 17:36:59 +08:00
Removed redundant code, updated doc w.r.t reading json files
This commit is contained in:
@@ -379,9 +379,10 @@
|
||||
|
||||
<h1>Read</h1>
|
||||
|
||||
<pre><code>yaml r <yaml file> <path>
|
||||
<pre><code>yaml r <yaml_file|json_file> <path>
|
||||
</code></pre>
|
||||
|
||||
<p>This command can take a json file as input too, and will output yaml unless specified to export as json (-j)</p>
|
||||
<h3 id="basic">Basic</h3>
|
||||
<p>Given a sample.yaml file of:</p>
|
||||
<pre><code class="yaml">b:
|
||||
|
||||
Reference in New Issue
Block a user