mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
add windows example
This commit is contained in:
@ -194,11 +194,16 @@ If a UTC timezone can be detected in the text of the command output, the timesta
|
|||||||
## Compatibility
|
## Compatibility
|
||||||
Some parsers like `dig`, `xml`, `csv`, etc. will work on any platform. Other parsers that convert platform-specific output will generate a warning message if they are run on an unsupported platform. To see all parser information, including compatibility, run `jc -ap`.
|
Some parsers like `dig`, `xml`, `csv`, etc. will work on any platform. Other parsers that convert platform-specific output will generate a warning message if they are run on an unsupported platform. To see all parser information, including compatibility, run `jc -ap`.
|
||||||
|
|
||||||
You may still use a parser on an unsupported platform - for example, you may want to parse a file with linux `lsof` output on an macOS laptop. In that case you can suppress the warning message with the `-q` cli option or the `quiet=True` function parameter in `parse()`:
|
You may still use a parser on an unsupported platform - for example, you may want to parse a file with linux `lsof` output on an macOS or Windows laptop. In that case you can suppress the warning message with the `-q` cli option or the `quiet=True` function parameter in `parse()`:
|
||||||
|
|
||||||
|
macOS:
|
||||||
```bash
|
```bash
|
||||||
cat lsof.out | jc --lsof -q
|
cat lsof.out | jc --lsof -q
|
||||||
```
|
```
|
||||||
|
or Windows:
|
||||||
|
```bash
|
||||||
|
type lsof.out | jc --lsof -q
|
||||||
|
```
|
||||||
|
|
||||||
Tested on:
|
Tested on:
|
||||||
- Centos 7.7
|
- Centos 7.7
|
||||||
@ -210,6 +215,8 @@ Tested on:
|
|||||||
- NixOS
|
- NixOS
|
||||||
- FreeBSD12
|
- FreeBSD12
|
||||||
- Windows 10
|
- Windows 10
|
||||||
|
- Windows 2016 Server
|
||||||
|
- Windows 2019 Server
|
||||||
|
|
||||||
## Contributions
|
## Contributions
|
||||||
Feel free to add/improve code or parsers! You can use the [`jc/parsers/foo.py`](https://github.com/kellyjonbrazil/jc/blob/master/jc/parsers/foo.py) parser as a template and submit your parser with a pull request.
|
Feel free to add/improve code or parsers! You can use the [`jc/parsers/foo.py`](https://github.com/kellyjonbrazil/jc/blob/master/jc/parsers/foo.py) parser as a template and submit your parser with a pull request.
|
||||||
|
Reference in New Issue
Block a user