From 6179c9ad25c306079ea4b0718f333ff87b236773 Mon Sep 17 00:00:00 2001 From: Cesar Torres Date: Wed, 24 Mar 2021 16:46:06 +0100 Subject: [PATCH] jp: add man page --- Base/usr/share/man/man1/jp.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Base/usr/share/man/man1/jp.md diff --git a/Base/usr/share/man/man1/jp.md b/Base/usr/share/man/man1/jp.md new file mode 100644 index 0000000000..185038ff29 --- /dev/null +++ b/Base/usr/share/man/man1/jp.md @@ -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 +```