wofr06 / lesspipe

lesspipe - display more with less
GNU General Public License v2.0
484 stars 51 forks source link

Add support for Device Tree Blob #130

Closed caramelhooves closed 1 year ago

caramelhooves commented 1 year ago

Device Tree Blob is a binary format used by Linux kernel to represent Device Trees. It could be converted into a human-readable text using device tree compiler or dtc for short.

Use dtc to show DTB in a human-readable form. Any errors/warnings produced by dtc during conversion are appended to the dtc output.

wofr06 commented 1 year ago

While the code looks good, the added colorize lines do not pass the shellcheck. Please correct. The function has_colorizer does not check (yet) whether there is a algorithm for colorizing a given file. Therefore the 3rd commit selects for me the colorizer bat, which does not color the dts tree and I believe this commit is not required and probably not working as intended.

wofr06 commented 1 year ago

Colorizing commit needs to be reviewed