w
--wv1.5.0Converts `w` command output to JSON
LinuxmacOSFreeBSDcommandslurpable
$ w | jc-rs --wA real pair
From the reference corpus (centos-7.7/w.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.
wcentos-7.7
10:25:20 up 16:03, 2 users, load average: 0.00, 0.01, 0.05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT kbrazil ttyS0 Fri18 32:16 2.66s 2.66s -bash kbrazil pts/0 192.168.71.1 09:53 8.00s 0.10s 0.00s w
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[ { "user": "kbrazil", "tty": "ttyS0", "from": null, "login_at": "Fri18", "idle": "32:16", "jcpu": "2.66s", "pcpu": "2.66s", "what": "-bash" }, { "user": "kbrazil", "tty": "pts/0", "from": "192.168.71.1", "login_at": "09:53", "idle": "8.00s", "jcpu": "0.10s", "pcpu": "0.00s", "what": "w" } ]
Fixture coverage
5/5oracle-valid pairs match under the published structural JSON comparison
Magic syntax
jc-rs wjc-rs runs the command itself and parses what it prints. Recognised for: `w`Source: crates/jc-rs-parsers/src/system/w.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare