Skip to content

Commit fce65bd

Browse files
committed
Quick Save
1 parent 1f5602d commit fce65bd

File tree

8 files changed

+79
-24
lines changed

8 files changed

+79
-24
lines changed

cmds/vcard2json/vcard2json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ EXAMPLES
4747
4848
Simple usage of building a CSV file one rows at a time.
4949
50-
cat my.cvf | %s > myVCard.json
50+
cat my.cvf | %s > myVCard.json
5151
5252
Or reading, writing to specific file
5353

docs/index.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,19 @@ <h1>datatools command help</h1>
2424

2525
<ul>
2626
<li><a href="cmds.html">cmds</a></li>
27-
<li><a href="csvrows.html">csvrows</a></li>
28-
<li><a href="csvjoin.html">csvjoin</a></li>
27+
<li><a href="csv2json.html">csv2json</a></li>
28+
<li><a href="csv2mdtable.html">csv2mdtable</a></li>
2929
<li><a href="csv2xlsx.html">csv2xlsx</a></li>
30+
<li><a href="csvcols.html">csvcols</a></li>
3031
<li><a href="csvfind.html">csvfind</a></li>
31-
<li><a href="jsonmunge.html">jsonmunge</a></li>
32-
<li><a href="csv2json.html">csv2json</a></li>
32+
<li><a href="csvjoin.html">csvjoin</a></li>
33+
<li><a href="csvmerge.html">csvmerge</a></li>
34+
<li><a href="csvrows.html">csvrows</a></li>
3335
<li><a href="jsoncols.html">jsoncols</a></li>
36+
<li><a href="jsonmunge.html">jsonmunge</a></li>
37+
<li><a href="jsonrange.html">jsonrange</a></li>
3438
<li><a href="vcard2json.html">vcard2json</a></li>
3539
<li><a href="xlsx2csv.html">xlsx2csv</a></li>
36-
<li><a href="csv2mdtable.html">csv2mdtable</a></li>
37-
<li><a href="csvcols.html">csvcols</a></li>
38-
<li><a href="jsonrange.html">jsonrange</a></li>
3940
<li><a href="xlsx2json.html">xlsx2json</a></li>
4041
</ul>
4142

docs/index.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
# datatools command help
33

44
+ [cmds](cmds.html)
5-
+ [csvrows](csvrows.html)
6-
+ [csvjoin](csvjoin.html)
5+
+ [csv2json](csv2json.html)
6+
+ [csv2mdtable](csv2mdtable.html)
77
+ [csv2xlsx](csv2xlsx.html)
8+
+ [csvcols](csvcols.html)
89
+ [csvfind](csvfind.html)
9-
+ [jsonmunge](jsonmunge.html)
10-
+ [csv2json](csv2json.html)
10+
+ [csvjoin](csvjoin.html)
11+
+ [csvmerge](csvmerge.html)
12+
+ [csvrows](csvrows.html)
1113
+ [jsoncols](jsoncols.html)
14+
+ [jsonmunge](jsonmunge.html)
15+
+ [jsonrange](jsonrange.html)
1216
+ [vcard2json](vcard2json.html)
1317
+ [xlsx2csv](xlsx2csv.html)
14-
+ [csv2mdtable](csv2mdtable.html)
15-
+ [csvcols](csvcols.html)
16-
+ [jsonrange](jsonrange.html)
1718
+ [xlsx2json](xlsx2json.html)

docs/jsonmunge.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,24 @@ <h2>OPTIONS</h2>
5252

5353
<h2>EXAMPLES</h2>
5454

55-
<p>If data.json contained</p>
55+
<p>If person.json contained</p>
5656

5757
<pre><code class="language-json"> {&quot;name&quot;: &quot;Doe, Jane&quot;, &quot;email&quot;:&quot;[email protected]&quot;, &quot;age&quot;: 42}
5858
</code></pre>
5959

6060
<p>and the template, name.tmpl, contained</p>
6161

62-
<pre><code> {{- .name -}}
62+
<pre><code class="language-template"> {{- .name -}}
6363
</code></pre>
6464

6565
<p>Getting just the name could be done with</p>
6666

67-
<pre><code class="language-shell"> cat data.json | jsonmunge name.tmpl
67+
<pre><code class="language-shell"> cat person.json | jsonmunge name.tmpl
6868
</code></pre>
6969

7070
<p>This would yeild</p>
7171

72-
<pre><code> Doe, Jane
72+
<pre><code class="language-shell"> &quot;Doe, Jane&quot;
7373
</code></pre>
7474

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

docs/jsonmunge.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
2+
# jsonmunge
3+
4+
## USAGE
5+
6+
jsonmunge [OPTIONS] TEMPLATE_FILENAME
7+
8+
## SYSNOPSIS
9+
10+
jsonmunge is a command line tool that takes a JSON document and
11+
one or more Go templates rendering the results. Useful for
12+
reshaping a JSON document, transforming into a new format,
13+
or filter for specific content.
14+
15+
+ TEMPLATE_FILENAME is the name of a Go text tempate file used to render
16+
the outbound JSON document
17+
18+
## OPTIONS
19+
20+
```
21+
-h display help
22+
-i input filename
23+
-input input filename
24+
-l display license
25+
-o output filename
26+
-output output filename
27+
-v display version
28+
```
29+
30+
## EXAMPLES
31+
32+
If person.json contained
33+
34+
```json
35+
{"name": "Doe, Jane", "email":"[email protected]", "age": 42}
36+
```
37+
and the template, name.tmpl, contained
38+
39+
```template
40+
{{- .name -}}
41+
```
42+
Getting just the name could be done with
43+
44+
```shell
45+
cat person.json | jsonmunge name.tmpl
46+
```
47+
This would yeild
48+
49+
```shell
50+
"Doe, Jane"
51+
```
52+
53+
jsonmunge v0.0.9

docs/vcard2json.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h2>EXAMPLES</h2>
5050

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

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

5656
<p>Or reading, writing to specific file</p>

docs/vcard2json.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77

88
## SYNOPSIS
99

10-
vcard2json is an experimental tool that converts a VCard to JSON.
11-
The vcard can be read from stdin or form a file
10+
vcard2json converts a VCard to JSON. The vcard can be read from stdin or form a file
1211
with the usual options. The JSON version will be written to stdout.
1312

14-
1513
## OPTIONS
1614

1715
```
@@ -32,7 +30,7 @@ with the usual options. The JSON version will be written to stdout.
3230
Simple usage of building a CSV file one rows at a time.
3331

3432
```shell
35-
cat my.cvf | vcard2json > myVCard.json
33+
cat my.cvf | vcard2json > myVCard.json
3634
```
3735

3836
Or reading, writing to specific file

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ <h1>datatools</h1>
3737
<li><a href="docs/csv2xlsx.html">csv2xlsx</a> - a tool to take a CSV file and add it as a sheet to a Excel Workbook file.</li>
3838
<li><a href="docs/jsoncols.html">jsoncols</a> - a tool for exploring and extracting JSON values into columns</li>
3939
<li><a href="docs/jsonrange.html">jsonrange</a> - a tool for iterating for JSON maps and arrays</li>
40+
<li><a href="docs/jsonmunge.html">jsonmunge</a> - a tool to transform JSON documents into something else</li>
41+
<li><a href="docs/vcard2json.html">vcard2json</a> - an experimental tool to convert vCards to JSON</li>
4042
<li><a href="docs/xlsx2json.html">xlsx2json</a> - a tool for converting Excel Workbooks to JSON files</li>
4143
<li><a href="docs/xlsx2csv.html">xlsx2csv</a> - a tool for converting Excel Workbooks sheets to a CSV file(s)</li>
4244
</ul>

0 commit comments

Comments
 (0)