upower
--upowerv1.4.0Converts `upower` command output to JSON
Linuxcommand
$ upower | jc-rs --upowerA real pair
From the reference corpus (ubuntu-18.04/upower-i.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.
upowerubuntu-18.04
native-path: ACAD power supply: yes updated: Thu 11 Mar 2021 06:28:08 PM UTC (442049 seconds ago) has history: no has statistics: no line-power warning-level: none online: yes icon-name: 'ac-adapter-symbolic'
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[ { "native_path": "ACAD", "power_supply": true, "updated": "Thu 11 Mar 2021 06:28:08 PM UTC", "has_history": false, "has_statistics": false, "detail": { "type": "line-power", "warning_level": null, "online": true, "icon_name": "ac-adapter-symbolic" }, "updated_seconds_ago": 442049, "updated_epoch": 1615516088, "updated_epoch_utc": 1615487288 } ]
Fixture coverage
6/6oracle-valid pairs match under the published structural JSON comparison
Magic syntax
jc-rs upowerjc-rs runs the command itself and parses what it prints. Recognised for: `upower`Source: crates/jc-rs-parsers/src/system/upower.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