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

add dir parser

This commit is contained in:
Kelly Brazil
2021-04-02 12:01:23 -07:00
parent 9559c85057
commit 283433578d
2 changed files with 46 additions and 0 deletions

View File

@ -709,6 +709,51 @@ dig -x 1.1.1.1 | jc --dig -p # or: jc -p dig -x 1.1.1.1
}
]
```
### dir
```bash
dir | jc --dir -p # or: jc -p dir
```
```json
[
{
"date": "03/24/2021",
"time": "03:15 PM",
"dir": true,
"size": null,
"filename": ".",
"parent": "C:\\Program Files\\Internet Explorer",
"epoch": 1616624100
},
{
"date": "03/24/2021",
"time": "03:15 PM",
"dir": true,
"size": null,
"filename": "..",
"parent": "C:\\Program Files\\Internet Explorer",
"epoch": 1616624100
},
{
"date": "12/07/2019",
"time": "02:49 AM",
"dir": true,
"size": null,
"filename": "en-US",
"parent": "C:\\Program Files\\Internet Explorer",
"epoch": 1575715740
},
{
"date": "12/07/2019",
"time": "02:09 AM",
"dir": false,
"size": 54784,
"filename": "ExtExport.exe",
"parent": "C:\\Program Files\\Internet Explorer",
"epoch": 1575713340
}
]
```
### dmidecode
```bash
dmidecode | jc --dmidecode -p # or: jc -p dmidecode

View File

@ -136,6 +136,7 @@ The JSON output can be compact (default) or pretty formatted with the `-p` optio
- `--date` enables the `date` command parser
- `--df` enables the `df` command parser
- `--dig` enables the `dig` command parser
- `--dir` enables the `dir` command parser (Windows)
- `--dmidecode` enables the `dmidecode` command parser
- `--dpkg-l` enables the `dpkg -l` command parser
- `--du` enables the `du` command parser