yaml_command 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.index +58 -0
- data/HISTORY.md +23 -0
- data/LICENSE.txt +27 -0
- data/README.md +94 -0
- data/bin/yaml +9 -0
- data/lib/yaml_command.rb +49 -0
- data/lib/yaml_command.yml +58 -0
- data/lib/yaml_command/base.rb +139 -0
- data/lib/yaml_command/edit.rb +42 -0
- data/lib/yaml_command/get.rb +30 -0
- data/lib/yaml_command/set.rb +36 -0
- data/lib/yaml_command/slurp.rb +52 -0
- data/lib/yaml_command/sort.rb +52 -0
- data/lib/yaml_command/splat.rb +130 -0
- data/lib/yaml_command/view.rb +49 -0
- data/man/yaml-edit.1 +24 -0
- data/man/yaml-edit.1.html +107 -0
- data/man/yaml-edit.1.ronn +26 -0
- data/man/yaml-get.1 +30 -0
- data/man/yaml-get.1.html +109 -0
- data/man/yaml-get.1.ronn +30 -0
- data/man/yaml-set.1 +30 -0
- data/man/yaml-set.1.html +109 -0
- data/man/yaml-set.1.ronn +30 -0
- data/man/yaml-slurp.1 +30 -0
- data/man/yaml-slurp.1.html +109 -0
- data/man/yaml-slurp.1.ronn +30 -0
- data/man/yaml-splat.1 +30 -0
- data/man/yaml-splat.1.html +110 -0
- data/man/yaml-splat.1.ronn +31 -0
- data/man/yaml-view.1 +24 -0
- data/man/yaml-view.1.html +105 -0
- data/man/yaml-view.1.ronn +24 -0
- data/man/yaml.1 +45 -0
- data/man/yaml.1.html +126 -0
- data/man/yaml.1.ronn +51 -0
- metadata +151 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
yaml-slurp(1) - yaml slurp command
|
2
|
+
==================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`yaml slurp [options] [dir]`
|
7
|
+
|
8
|
+
|
9
|
+
## DESCRIPTION
|
10
|
+
|
11
|
+
Takes a directory and converts its contents into a single YAML document.
|
12
|
+
|
13
|
+
|
14
|
+
## OPTIONS
|
15
|
+
|
16
|
+
The following options are available to the slurp command.
|
17
|
+
|
18
|
+
* `-r`/`--recurse`
|
19
|
+
Recurisively include all subdirectories.
|
20
|
+
|
21
|
+
* `-y`/`--yaml`
|
22
|
+
Produce output in YAML format.
|
23
|
+
|
24
|
+
* `-j`/`--json`
|
25
|
+
Produce output in JSON format.
|
26
|
+
|
27
|
+
|
28
|
+
## SEE ALSO
|
29
|
+
|
30
|
+
yaml(1), yaml-get(1), yaml-set(1), yaml-sort(1), yaml-splat(1), yaml-edit(1), yaml-view(1)
|
data/man/yaml-splat.1
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "YAML\-SPLAT" "1" "December 2012" "YAML.ORG" "YAML COMMAND"
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fByaml\-splat\fR \- yaml splat command
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
\fByaml splat [options] [dir]\fR
|
11
|
+
.
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
Takes a YAML document and converts its contents into a set of files, one for each field\.
|
14
|
+
.
|
15
|
+
.SH "OPTIONS"
|
16
|
+
The following options are available to the slurp command\.
|
17
|
+
.
|
18
|
+
.IP "\(bu" 4
|
19
|
+
\fB\-r\fR/\fB\-\-recurse\fR Recurisively covnert all mappings into subdirectories\.
|
20
|
+
.
|
21
|
+
.IP "\(bu" 4
|
22
|
+
\fB\-y\fR/\fB\-\-yaml\fR Produce output in YAML format\.
|
23
|
+
.
|
24
|
+
.IP "\(bu" 4
|
25
|
+
\fB\-j\fR/\fB\-\-json\fR Produce output in JSON format\.
|
26
|
+
.
|
27
|
+
.IP "" 0
|
28
|
+
.
|
29
|
+
.SH "SEE ALSO"
|
30
|
+
yaml(1), yaml\-get(1), yaml\-set(1), yaml\-sort(1), yaml\-slurp(1), yaml\-edit(1), yaml\-view(1)
|
@@ -0,0 +1,110 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
5
|
+
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
6
|
+
<title>yaml-splat(1) - yaml splat command</title>
|
7
|
+
<style type='text/css' media='all'>
|
8
|
+
/* style: man */
|
9
|
+
body#manpage {margin:0}
|
10
|
+
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
11
|
+
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
12
|
+
.mp h2 {margin:10px 0 0 0}
|
13
|
+
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
14
|
+
.mp h3 {margin:0 0 0 4ex}
|
15
|
+
.mp dt {margin:0;clear:left}
|
16
|
+
.mp dt.flush {float:left;width:8ex}
|
17
|
+
.mp dd {margin:0 0 0 9ex}
|
18
|
+
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
19
|
+
.mp pre {margin-bottom:20px}
|
20
|
+
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
21
|
+
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
22
|
+
.mp img {display:block;margin:auto}
|
23
|
+
.mp h1.man-title {display:none}
|
24
|
+
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
25
|
+
.mp h2 {font-size:16px;line-height:1.25}
|
26
|
+
.mp h1 {font-size:20px;line-height:2}
|
27
|
+
.mp {text-align:justify;background:#fff}
|
28
|
+
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
29
|
+
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
30
|
+
.mp u {text-decoration:underline}
|
31
|
+
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
32
|
+
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
33
|
+
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
34
|
+
.mp b.man-ref {font-weight:normal;color:#434241}
|
35
|
+
.mp pre {padding:0 4ex}
|
36
|
+
.mp pre code {font-weight:normal;color:#434241}
|
37
|
+
.mp h2+pre,h3+pre {padding-left:0}
|
38
|
+
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
39
|
+
ol.man-decor {width:100%}
|
40
|
+
ol.man-decor li.tl {text-align:left}
|
41
|
+
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
42
|
+
ol.man-decor li.tr {text-align:right;float:right}
|
43
|
+
</style>
|
44
|
+
</head>
|
45
|
+
<!--
|
46
|
+
The following styles are deprecated and will be removed at some point:
|
47
|
+
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
48
|
+
|
49
|
+
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
50
|
+
.man-navigation should be used instead.
|
51
|
+
-->
|
52
|
+
<body id='manpage'>
|
53
|
+
<div class='mp' id='man'>
|
54
|
+
|
55
|
+
<div class='man-navigation' style='display:none'>
|
56
|
+
<a href="#NAME">NAME</a>
|
57
|
+
<a href="#SYNOPSIS">SYNOPSIS</a>
|
58
|
+
<a href="#DESCRIPTION">DESCRIPTION</a>
|
59
|
+
<a href="#OPTIONS">OPTIONS</a>
|
60
|
+
<a href="#SEE-ALSO">SEE ALSO</a>
|
61
|
+
</div>
|
62
|
+
|
63
|
+
<ol class='man-decor man-head man head'>
|
64
|
+
<li class='tl'>yaml-splat(1)</li>
|
65
|
+
<li class='tc'>YAML COMMAND</li>
|
66
|
+
<li class='tr'>yaml-splat(1)</li>
|
67
|
+
</ol>
|
68
|
+
|
69
|
+
<h2 id="NAME">NAME</h2>
|
70
|
+
<p class="man-name">
|
71
|
+
<code>yaml-splat</code> - <span class="man-whatis">yaml splat command</span>
|
72
|
+
</p>
|
73
|
+
|
74
|
+
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
75
|
+
|
76
|
+
<p><code>yaml splat [options] [dir]</code></p>
|
77
|
+
|
78
|
+
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
79
|
+
|
80
|
+
<p>Takes a YAML document and converts its contents into a set of files, one for
|
81
|
+
each field.</p>
|
82
|
+
|
83
|
+
<h2 id="OPTIONS">OPTIONS</h2>
|
84
|
+
|
85
|
+
<p>The following options are available to the slurp command.</p>
|
86
|
+
|
87
|
+
<ul>
|
88
|
+
<li><p><code>-r</code>/<code>--recurse</code>
|
89
|
+
Recurisively covnert all mappings into subdirectories.</p></li>
|
90
|
+
<li><p><code>-y</code>/<code>--yaml</code>
|
91
|
+
Produce output in YAML format.</p></li>
|
92
|
+
<li><p><code>-j</code>/<code>--json</code>
|
93
|
+
Produce output in JSON format.</p></li>
|
94
|
+
</ul>
|
95
|
+
|
96
|
+
|
97
|
+
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
98
|
+
|
99
|
+
<p><a class="man-ref" href="yaml.1.html">yaml<span class="s">(1)</span></a>, <a class="man-ref" href="yaml-get.1.html">yaml-get<span class="s">(1)</span></a>, <a class="man-ref" href="yaml-set.1.html">yaml-set<span class="s">(1)</span></a>, <span class="man-ref">yaml-sort<span class="s">(1)</span></span>, <a class="man-ref" href="yaml-slurp.1.html">yaml-slurp<span class="s">(1)</span></a>, <a class="man-ref" href="yaml-edit.1.html">yaml-edit<span class="s">(1)</span></a>, <a class="man-ref" href="yaml-view.1.html">yaml-view<span class="s">(1)</span></a></p>
|
100
|
+
|
101
|
+
|
102
|
+
<ol class='man-decor man-foot man foot'>
|
103
|
+
<li class='tl'>YAML.ORG</li>
|
104
|
+
<li class='tc'>December 2012</li>
|
105
|
+
<li class='tr'>yaml-splat(1)</li>
|
106
|
+
</ol>
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</body>
|
110
|
+
</html>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
yaml-splat(1) - yaml splat command
|
2
|
+
==================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`yaml splat [options] [dir]`
|
7
|
+
|
8
|
+
|
9
|
+
## DESCRIPTION
|
10
|
+
|
11
|
+
Takes a YAML document and converts its contents into a set of files, one for
|
12
|
+
each field.
|
13
|
+
|
14
|
+
|
15
|
+
## OPTIONS
|
16
|
+
|
17
|
+
The following options are available to the slurp command.
|
18
|
+
|
19
|
+
* `-r`/`--recurse`
|
20
|
+
Recurisively covnert all mappings into subdirectories.
|
21
|
+
|
22
|
+
* `-y`/`--yaml`
|
23
|
+
Produce output in YAML format.
|
24
|
+
|
25
|
+
* `-j`/`--json`
|
26
|
+
Produce output in JSON format.
|
27
|
+
|
28
|
+
|
29
|
+
## SEE ALSO
|
30
|
+
|
31
|
+
yaml(1), yaml-get(1), yaml-set(1), yaml-sort(1), yaml-slurp(1), yaml-edit(1), yaml-view(1)
|
data/man/yaml-view.1
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "YAML\-VIEW" "1" "December 2012" "YAML.ORG" "YAML COMMAND"
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fByaml\-view\fR \- yaml view command
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
\fByaml view [options] [path]\fR
|
11
|
+
.
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
View a YAML file in glorious color!
|
14
|
+
.
|
15
|
+
.SH "OPTIONS"
|
16
|
+
The following options are available to the view command\.
|
17
|
+
.
|
18
|
+
.IP "\(bu" 4
|
19
|
+
\fB\-F\fR/\fB\-\-file\fR \fIPATH\fR The YAML file to query, if not by stdin\.
|
20
|
+
.
|
21
|
+
.IP "" 0
|
22
|
+
.
|
23
|
+
.SH "SEE ALSO"
|
24
|
+
yaml(1), yaml\-set(1), yaml\-sort(1), yaml\-slurp(1), yaml\-splurp(1), yaml\-splat(1), yaml\-view(1)
|
@@ -0,0 +1,105 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
5
|
+
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
6
|
+
<title>yaml-view(1) - yaml view command</title>
|
7
|
+
<style type='text/css' media='all'>
|
8
|
+
/* style: man */
|
9
|
+
body#manpage {margin:0}
|
10
|
+
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
11
|
+
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
12
|
+
.mp h2 {margin:10px 0 0 0}
|
13
|
+
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
14
|
+
.mp h3 {margin:0 0 0 4ex}
|
15
|
+
.mp dt {margin:0;clear:left}
|
16
|
+
.mp dt.flush {float:left;width:8ex}
|
17
|
+
.mp dd {margin:0 0 0 9ex}
|
18
|
+
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
19
|
+
.mp pre {margin-bottom:20px}
|
20
|
+
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
21
|
+
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
22
|
+
.mp img {display:block;margin:auto}
|
23
|
+
.mp h1.man-title {display:none}
|
24
|
+
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
25
|
+
.mp h2 {font-size:16px;line-height:1.25}
|
26
|
+
.mp h1 {font-size:20px;line-height:2}
|
27
|
+
.mp {text-align:justify;background:#fff}
|
28
|
+
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
29
|
+
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
30
|
+
.mp u {text-decoration:underline}
|
31
|
+
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
32
|
+
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
33
|
+
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
34
|
+
.mp b.man-ref {font-weight:normal;color:#434241}
|
35
|
+
.mp pre {padding:0 4ex}
|
36
|
+
.mp pre code {font-weight:normal;color:#434241}
|
37
|
+
.mp h2+pre,h3+pre {padding-left:0}
|
38
|
+
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
39
|
+
ol.man-decor {width:100%}
|
40
|
+
ol.man-decor li.tl {text-align:left}
|
41
|
+
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
42
|
+
ol.man-decor li.tr {text-align:right;float:right}
|
43
|
+
</style>
|
44
|
+
</head>
|
45
|
+
<!--
|
46
|
+
The following styles are deprecated and will be removed at some point:
|
47
|
+
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
48
|
+
|
49
|
+
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
50
|
+
.man-navigation should be used instead.
|
51
|
+
-->
|
52
|
+
<body id='manpage'>
|
53
|
+
<div class='mp' id='man'>
|
54
|
+
|
55
|
+
<div class='man-navigation' style='display:none'>
|
56
|
+
<a href="#NAME">NAME</a>
|
57
|
+
<a href="#SYNOPSIS">SYNOPSIS</a>
|
58
|
+
<a href="#DESCRIPTION">DESCRIPTION</a>
|
59
|
+
<a href="#OPTIONS">OPTIONS</a>
|
60
|
+
<a href="#SEE-ALSO">SEE ALSO</a>
|
61
|
+
</div>
|
62
|
+
|
63
|
+
<ol class='man-decor man-head man head'>
|
64
|
+
<li class='tl'>yaml-view(1)</li>
|
65
|
+
<li class='tc'>YAML COMMAND</li>
|
66
|
+
<li class='tr'>yaml-view(1)</li>
|
67
|
+
</ol>
|
68
|
+
|
69
|
+
<h2 id="NAME">NAME</h2>
|
70
|
+
<p class="man-name">
|
71
|
+
<code>yaml-view</code> - <span class="man-whatis">yaml view command</span>
|
72
|
+
</p>
|
73
|
+
|
74
|
+
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
75
|
+
|
76
|
+
<p><code>yaml view [options] [path]</code></p>
|
77
|
+
|
78
|
+
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
79
|
+
|
80
|
+
<p>View a YAML file in glorious color!</p>
|
81
|
+
|
82
|
+
<h2 id="OPTIONS">OPTIONS</h2>
|
83
|
+
|
84
|
+
<p>The following options are available to the view command.</p>
|
85
|
+
|
86
|
+
<ul>
|
87
|
+
<li><code>-F</code>/<code>--file</code> <var>PATH</var>
|
88
|
+
The YAML file to query, if not by stdin.</li>
|
89
|
+
</ul>
|
90
|
+
|
91
|
+
|
92
|
+
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
93
|
+
|
94
|
+
<p><a class="man-ref" href="yaml.1.html">yaml<span class="s">(1)</span></a>, <a class="man-ref" href="yaml-set.1.html">yaml-set<span class="s">(1)</span></a>, <span class="man-ref">yaml-sort<span class="s">(1)</span></span>, <a class="man-ref" href="yaml-slurp.1.html">yaml-slurp<span class="s">(1)</span></a>, <span class="man-ref">yaml-splurp<span class="s">(1)</span></span>, <a class="man-ref" href="yaml-splat.1.html">yaml-splat<span class="s">(1)</span></a>, <a class="man-ref" href="yaml-view.1.html">yaml-view<span class="s">(1)</span></a></p>
|
95
|
+
|
96
|
+
|
97
|
+
<ol class='man-decor man-foot man foot'>
|
98
|
+
<li class='tl'>YAML.ORG</li>
|
99
|
+
<li class='tc'>December 2012</li>
|
100
|
+
<li class='tr'>yaml-view(1)</li>
|
101
|
+
</ol>
|
102
|
+
|
103
|
+
</div>
|
104
|
+
</body>
|
105
|
+
</html>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
yaml-view(1) - yaml view command
|
2
|
+
================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`yaml view [options] [path]`
|
7
|
+
|
8
|
+
|
9
|
+
## DESCRIPTION
|
10
|
+
|
11
|
+
View a YAML file in glorious color!
|
12
|
+
|
13
|
+
|
14
|
+
## OPTIONS
|
15
|
+
|
16
|
+
The following options are available to the view command.
|
17
|
+
|
18
|
+
* `-F`/`--file` <PATH>
|
19
|
+
The YAML file to query, if not by stdin.
|
20
|
+
|
21
|
+
|
22
|
+
## SEE ALSO
|
23
|
+
|
24
|
+
yaml(1), yaml-set(1), yaml-sort(1), yaml-slurp(1), yaml-splurp(1), yaml-splat(1), yaml-view(1)
|
data/man/yaml.1
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "YAML" "1" "December 2012" "YAML.ORG" "YAML COMMAND"
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fByaml\fR \- yaml command
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
\fByaml [command] [options] [arguments]\fR
|
11
|
+
.
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
The yaml command is a command line tool for working wiuth YAML files\.
|
14
|
+
.
|
15
|
+
.SH "COMMAND"
|
16
|
+
The following are the various subcommands currently supported by the yaml command:
|
17
|
+
.
|
18
|
+
.IP "\(bu" 4
|
19
|
+
\fBget <YPATH>\fR The \fBget\fR command simply extracts a portion of a YAML file and outputs it to stdout\.
|
20
|
+
.
|
21
|
+
.IP "\(bu" 4
|
22
|
+
\fBset <YPATH> <VALUE>\fR The \fBset\fR commnd is the opposite of \fBget\fR in that it lets you change a portion of a YAML file\. By defult the changed YAML document will go to stdout, using the \fB\-s/\-\-save\fR option rewrites the file with the change\.
|
23
|
+
.
|
24
|
+
.IP "\(bu" 4
|
25
|
+
\fBsort\fR The \fBsort\fR command can be used to sort portions of a YAML document\.
|
26
|
+
.
|
27
|
+
.IP "\(bu" 4
|
28
|
+
\fBslurp <DIR>\fR The \fBslurp\fR command takes a directory and converts it\'s contents into a YAML file\.
|
29
|
+
.
|
30
|
+
.IP "\(bu" 4
|
31
|
+
\fBsplat <DIR>\fR The \fBsplat\fR command take a YAML file and converts it into a file directory structure\. It is essentially the opposite of slurp\.
|
32
|
+
.
|
33
|
+
.IP "\(bu" 4
|
34
|
+
\fBedit\fR The \fBedit\fR command will open a YAML file for editing in the default editor (as defined by $EDITOR), and allow you to edit it\.
|
35
|
+
.
|
36
|
+
.IP
|
37
|
+
If instead you edit a directory, then the directory will be automatically slurped into a temporary file\. After editing the temporary file will be splatted back out to update the directory and it\'s files\.
|
38
|
+
.
|
39
|
+
.IP "\(bu" 4
|
40
|
+
\fBview\fR The \fBview\fR command prints a colorized rendering of the YAML file\.
|
41
|
+
.
|
42
|
+
.IP "" 0
|
43
|
+
.
|
44
|
+
.SH "SEE ALSO"
|
45
|
+
yaml\-get(1), yaml\-set(1), yaml\-sort(1), yaml\-slurp(1), yaml\-splat(1), yaml\-edit(1), yaml\-view(1)
|
data/man/yaml.1.html
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
5
|
+
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
6
|
+
<title>yaml(1) - yaml command</title>
|
7
|
+
<style type='text/css' media='all'>
|
8
|
+
/* style: man */
|
9
|
+
body#manpage {margin:0}
|
10
|
+
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
11
|
+
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
12
|
+
.mp h2 {margin:10px 0 0 0}
|
13
|
+
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
14
|
+
.mp h3 {margin:0 0 0 4ex}
|
15
|
+
.mp dt {margin:0;clear:left}
|
16
|
+
.mp dt.flush {float:left;width:8ex}
|
17
|
+
.mp dd {margin:0 0 0 9ex}
|
18
|
+
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
19
|
+
.mp pre {margin-bottom:20px}
|
20
|
+
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
21
|
+
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
22
|
+
.mp img {display:block;margin:auto}
|
23
|
+
.mp h1.man-title {display:none}
|
24
|
+
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
25
|
+
.mp h2 {font-size:16px;line-height:1.25}
|
26
|
+
.mp h1 {font-size:20px;line-height:2}
|
27
|
+
.mp {text-align:justify;background:#fff}
|
28
|
+
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
29
|
+
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
30
|
+
.mp u {text-decoration:underline}
|
31
|
+
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
32
|
+
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
33
|
+
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
34
|
+
.mp b.man-ref {font-weight:normal;color:#434241}
|
35
|
+
.mp pre {padding:0 4ex}
|
36
|
+
.mp pre code {font-weight:normal;color:#434241}
|
37
|
+
.mp h2+pre,h3+pre {padding-left:0}
|
38
|
+
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
39
|
+
ol.man-decor {width:100%}
|
40
|
+
ol.man-decor li.tl {text-align:left}
|
41
|
+
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
42
|
+
ol.man-decor li.tr {text-align:right;float:right}
|
43
|
+
</style>
|
44
|
+
</head>
|
45
|
+
<!--
|
46
|
+
The following styles are deprecated and will be removed at some point:
|
47
|
+
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
48
|
+
|
49
|
+
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
50
|
+
.man-navigation should be used instead.
|
51
|
+
-->
|
52
|
+
<body id='manpage'>
|
53
|
+
<div class='mp' id='man'>
|
54
|
+
|
55
|
+
<div class='man-navigation' style='display:none'>
|
56
|
+
<a href="#NAME">NAME</a>
|
57
|
+
<a href="#SYNOPSIS">SYNOPSIS</a>
|
58
|
+
<a href="#DESCRIPTION">DESCRIPTION</a>
|
59
|
+
<a href="#COMMAND">COMMAND</a>
|
60
|
+
<a href="#SEE-ALSO">SEE ALSO</a>
|
61
|
+
</div>
|
62
|
+
|
63
|
+
<ol class='man-decor man-head man head'>
|
64
|
+
<li class='tl'>yaml(1)</li>
|
65
|
+
<li class='tc'>YAML COMMAND</li>
|
66
|
+
<li class='tr'>yaml(1)</li>
|
67
|
+
</ol>
|
68
|
+
|
69
|
+
<h2 id="NAME">NAME</h2>
|
70
|
+
<p class="man-name">
|
71
|
+
<code>yaml</code> - <span class="man-whatis">yaml command</span>
|
72
|
+
</p>
|
73
|
+
|
74
|
+
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
75
|
+
|
76
|
+
<p><code>yaml [command] [options] [arguments]</code></p>
|
77
|
+
|
78
|
+
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
79
|
+
|
80
|
+
<p>The yaml command is a command line tool for working wiuth YAML files.</p>
|
81
|
+
|
82
|
+
<h2 id="COMMAND">COMMAND</h2>
|
83
|
+
|
84
|
+
<p>The following are the various subcommands currently supported by the yaml command:</p>
|
85
|
+
|
86
|
+
<ul>
|
87
|
+
<li><p><code>get <YPATH></code>
|
88
|
+
The <code>get</code> command simply extracts a portion of a YAML file and outputs
|
89
|
+
it to stdout.</p></li>
|
90
|
+
<li><p><code>set <YPATH> <VALUE></code>
|
91
|
+
The <code>set</code> commnd is the opposite of <code>get</code> in that it lets you change
|
92
|
+
a portion of a YAML file. By defult the changed YAML document will go
|
93
|
+
to stdout, using the <code>-s/--save</code> option rewrites the file with the change.</p></li>
|
94
|
+
<li><p><code>sort</code>
|
95
|
+
The <code>sort</code> command can be used to sort portions of a YAML document.</p></li>
|
96
|
+
<li><p><code>slurp <DIR></code>
|
97
|
+
The <code>slurp</code> command takes a directory and converts it's contents into a YAML file.</p></li>
|
98
|
+
<li><p><code>splat <DIR></code>
|
99
|
+
The <code>splat</code> command take a YAML file and converts it into a file directory structure.
|
100
|
+
It is essentially the opposite of slurp.</p></li>
|
101
|
+
<li><p><code>edit</code>
|
102
|
+
The <code>edit</code> command will open a YAML file for editing in the default editor
|
103
|
+
(as defined by $EDITOR), and allow you to edit it.</p>
|
104
|
+
|
105
|
+
<p>If instead you edit a directory, then the directory will be automatically
|
106
|
+
slurped into a temporary file. After editing the temporary file will be
|
107
|
+
splatted back out to update the directory and it's files.</p></li>
|
108
|
+
<li><p><code>view</code>
|
109
|
+
The <code>view</code> command prints a colorized rendering of the YAML file.</p></li>
|
110
|
+
</ul>
|
111
|
+
|
112
|
+
|
113
|
+
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
114
|
+
|
115
|
+
<p><a class="man-ref" href="yaml-get.1.html">yaml-get<span class="s">(1)</span></a>, <a class="man-ref" href="yaml-set.1.html">yaml-set<span class="s">(1)</span></a>, <span class="man-ref">yaml-sort<span class="s">(1)</span></span>, <a class="man-ref" href="yaml-slurp.1.html">yaml-slurp<span class="s">(1)</span></a>, <a class="man-ref" href="yaml-splat.1.html">yaml-splat<span class="s">(1)</span></a>, <a class="man-ref" href="yaml-edit.1.html">yaml-edit<span class="s">(1)</span></a>, <a class="man-ref" href="yaml-view.1.html">yaml-view<span class="s">(1)</span></a></p>
|
116
|
+
|
117
|
+
|
118
|
+
<ol class='man-decor man-foot man foot'>
|
119
|
+
<li class='tl'>YAML.ORG</li>
|
120
|
+
<li class='tc'>December 2012</li>
|
121
|
+
<li class='tr'>yaml(1)</li>
|
122
|
+
</ol>
|
123
|
+
|
124
|
+
</div>
|
125
|
+
</body>
|
126
|
+
</html>
|