diff --git a/docs/parsers/netstat.md b/docs/parsers/netstat.md index a5c7a0c0..5bf2013f 100644 --- a/docs/parsers/netstat.md +++ b/docs/parsers/netstat.md @@ -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 diff --git a/docs/parsers/ps.md b/docs/parsers/ps.md index e6042c1d..9f90a84d 100644 --- a/docs/parsers/ps.md +++ b/docs/parsers/ps.md @@ -8,6 +8,9 @@ Usage: - ef - axu +Compatibility: + 'linux', 'darwin', 'cygwin', 'aix', 'freebsd' + Examples: $ ps -ef | jc --ps -p diff --git a/docs/parsers/route.md b/docs/parsers/route.md index 8de6d98b..a1a34033 100644 --- a/docs/parsers/route.md +++ b/docs/parsers/route.md @@ -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 diff --git a/docs/parsers/ss.md b/docs/parsers/ss.md index ece7a0d3..01b078d9 100644 --- a/docs/parsers/ss.md +++ b/docs/parsers/ss.md @@ -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 diff --git a/docs/parsers/stat.md b/docs/parsers/stat.md index 4426e226..da13b9c8 100644 --- a/docs/parsers/stat.md +++ b/docs/parsers/stat.md @@ -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: diff --git a/docs/parsers/systemctl.md b/docs/parsers/systemctl.md index 32682f5f..c5a37fce 100644 --- a/docs/parsers/systemctl.md +++ b/docs/parsers/systemctl.md @@ -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 diff --git a/docs/parsers/systemctl_lj.md b/docs/parsers/systemctl_lj.md index 6d6515a7..34ce3a63 100644 --- a/docs/parsers/systemctl_lj.md +++ b/docs/parsers/systemctl_lj.md @@ -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 diff --git a/docs/parsers/systemctl_ls.md b/docs/parsers/systemctl_ls.md index 03f5f935..7540e4d6 100644 --- a/docs/parsers/systemctl_ls.md +++ b/docs/parsers/systemctl_ls.md @@ -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 diff --git a/docs/parsers/systemctl_luf.md b/docs/parsers/systemctl_luf.md index 65b5705d..7a7377cf 100644 --- a/docs/parsers/systemctl_luf.md +++ b/docs/parsers/systemctl_luf.md @@ -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 diff --git a/docs/parsers/uname.md b/docs/parsers/uname.md index ab725922..aad4fbf5 100644 --- a/docs/parsers/uname.md +++ b/docs/parsers/uname.md @@ -7,6 +7,9 @@ Usage: Limitations: must use 'uname -a' +Compatibility: + 'linux' + Example: $ uname -a | jc --uname -p diff --git a/docs/parsers/uptime.md b/docs/parsers/uptime.md index deabc3a3..c0cdf512 100644 --- a/docs/parsers/uptime.md +++ b/docs/parsers/uptime.md @@ -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 diff --git a/docs/parsers/w.md b/docs/parsers/w.md index b937ad0f..db77099a 100644 --- a/docs/parsers/w.md +++ b/docs/parsers/w.md @@ -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 diff --git a/jc/parsers/netstat.py b/jc/parsers/netstat.py index 5d077df6..9f13ab92 100644 --- a/jc/parsers/netstat.py +++ b/jc/parsers/netstat.py @@ -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 diff --git a/jc/parsers/ps.py b/jc/parsers/ps.py index 59646729..e6bea9db 100644 --- a/jc/parsers/ps.py +++ b/jc/parsers/ps.py @@ -7,6 +7,9 @@ Usage: - ef - axu +Compatibility: + 'linux', 'darwin', 'cygwin', 'aix', 'freebsd' + Examples: $ ps -ef | jc --ps -p diff --git a/jc/parsers/route.py b/jc/parsers/route.py index dafb5ded..acb6cdd3 100644 --- a/jc/parsers/route.py +++ b/jc/parsers/route.py @@ -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) diff --git a/jc/parsers/ss.py b/jc/parsers/ss.py index 00fc21d4..e2962bc7 100644 --- a/jc/parsers/ss.py +++ b/jc/parsers/ss.py @@ -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 diff --git a/jc/parsers/stat.py b/jc/parsers/stat.py index fd5a4f8e..28d4422a 100644 --- a/jc/parsers/stat.py +++ b/jc/parsers/stat.py @@ -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: diff --git a/jc/parsers/systemctl.py b/jc/parsers/systemctl.py index 7a589fc8..f6975f88 100644 --- a/jc/parsers/systemctl.py +++ b/jc/parsers/systemctl.py @@ -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 diff --git a/jc/parsers/systemctl_lj.py b/jc/parsers/systemctl_lj.py index bd1450f9..147f7727 100644 --- a/jc/parsers/systemctl_lj.py +++ b/jc/parsers/systemctl_lj.py @@ -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 diff --git a/jc/parsers/systemctl_ls.py b/jc/parsers/systemctl_ls.py index eab65bff..f13bdf7c 100644 --- a/jc/parsers/systemctl_ls.py +++ b/jc/parsers/systemctl_ls.py @@ -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 diff --git a/jc/parsers/systemctl_luf.py b/jc/parsers/systemctl_luf.py index 9b8e4aff..44e224ca 100644 --- a/jc/parsers/systemctl_luf.py +++ b/jc/parsers/systemctl_luf.py @@ -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 diff --git a/jc/parsers/uname.py b/jc/parsers/uname.py index da28c922..3d9fa8a8 100644 --- a/jc/parsers/uname.py +++ b/jc/parsers/uname.py @@ -6,6 +6,9 @@ Usage: Limitations: must use 'uname -a' +Compatibility: + 'linux' + Example: $ uname -a | jc --uname -p diff --git a/jc/parsers/uptime.py b/jc/parsers/uptime.py index 4c234780..a888eff6 100644 --- a/jc/parsers/uptime.py +++ b/jc/parsers/uptime.py @@ -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 diff --git a/jc/parsers/w.py b/jc/parsers/w.py index 65c0f866..a5f23d0d 100644 --- a/jc/parsers/w.py +++ b/jc/parsers/w.py @@ -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