Skip to content

Commit 645f853

Browse files
committed
implemented jsonmunge, add vcard2json to build process
1 parent 0094689 commit 645f853

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

cmds/jsonmunge/jsonmunge.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ or filter for specific content.
4141
examples = `
4242
EXAMPLES
4343
44-
If data.json contained
44+
If person.json contained
4545
4646
{"name": "Doe, Jane", "email":"[email protected]", "age": 42}
4747
@@ -51,7 +51,7 @@ and the template, name.tmpl, contained
5151
5252
Getting just the name could be done with
5353
54-
cat data.json | %s name.tmpl
54+
cat person.json | %s name.tmpl
5555
5656
This would yeild
5757

demos/name.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{- .name -}}

demos/person.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name": "Doe, Jane", "email":"[email protected]", "age": 42}

0 commit comments

Comments
 (0)