Skip to content
jc-rs
GitHub

nmcli

--nmcliv1.2.0

Converts `nmcli` command output to JSON

Linuxcommand
$ nmcli | jc-rs --nmcli

A real pair

From the reference corpus (centos-7.7/nmcli-connection.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.

nmclicentos-7.7
NAME   UUID                                  TYPE      DEVICE 
ens33  d92ece08-9e02-47d5-b2d2-92c80e155744  ethernet  ens33  
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "name": "ens33",
    "uuid": "d92ece08-9e02-47d5-b2d2-92c80e155744",
    "type": "ethernet",
    "device": "ens33"
  }
]

Fixture coverage

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

Magic syntax

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

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