fstab
--fstabv1.5.0Converts `/etc/fstab` file content to JSON
LinuxmacOSFreeBSDfileslurpable
$ cat input.txt | jc-rs --fstabA real pair
From the reference corpus (ubuntu-18.04/fstab.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.
fstabubuntu-18.04
UUID=011527a0-c72a-4c00-a50e-ee90da26b6e2 / ext4 defaults 0 0 /swap.img none swap sw 0 0 # this is a comment
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[ { "fs_spec": "UUID=011527a0-c72a-4c00-a50e-ee90da26b6e2", "fs_file": "/", "fs_vfstype": "ext4", "fs_mntops": "defaults", "fs_freq": 0, "fs_passno": 0 }, { "fs_spec": "/swap.img", "fs_file": "none", "fs_vfstype": "swap", "fs_mntops": "sw", "fs_freq": 0, "fs_passno": 0 } ]
Fixture coverage
2/2oracle-valid pairs match under the published structural JSON comparison
Magic syntax
not availableThis parser reads a file or a string rather than a command, so there is nothing for jc-rs to run. Pipe it in.
Source: crates/jc-rs-parsers/src/misc/fstab.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