File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
1
# yaml
2
- yaml is portable command line tool written in go
2
+ yaml is a lightweight and flexible command-line YAML processor
3
3
4
- Allows you to read and update yaml files from bash (or whatever). All in a lovely dependency free binary!
4
+ The aim of the project is to be the [ jq ] ( https://github.com/stedolan/jq ) or sed of yaml files.
5
5
6
- [ Download latest release] ( https://github.com/mikefarah/yaml/releases/latest )
6
+ ## Features
7
+ - Written in portable go, so you can download a lovely dependency free binary
8
+ - Deep read a yaml file with a given path
9
+ - Update a yaml file given a path
10
+ - Update a yaml file given a script file
11
+ - Convert from json to yaml
12
+ - Convert from yaml to json
7
13
8
- or alternatively install using go get :
14
+ [ Download latest binary ] ( https://github.com/mikefarah/yaml/releases/latest ) or alternatively :
9
15
```
10
16
go get github.com/mikefarah/yaml
11
17
```
160
166
- name : Howdy Partner
161
167
` ` `
162
168
163
- ## Convert to json
169
+ ## Converting to and from json
170
+
171
+ ### Yaml2json
164
172
To convert output to json, use the --tojson (or -j) flag. This can be used with any command.
165
173
174
+ ### json2yaml
175
+ To read in json, use the --fromjson (or -J) flag. This can be used with any command.
You can’t perform that action at this time.
0 commit comments