Skip to content

Commit 38136be

Browse files
committed
Quick Save
1 parent 1377ba0 commit 38136be

File tree

3 files changed

+58
-37
lines changed

3 files changed

+58
-37
lines changed

docs/jsonmunge.html

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@
2020
</nav>
2121

2222
<section>
23-
<p>USAGE: jsonmunge [OPTIONS] TEMPLATE_FILENAME</p>
23+
<h1>jsonmunch</h1>
2424

25-
<p>SYSNOPSIS</p>
25+
<h2>USAGE</h2>
26+
27+
<pre><code>jsonmunge [OPTIONS] TEMPLATE_FILENAME
28+
</code></pre>
29+
30+
<h2>SYSNOPSIS</h2>
2631

2732
<p>jsonmunge is a command line tool that takes a JSON document and
2833
one or more Go templates rendering the results. Useful for
@@ -34,35 +39,37 @@
3439
the outbound JSON document</li>
3540
</ul>
3641

37-
<p>OPTIONS</p>
42+
<h2>OPTIONS</h2>
3843

39-
<pre><code>-h display help
40-
-i input filename
41-
-input input filename
42-
-l display license
43-
-o output filename
44-
-output output filename
45-
-v display version
44+
<pre><code> -h display help
45+
-i input filename
46+
-input input filename
47+
-l display license
48+
-o output filename
49+
-output output filename
50+
-v display version
4651
</code></pre>
4752

48-
<p>EXAMPLES</p>
53+
<h2>EXAMPLES</h2>
4954

5055
<p>If data.json contained</p>
5156

52-
<p>{&ldquo;name&rdquo;: &ldquo;Doe, Jane&rdquo;, &ldquo;email&rdquo;:&ldquo;[email protected]&rdquo;, &ldquo;age&rdquo;: 42}</p>
57+
<pre><code class="language-json"> {&quot;name&quot;: &quot;Doe, Jane&quot;, &quot;email&quot;:&quot;[email protected]&quot;, &quot;age&quot;: 42}
58+
</code></pre>
5359

5460
<p>and the template, name.tmpl, contained</p>
5561

56-
<p>{{- .name -}}</p>
62+
<pre><code> {{- .name -}}
63+
</code></pre>
5764

5865
<p>Getting just the name could be done with</p>
5966

60-
<pre><code>cat data.json | jsonmunge name.tmpl
67+
<pre><code class="language-shell"> cat data.json | jsonmunge name.tmpl
6168
</code></pre>
6269

6370
<p>This would yeild</p>
6471

65-
<pre><code>&quot;Doe, Jane&quot;
72+
<pre><code> Doe, Jane
6673
</code></pre>
6774

6875
<p>jsonmunge v0.0.9</p>

docs/vcard2json.html

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,42 @@
2020
</nav>
2121

2222
<section>
23-
<p>USAGE: vcard2json [OPTIONS]</p>
23+
<h1>vcard2json</h1>
2424

25-
<p>SYNOPSIS</p>
25+
<h2>USAGE</h2>
26+
27+
<pre><code>vcard2json [OPTIONS]
28+
</code></pre>
29+
30+
<h2>SYNOPSIS</h2>
2631

2732
<p>vcard2json converts a VCard to JSON. The vcard can be read from stdin or form a file
2833
with the usual options. The JSON version will be written to stdout.</p>
2934

30-
<p>OPTIONS</p>
31-
32-
<pre><code>-h display help
33-
-help display help
34-
-i input filename
35-
-input input filename
36-
-l display license
37-
-license display license
38-
-o output filename
39-
-output output filename
40-
-v display version
41-
-version display version
35+
<h2>OPTIONS</h2>
36+
37+
<pre><code> -h display help
38+
-help display help
39+
-i input filename
40+
-input input filename
41+
-l display license
42+
-license display license
43+
-o output filename
44+
-output output filename
45+
-v display version
46+
-version display version
4247
</code></pre>
4348

44-
<p>EXAMPLES</p>
49+
<h2>EXAMPLES</h2>
4550

4651
<p>Simple usage of building a CSV file one rows at a time.</p>
4752

48-
<pre><code>cat my.cvf | vcard2json &gt; myVCard.json
53+
<pre><code class="language-shell"> cat my.cvf | vcard2json &gt; myVCard.json
4954
</code></pre>
5055

5156
<p>Or reading, writing to specific file</p>
5257

53-
<pre><code>vcard2json -i mv.cvf -o myVCard.json
58+
<pre><code class="language-shell"> vcard2json -i mv.cvf -o myVCard.json
5459
</code></pre>
5560

5661
<p>vcard2json v0.0.9</p>

docs/vcard2json.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
USAGE: vcard2json [OPTIONS]
21

2+
# vcard2json
33

4-
SYNOPSIS
4+
## USAGE
5+
6+
vcard2json [OPTIONS]
7+
8+
## SYNOPSIS
59

610
vcard2json converts a VCard to JSON. The vcard can be read from stdin or form a file
711
with the usual options. The JSON version will be written to stdout.
812

913

10-
OPTIONS
14+
## OPTIONS
1115

16+
```
1217
-h display help
1318
-help display help
1419
-i input filename
@@ -19,17 +24,21 @@ OPTIONS
1924
-output output filename
2025
-v display version
2126
-version display version
27+
```
2228

23-
24-
EXAMPLES
29+
## EXAMPLES
2530

2631
Simple usage of building a CSV file one rows at a time.
2732

33+
```shell
2834
cat my.cvf | vcard2json > myVCard.json
35+
```
2936

3037
Or reading, writing to specific file
3138

39+
```shell
3240
vcard2json -i mv.cvf -o myVCard.json
41+
```
3342

3443

3544
vcard2json v0.0.9

0 commit comments

Comments
 (0)