Skip to content

Commit

Permalink
fix examples in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
can3p committed Apr 15, 2024
1 parent e8c60a4 commit 88afdb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ prop:
### Set a field with a value

```
$ echo '{ "a":1 }' | sackmesser mod 'set(prop, `{ "test": 123 }`'
$ echo '{ "a":1 }' | sackmesser mod 'set(prop, `{ "test": 123 })`'
{
"a": 1,
"prop": "{ \"test\": 123 }"
Expand Down Expand Up @@ -98,7 +98,7 @@ $ echo '{ "a":1 }' | sackmesser mod "set(prop, `value`)"
### Set a field with a value that will be parsed as a JSON first

```
$ echo '{ "a":1 }' | sackmesser mod 'set(prop, { "test": 123 }'
$ echo '{ "a":1 }' | sackmesser mod 'set(prop, { "test": 123 })'
{
"a": 1,
"prop": {
Expand All @@ -110,7 +110,7 @@ $ echo '{ "a":1 }' | sackmesser mod 'set(prop, { "test": 123 }'
You can always spit out a different format if you want!

```
$ echo '{ "a":1 }' | sackmesser mod --output-format yaml 'set(prop, { "test": 123 }'
$ echo '{ "a":1 }' | sackmesser mod --output-format yaml 'set(prop, { "test": 123 })'
{
a: 1
prop:
Expand Down

0 comments on commit 88afdb9

Please sign in to comment.