scratch – Diff between revs 75 and 125

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 75 Rev 125
Line 127... Line 127...
127 ``` bash 127 ``` bash
128 # Convert YAML to JSON and output resulting JSON on the console 128 # Convert YAML to JSON and output resulting JSON on the console
129 yaml2json myfile.yml 129 yaml2json myfile.yml
Line 130... Line 130...
130   130  
131 # Store output inside a JSON file 131 # Store output inside a JSON file
Line 132... Line 132...
132 yaml2json myfile.yml > ouput.json 132 yaml2json myfile.yml > output.json
133   133  
Line 134... Line 134...
134 # Output "pretty" (indented) JSON 134 # Output "pretty" (indented) JSON
Line 139... Line 139...
139   139  
140 # Watch a full directory and convert any YAML file into its JSON equivalent 140 # Watch a full directory and convert any YAML file into its JSON equivalent
Line 141... Line 141...
141 yaml2json mydirectory --pretty --save --recursive 141 yaml2json mydirectory --pretty --save --recursive
142   142  
Line 143... Line 143...
143 # Convert JSON to YAML and store output inside a JSON file 143 # Convert JSON to YAML and store output inside a JSON file
144 json2yaml myfile.json > ouput.yml 144 json2yaml myfile.json > output.yml
Line 145... Line 145...
145   145