1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

formatting

This commit is contained in:
Kelly Brazil
2020-02-13 18:20:22 -08:00
parent 6ba64f1128
commit f0e3846c03

View File

@ -72,8 +72,6 @@ $ pip3 install --upgrade jc
## Usage
`jc` accepts piped input from `STDIN` and outputs a JSON representation of the previous command's output to `STDOUT`.
Alternatively, the "magic" syntax can be used by prepending `jc` to the command to be converted. Options can be passed to `jc` immediately before the command is given.
```
COMMAND | jc PARSER [OPTIONS]
```
@ -81,11 +79,10 @@ or
```
COMMAND | jc [OPTIONS] PARSER
```
or using the "magic" syntax
Alternatively, the "magic" syntax can be used by prepending `jc` to the command to be converted. Options can be passed to `jc` immediately before the command is given.
```
jc [OPTIONS] COMMAND
```
The JSON output can be compact (default) or pretty formatted with the `-p` option.
### Parsers