Skip to content
jc-rs
GitHub

lsb-release

--lsb-releasev1.2.0

Converts `lsb_release` command output to JSON

LinuxmacOSFreeBSDcommand
$ lsb_release | jc-rs --lsb-release

A real pair

From the reference corpus (generic/lsb_release-a.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.

lsb_releasegeneric
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.6 LTS
Release:	16.04
Codename:	xenial
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
{
  "Distributor ID": "Ubuntu",
  "Description": "Ubuntu 16.04.6 LTS",
  "Release": "16.04",
  "Codename": "xenial"
}

Fixture coverage

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

Magic syntax

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

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