Skip to content
jc-rs
GitHub

lsattr

--lsattrv1.0.0

Converts `lsattr` command output to JSON

Linuxcommand
$ lsattr | jc-rs --lsattr

A real pair

From the reference corpus (ubuntu-20.04/lsattr-error.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.

lsattrubuntu-20.04
lsattr: Operation not supported While reading flags on /etc/apache2/mods-enabled/autoindex.load
expected outputjson
[]

Fixture coverage

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

Magic syntax

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

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