mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-23 00:29:59 +02:00
add info about Magic syntax not supporting shell builtins
This commit is contained in:
@ -4,12 +4,12 @@ jc \- JSONifies the output of many CLI tools and file-types
|
|||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
COMMAND | jc PARSER [OPTIONS]
|
COMMAND | jc PARSER [OPTIONS]
|
||||||
|
|
||||||
or magic syntax:
|
or "Magic" syntax:
|
||||||
|
|
||||||
jc [OPTIONS] COMMAND
|
jc [OPTIONS] COMMAND
|
||||||
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
jc JSONifies the output of many CLI tools and file-types for easier parsing in scripts. jc accepts piped input from \fBSTDIN\fP and outputs a JSON representation of the previous command's output to \fBSTDOUT\fP. 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. (Note: command aliases are not supported).
|
jc JSONifies the output of many CLI tools and file-types for easier parsing in scripts. jc accepts piped input from \fBSTDIN\fP and outputs a JSON representation of the previous command's output to \fBSTDOUT\fP. 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. (Note: "Magic" syntax does not support shell builtins or command aliases)
|
||||||
|
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.B
|
.B
|
||||||
@ -63,7 +63,7 @@ raw JSON output
|
|||||||
version information
|
version information
|
||||||
|
|
||||||
.SH EXIT CODES
|
.SH EXIT CODES
|
||||||
Any fatal errors within jc will generate an exit code of \fB100\fP, otherwise the exit code will be \fB0\fP. When using the "magic" syntax (e.g. \fBjc ifconfig eth0\fP), jc will store the exit code of the program being parsed and add it to the jc exit code. This way it is easier to determine if an error was from the parsed program or jc.
|
Any fatal errors within jc will generate an exit code of \fB100\fP, otherwise the exit code will be \fB0\fP. When using the "Magic" syntax (e.g. \fBjc ifconfig eth0\fP), jc will store the exit code of the program being parsed and add it to the jc exit code. This way it is easier to determine if an error was from the parsed program or jc.
|
||||||
|
|
||||||
Consider the following examples using `ifconfig`:
|
Consider the following examples using `ifconfig`:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user