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

doc update

This commit is contained in:
Kelly Brazil
2021-04-05 17:14:33 -07:00
parent fd1ca82d86
commit 755b941a9a
3 changed files with 35 additions and 30 deletions

View File

@ -951,6 +951,29 @@ file * | jc --file -p # or: jc -p file *
} }
] ]
``` ```
### finger
```bash
finger | jc --finger -p # or: jc -p finger
```
```json
[
{
"login": "jdoe",
"name": "John Doe",
"tty": "*tty1",
"idle": "13d",
"login_time": "Mar 22 21:14"
},
{
"login": "jdoe",
"name": "John Doe",
"tty": "pts/0",
"idle": null,
"login_time": "Apr 5 15:33",
"details": "(192.168.1.22)"
}
]
```
### free ### free
```bash ```bash
free | jc --free -p # or: jc -p free free | jc --free -p # or: jc -p free

View File

@ -2,8 +2,6 @@
# jc.parsers.finger # jc.parsers.finger
jc - JSON CLI output utility `finger` command output parser jc - JSON CLI output utility `finger` command output parser
<<Short finger description and caveats>>
Usage (cli): Usage (cli):
$ finger | jc --finger $ finger | jc --finger
@ -66,19 +64,12 @@ Returns:
[ [
{ {
"login": "kbrazil", "login": string,
"name": "Kelly Brazil", "name": string,
"tty": "*tty1", "tty": string,
"idle": "13d", "idle": string, # null if empty
"login_time": "Mar 22 21:14" "login_time": string,
}, "details": string
{
"login": "kbrazil",
"name": "Kelly Brazil",
"tty": "pts/0",
"idle": null,
"login_time": "Apr 5 15:33",
"details": "(192.168.1.221)"
} }
] ]

View File

@ -1,7 +1,5 @@
"""jc - JSON CLI output utility `finger` command output parser """jc - JSON CLI output utility `finger` command output parser
<<Short finger description and caveats>>
Usage (cli): Usage (cli):
$ finger | jc --finger $ finger | jc --finger
@ -74,19 +72,12 @@ def process(proc_data):
[ [
{ {
"login": "kbrazil", "login": string,
"name": "Kelly Brazil", "name": string,
"tty": "*tty1", "tty": string,
"idle": "13d", "idle": string, # null if empty
"login_time": "Mar 22 21:14" "login_time": string,
}, "details": string
{
"login": "kbrazil",
"name": "Kelly Brazil",
"tty": "pts/0",
"idle": null,
"login_time": "Apr 5 15:33",
"details": "(192.168.1.221)"
} }
] ]
""" """