Skip to content
jc-rs
GitHub

acpi

--acpiv1.7.0

Converts `acpi` command output to JSON

Linuxcommand
$ acpi | jc-rs --acpi

A real pair

From the reference corpus (generic/acpi-not-charging.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.

acpigeneric
Battery 0: Not charging, 100%
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "type": "Battery",
    "id": 0,
    "state": "Not charging",
    "charge_percent": 100
  }
]

Fixture coverage

7/7oracle-valid pairs match under the published structural JSON comparison

Magic syntax

jc-rs acpijc-rs runs the command itself and parses what it prints. Recognised for: `acpi`

Source: crates/jc-rs-parsers/src/system/acpi.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