How kojix2/wombat works
Wombat is a small Crystal binding for bat-c, exposing syntax-highlighted strings and file output, plus the installed bat-c version. The documented user flow is to call Wombat’s API, which provides bat-backed highlighting; file output may invoke less. Source excerpts were unavailable, so relationships are limited to those described in the README.
Main entry points: wombat.cr Wombat API · lib_bat.cr bat-c binding · version.cr Version access
Components 7
Other components
- Crystal caller
- Wombat API
src/wombat.cr - bat-c binding
src/wombat/lib_bat.cr - bat-c library
- bat highlighter
- less pager
- Version access
src/wombat/version.cr
Connections 6
- Crystal caller → Wombat API: calls highlighting
README.md - Wombat API → bat-c binding: uses binding
README.md - bat-c binding → bat-c library: wraps
README.md - bat-c library → bat highlighter: wraps
README.md - bat highlighter → less pager: invokes for files
README.md - Crystal caller → Version access: checks version
README.md