Skip to content
jc-rs
GitHub

uname

--unamev1.8.0

Converts `uname -a` command output to JSON

LinuxmacOSFreeBSDcommandslurpable
$ uname | jc-rs --uname

A real pair

From the reference corpus (freebsd12/uname-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.

unamefreebsd12
FreeBSD freebsd 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC  amd64
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
{
  "machine": "amd64",
  "kernel_name": "FreeBSD",
  "node_name": "freebsd",
  "kernel_release": "12.1-RELEASE",
  "kernel_version": "FreeBSD 12.1-RELEASE r354233 GENERIC"
}

Fixture coverage

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

Magic syntax

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

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