1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

doc update

This commit is contained in:
Kelly Brazil
2022-09-09 17:13:43 -07:00
parent e1f6007dea
commit 03f0984e1d
7 changed files with 17 additions and 15 deletions

View File

@ -70,7 +70,7 @@ values are converted, and, in some cases, additional semantic context fields are
added. added.
To access the raw, pre-processed JSON, use the `-r` cli option or the `raw=True` To access the raw, pre-processed JSON, use the `-r` cli option or the `raw=True`
function parameter in `parse()`. function parameter in `parse()` when using `jc` as a python library.
Schemas for each parser can be found at the documentation link beside each Schemas for each parser can be found at the documentation link beside each
[**Parser**](#parsers) below. [**Parser**](#parsers) below.
@ -139,11 +139,12 @@ echo STRING | jc [OPTIONS] PARSER
``` ```
Alternatively, the "magic" syntax can be used by prepending `jc` to the command 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 to be converted or in front of the absolute path for Proc files. Options can be
given. (Note: command aliases and shell builtins are not supported) passed to `jc` immediately before the command or Proc file path is given.
(Note: command aliases and shell builtins are not supported)
```bash ```bash
jc [OPTIONS] COMMAND jc [OPTIONS] COMMAND
jc [OPTIONS] /proc/<path-to-file> jc [OPTIONS] /proc/<path-to-procfile>
``` ```
The JSON output can be compact (default) or pretty formatted with the `-p` The JSON output can be compact (default) or pretty formatted with the `-p`

View File

@ -29,8 +29,8 @@ or
Schema: Schema:
"yes" and "no" values are converted to true/false. Integer conversions are "yes" and "no" values are converted to `true`/`false`. Integer conversions
attempted. If you do not want this behavior, then use `--raw` (CLI) or are attempted. If you do not want this behavior, then use `--raw` (cli) or
`raw=True` (module). `raw=True` (module).
{ {

View File

@ -195,7 +195,7 @@ Usage:
jc [OPTIONS] COMMAND jc [OPTIONS] COMMAND
jc [OPTIONS] /proc/<path-to-file> jc [OPTIONS] /proc/<path-to-procfile>
Parsers: Parsers:
{parsers_string} {parsers_string}

View File

@ -24,8 +24,8 @@ or
Schema: Schema:
"yes" and "no" values are converted to true/false. Integer conversions are "yes" and "no" values are converted to `true`/`false`. Integer conversions
attempted. If you do not want this behavior, then use `--raw` (CLI) or are attempted. If you do not want this behavior, then use `--raw` (cli) or
`raw=True` (module). `raw=True` (module).
{ {

View File

@ -18,7 +18,7 @@ Magic syntax:
.RS .RS
\fBjc\fP [OPTIONS] COMMAND \fBjc\fP [OPTIONS] COMMAND
\fBjc\fP [OPTIONS] /proc/<path-to-file> \fBjc\fP [OPTIONS] /proc/<path-to-procfile>
.RE .RE
.SH DESCRIPTION .SH DESCRIPTION

View File

@ -18,7 +18,7 @@ Magic syntax:
.RS .RS
\fBjc\fP [OPTIONS] COMMAND \fBjc\fP [OPTIONS] COMMAND
\fBjc\fP [OPTIONS] /proc/<path-to-file> \fBjc\fP [OPTIONS] /proc/<path-to-procfile>
.RE .RE
.SH DESCRIPTION .SH DESCRIPTION

View File

@ -70,7 +70,7 @@ values are converted, and, in some cases, additional semantic context fields are
added. added.
To access the raw, pre-processed JSON, use the `-r` cli option or the `raw=True` To access the raw, pre-processed JSON, use the `-r` cli option or the `raw=True`
function parameter in `parse()`. function parameter in `parse()` when using `jc` as a python library.
Schemas for each parser can be found at the documentation link beside each Schemas for each parser can be found at the documentation link beside each
[**Parser**](#parsers) below. [**Parser**](#parsers) below.
@ -139,11 +139,12 @@ echo STRING | jc [OPTIONS] PARSER
``` ```
Alternatively, the "magic" syntax can be used by prepending `jc` to the command 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 to be converted or in front of the absolute path for Proc files. Options can be
given. (Note: command aliases and shell builtins are not supported) passed to `jc` immediately before the command or Proc file path is given.
(Note: command aliases and shell builtins are not supported)
```bash ```bash
jc [OPTIONS] COMMAND jc [OPTIONS] COMMAND
jc [OPTIONS] /proc/<path-to-file> jc [OPTIONS] /proc/<path-to-procfile>
``` ```
The JSON output can be compact (default) or pretty formatted with the `-p` The JSON output can be compact (default) or pretty formatted with the `-p`