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
```bash
free | jc --free -p # or: jc -p free

View File

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

View File

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