uptime
--uptimev1.5.0Converts `uptime` command output to JSON
LinuxmacOSFreeBSDcommand
$ uptime | jc-rs --uptimeA real pair
From the reference corpus (osx-10.11.6/uptime.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.
uptimeosx-10.11.6
10:09 up 3 mins, 3 users, load averages: 5.63 7.26 3.53
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
{ "time": "10:09", "uptime": "3 mins", "users": 3, "load_1m": 5.63, "load_5m": 7.26, "load_15m": 3.53, "time_hour": 10, "time_minute": 9, "time_second": null, "uptime_days": 0, "uptime_hours": 0, "uptime_minutes": 3, "uptime_total_seconds": 180 }
Fixture coverage
4/4oracle-valid pairs match under the published structural JSON comparison
Magic syntax
jc-rs uptimejc-rs runs the command itself and parses what it prints. Recognised for: `uptime`Source: crates/jc-rs-parsers/src/system/uptime.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