mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
jp: add man page
This commit is contained in:
parent
6c2f690a74
commit
6179c9ad25
1 changed files with 35 additions and 0 deletions
35
Base/usr/share/man/man1/jp.md
Normal file
35
Base/usr/share/man/man1/jp.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
## 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
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue