mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-08-08 22:36:48 +02:00
add compatibility to docs
This commit is contained in:
@ -4,6 +4,9 @@ jc - JSON CLI output utility netstat Parser
|
||||
Usage:
|
||||
Specify --netstat as the first argument if the piped input is coming from netstat
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
$ sudo netstat -apee | jc --netstat -p
|
||||
|
@ -8,6 +8,9 @@ Usage:
|
||||
- ef
|
||||
- axu
|
||||
|
||||
Compatibility:
|
||||
'linux', 'darwin', 'cygwin', 'aix', 'freebsd'
|
||||
|
||||
Examples:
|
||||
|
||||
$ ps -ef | jc --ps -p
|
||||
|
@ -4,6 +4,9 @@ jc - JSON CLI output utility route Parser
|
||||
Usage:
|
||||
specify --route as the first argument if the piped input is coming from route
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
$ route -ee | jc --route -p
|
||||
|
@ -7,6 +7,9 @@ Usage:
|
||||
Limitations:
|
||||
Extended information options like -e and -p are not supported and may cause parsing irregularities
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
$ sudo ss -a | jc --ss -p
|
||||
|
@ -2,7 +2,10 @@
|
||||
jc - JSON CLI output utility stats Parser
|
||||
|
||||
Usage:
|
||||
specify --stats as the first argument if the piped input is coming from stats
|
||||
specify --stat as the first argument if the piped input is coming from stat
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
|
@ -4,6 +4,9 @@ jc - JSON CLI output utility systemctl Parser
|
||||
Usage:
|
||||
specify --systemctl as the first argument if the piped input is coming from systemctl
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
$ systemctl -a | jc --systemctl -p
|
||||
|
@ -4,6 +4,9 @@ jc - JSON CLI output utility systemctl-lj Parser
|
||||
Usage:
|
||||
specify --systemctl-lj as the first argument if the piped input is coming from systemctl list-jobs
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
$ systemctl list-jobs| jc --systemctl-lj -p
|
||||
|
@ -4,6 +4,9 @@ jc - JSON CLI output utility systemctl-ls Parser
|
||||
Usage:
|
||||
specify --systemctl-ls as the first argument if the piped input is coming from systemctl list-sockets
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
$ systemctl list-sockets | jc --systemctl-ls -p
|
||||
|
@ -4,6 +4,9 @@ jc - JSON CLI output utility systemctl-luf Parser
|
||||
Usage:
|
||||
specify --systemctl-luf as the first argument if the piped input is coming from systemctl list-unit-files
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
$ systemctl list-unit-files | jc --systemctl-luf -p
|
||||
|
@ -7,6 +7,9 @@ Usage:
|
||||
Limitations:
|
||||
must use 'uname -a'
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Example:
|
||||
|
||||
$ uname -a | jc --uname -p
|
||||
|
@ -4,6 +4,9 @@ jc - JSON CLI output utility uptime Parser
|
||||
Usage:
|
||||
specify --uptime as the first argument if the piped input is coming from uptime
|
||||
|
||||
Compatibility:
|
||||
'linux', 'darwin', 'cygwin', 'aix', 'freebsd'
|
||||
|
||||
Example:
|
||||
|
||||
$ uptime | jc --uptime -p
|
||||
|
@ -4,6 +4,9 @@ jc - JSON CLI output utility w Parser
|
||||
Usage:
|
||||
specify --w as the first argument if the piped input is coming from w
|
||||
|
||||
Compatibility:
|
||||
'linux', 'darwin', 'cygwin', 'aix', 'freebsd'
|
||||
|
||||
Examples:
|
||||
|
||||
$ w | jc --w -p
|
||||
|
@ -3,6 +3,9 @@
|
||||
Usage:
|
||||
Specify --netstat as the first argument if the piped input is coming from netstat
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
$ sudo netstat -apee | jc --netstat -p
|
||||
|
@ -7,6 +7,9 @@ Usage:
|
||||
- ef
|
||||
- axu
|
||||
|
||||
Compatibility:
|
||||
'linux', 'darwin', 'cygwin', 'aix', 'freebsd'
|
||||
|
||||
Examples:
|
||||
|
||||
$ ps -ef | jc --ps -p
|
||||
|
@ -3,6 +3,9 @@
|
||||
Usage:
|
||||
specify --route as the first argument if the piped input is coming from route
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
$ route -ee | jc --route -p
|
||||
@ -151,7 +154,7 @@ def parse(data, raw=False, quiet=False):
|
||||
"""
|
||||
|
||||
# compatible options: linux, darwin, cygwin, win32, aix, freebsd
|
||||
compatible = ['linux', 'aix', 'freebsd']
|
||||
compatible = ['linux']
|
||||
|
||||
if not quiet:
|
||||
jc.utils.compatibility(__name__, compatible)
|
||||
|
@ -6,6 +6,9 @@ Usage:
|
||||
Limitations:
|
||||
Extended information options like -e and -p are not supported and may cause parsing irregularities
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
$ sudo ss -a | jc --ss -p
|
||||
|
@ -1,7 +1,10 @@
|
||||
"""jc - JSON CLI output utility stats Parser
|
||||
|
||||
Usage:
|
||||
specify --stats as the first argument if the piped input is coming from stats
|
||||
specify --stat as the first argument if the piped input is coming from stat
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
|
@ -3,6 +3,9 @@
|
||||
Usage:
|
||||
specify --systemctl as the first argument if the piped input is coming from systemctl
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
$ systemctl -a | jc --systemctl -p
|
||||
|
@ -3,6 +3,9 @@
|
||||
Usage:
|
||||
specify --systemctl-lj as the first argument if the piped input is coming from systemctl list-jobs
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
$ systemctl list-jobs| jc --systemctl-lj -p
|
||||
|
@ -3,6 +3,9 @@
|
||||
Usage:
|
||||
specify --systemctl-ls as the first argument if the piped input is coming from systemctl list-sockets
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
$ systemctl list-sockets | jc --systemctl-ls -p
|
||||
|
@ -3,6 +3,9 @@
|
||||
Usage:
|
||||
specify --systemctl-luf as the first argument if the piped input is coming from systemctl list-unit-files
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Examples:
|
||||
|
||||
$ systemctl list-unit-files | jc --systemctl-luf -p
|
||||
|
@ -6,6 +6,9 @@ Usage:
|
||||
Limitations:
|
||||
must use 'uname -a'
|
||||
|
||||
Compatibility:
|
||||
'linux'
|
||||
|
||||
Example:
|
||||
|
||||
$ uname -a | jc --uname -p
|
||||
|
@ -3,6 +3,9 @@
|
||||
Usage:
|
||||
specify --uptime as the first argument if the piped input is coming from uptime
|
||||
|
||||
Compatibility:
|
||||
'linux', 'darwin', 'cygwin', 'aix', 'freebsd'
|
||||
|
||||
Example:
|
||||
|
||||
$ uptime | jc --uptime -p
|
||||
|
@ -3,6 +3,9 @@
|
||||
Usage:
|
||||
specify --w as the first argument if the piped input is coming from w
|
||||
|
||||
Compatibility:
|
||||
'linux', 'darwin', 'cygwin', 'aix', 'freebsd'
|
||||
|
||||
Examples:
|
||||
|
||||
$ w | jc --w -p
|
||||
|
Reference in New Issue
Block a user