mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
Base: Rename jp(1) manual page to json(1)
This commit is contained in:
parent
b80c24f57f
commit
e52f0a991b
2 changed files with 39 additions and 35 deletions
|
@ -1,35 +0,0 @@
|
|||
## Name
|
||||
|
||||
jp - pretty-print a JSON file with syntax-coloring and indentation
|
||||
|
||||
## Synopsis
|
||||
|
||||
```**sh
|
||||
$ jp [options...] [path...]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
`jp` pretty-prints a JSON file with syntax-coloring and indentation.
|
||||
|
||||
If no *path* argument is provided stdin is used.
|
||||
|
||||
## Options
|
||||
|
||||
* `--help`: Display this message
|
||||
* `-i`, `--indent-size`: Size of indentations in spaces
|
||||
|
||||
## Arguments
|
||||
|
||||
* `path`: file to pretty-print
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
# Pretty-print stdin
|
||||
$ cat /proc/all | jp
|
||||
# Pretty-print a file
|
||||
$ jp json-data.json
|
||||
# Pretty-print a file with two spaces per indent
|
||||
$ jp -i 2 json-data.json
|
||||
```
|
39
Base/usr/share/man/man1/json.md
Normal file
39
Base/usr/share/man/man1/json.md
Normal file
|
@ -0,0 +1,39 @@
|
|||
## Name
|
||||
|
||||
json - pretty-print a JSON file with syntax-coloring and indentation
|
||||
|
||||
## Synopsis
|
||||
|
||||
```**sh
|
||||
$ json [options...] [path...]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
`json` pretty-prints a JSON file with syntax-coloring and indentation.
|
||||
|
||||
If no *path* argument is provided stdin is used.
|
||||
|
||||
## Options
|
||||
|
||||
* `--help`: Display this message
|
||||
* `-i`, `--indent-size`: Size of indentations in spaces
|
||||
* `-q`, `--query`: Dotted query key
|
||||
|
||||
## Arguments
|
||||
|
||||
* `path`: file to pretty-print
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
# Pretty-print stdin
|
||||
$ cat /proc/all | json
|
||||
# Pretty-print a file
|
||||
$ json json-data.json
|
||||
# Pretty-print a file with two spaces per indent
|
||||
$ json -i 2 json-data.json
|
||||
# Query data from JSON
|
||||
$ json -q 1 .config/CommonLocations.json
|
||||
$ cat /proc/all | json -q processes
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue