-
Notifications
You must be signed in to change notification settings - Fork 1
/
yaml-union.1
74 lines (74 loc) · 1.25 KB
/
yaml-union.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.\" Automatically generated by Pandoc 1.15.1.1
.\"
.hy
.TH "yaml\-union" "1" "January 6, 2016" "" ""
.SH NAME
.PP
yaml\-union \-\- Union yaml\-files on the command\-line
.SH SYNOPSIS
.PP
yaml\-union [options] [files..]
.SH DESCRIPTION
.PP
\f[C]yaml\-union\f[] unions yaml\-files recursively.
When a key appears in multiple files, the values will be overridden with
the order given on the command\-line.
If both values are hashes, the overrides will be done recursively.
.PP
The program could be useful in conjunction with \f[C]pandoc\f[] when
passing in meta\-data from external files.
.SH OPTIONS
.PP
\f[C]\-d,\-\-dashes\f[]
.PP
Wheter to print dashes at the beginning and end of the document
.SH TODO
.IP \[bu] 2
Optional define yaml\-entries on the command\-line e.g.
\f[C]yaml\-union\ \-V\ blue=blau\ col.yaml\f[]
.SH EXAMPLES
.SS Dictionary
.PP
de.yaml:
.IP
.nf
\f[C]
name:\ Michel\ Kuhlmann
blue:\ blau
green:\ grün
\f[]
.fi
.PP
en.yaml:
.IP
.nf
\f[C]
blue:\ blue
green:\ green
\f[]
.fi
.IP
.nf
\f[C]
yaml\-union\ de.yaml\ en.yaml
\f[]
.fi
.PP
will create
.IP
.nf
\f[C]
name:\ Michel\ Kuhlmann
blue:\ blue
green:\ green
\f[]
.fi
.SS Pandoc
.IP
.nf
\f[C]
yaml\-union\ \-d\ meta1.yaml\ meta2.yaml\ |\ pandoc\ text.md\ \-\-template\ tmpl.html
\f[]
.fi
.SH AUTHORS
Michel Kuhlmann.