mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-13 01:20:24 +02:00
update docs for shell builtins
This commit is contained in:
@ -732,7 +732,7 @@ dig -x 1.1.1.1 | jc --dig -p # or: jc -p dig -x 1.1.1.1
|
|||||||
```
|
```
|
||||||
### dir
|
### dir
|
||||||
```bash
|
```bash
|
||||||
dir | jc --dir -p # or: jc -p dir
|
dir | jc --dir -p
|
||||||
```
|
```
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
@ -1671,7 +1671,7 @@ iw dev wlan0 scan | jc --iw-scan -p # or: jc -p iw dev wlan0 scan
|
|||||||
```
|
```
|
||||||
### jobs
|
### jobs
|
||||||
```bash
|
```bash
|
||||||
jobs -l | jc --jobs -p # or: jc -p jobs
|
jobs -l | jc --jobs -p
|
||||||
```
|
```
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
|
@ -5,6 +5,8 @@ jc - JSON CLI output utility `history` command output parser
|
|||||||
|
|
||||||
This parser will output a list of dictionaries each containing `line` and `command` keys. If you would like a simple dictionary output, then use the `-r` command-line option or the `raw=True` argument in the `parse()` function.
|
This parser will output a list of dictionaries each containing `line` and `command` keys. If you would like a simple dictionary output, then use the `-r` command-line option or the `raw=True` argument in the `parse()` function.
|
||||||
|
|
||||||
|
The "Magic" syntax is not supported since the `history` command is a shell builtin.
|
||||||
|
|
||||||
Usage (cli):
|
Usage (cli):
|
||||||
|
|
||||||
$ history | jc --history
|
$ history | jc --history
|
||||||
|
@ -5,14 +5,12 @@ jc - JSON CLI output utility `jobs` command output parser
|
|||||||
|
|
||||||
Also supports the `-l` option.
|
Also supports the `-l` option.
|
||||||
|
|
||||||
|
The "Magic" syntax is not supported since the `jobs` command is a shell builtin.
|
||||||
|
|
||||||
Usage (cli):
|
Usage (cli):
|
||||||
|
|
||||||
$ jobs | jc --jobs
|
$ jobs | jc --jobs
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
$ jc jobs
|
|
||||||
|
|
||||||
Usage (module):
|
Usage (module):
|
||||||
|
|
||||||
import jc.parsers.jobs
|
import jc.parsers.jobs
|
||||||
|
BIN
jc/man/jc.1.gz
BIN
jc/man/jc.1.gz
Binary file not shown.
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
This parser will output a list of dictionaries each containing `line` and `command` keys. If you would like a simple dictionary output, then use the `-r` command-line option or the `raw=True` argument in the `parse()` function.
|
This parser will output a list of dictionaries each containing `line` and `command` keys. If you would like a simple dictionary output, then use the `-r` command-line option or the `raw=True` argument in the `parse()` function.
|
||||||
|
|
||||||
|
The "Magic" syntax is not supported since the `history` command is a shell builtin.
|
||||||
|
|
||||||
Usage (cli):
|
Usage (cli):
|
||||||
|
|
||||||
$ history | jc --history
|
$ history | jc --history
|
||||||
|
@ -2,14 +2,12 @@
|
|||||||
|
|
||||||
Also supports the `-l` option.
|
Also supports the `-l` option.
|
||||||
|
|
||||||
|
The "Magic" syntax is not supported since the `jobs` command is a shell builtin.
|
||||||
|
|
||||||
Usage (cli):
|
Usage (cli):
|
||||||
|
|
||||||
$ jobs | jc --jobs
|
$ jobs | jc --jobs
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
$ jc jobs
|
|
||||||
|
|
||||||
Usage (module):
|
Usage (module):
|
||||||
|
|
||||||
import jc.parsers.jobs
|
import jc.parsers.jobs
|
||||||
|
BIN
man/jc.1.gz
BIN
man/jc.1.gz
Binary file not shown.
Reference in New Issue
Block a user