Skip to content

Commit

Permalink
- [*] amend cmd esc help
Browse files Browse the repository at this point in the history
  • Loading branch information
suntong committed Aug 14, 2017
1 parent b07cedb commit 5e39760
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.e.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

The `jsonfiddle` makes it easy to look at the JSON data from different aspects.

- **`jsonfiddle esc`** will escape any arbitrary string so as to embed it as content of json string.
- **`jsonfiddle fmt`** will format the JSON data, either compact it or pretty printing it. The order of fields are intact.
- **`jsonfiddle sort`** will sort the JSON data fields recursively, so that the attributes at any level are in sorted order.
- **`jsonfiddle j2s`** means json to struct. It will extract the structure of JSON data as Go struct.
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

The `jsonfiddle` makes it easy to look at the JSON data from different aspects.

- **`jsonfiddle esc`** will escape any arbitrary string so as to embed it as content of json string.
- **`jsonfiddle fmt`** will format the JSON data, either compact it or pretty printing it. The order of fields are intact.
- **`jsonfiddle sort`** will sort the JSON data fields recursively, so that the attributes at any level are in sorted order.
- **`jsonfiddle j2s`** means json to struct. It will extract the structure of JSON data as Go struct.
Expand All @@ -65,15 +66,15 @@ Options:

Commands:

esc Escape json string so as to embed it as content of json string
esc Escape json string
fmt Format json string
sort Sort json fields recursively
j2s JSON to struct
```

### $ jsonfiddle esc
```sh
Escape json string so as to embed it as content of json string
Escape json string

Options:

Expand Down
2 changes: 1 addition & 1 deletion jsonfiddle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Options:
Command:

- Name: esc
Desc: "Escape json string so as to embed it as content of json string"
Desc: "Escape json string"
NumOption: cli.AtLeast(1)

Options:
Expand Down
2 changes: 1 addition & 1 deletion jsonfiddleCLIDef.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ type escT struct {

var escDef = &cli.Command{
Name: "esc",
Desc: "Escape json string so as to embed it as content of json string",
Desc: "Escape json string",

Argv: func() interface{} { return new(escT) },
Fn: escCLI,
Expand Down

0 comments on commit 5e39760

Please sign in to comment.