Skip to content

v0.5.0 — multiple input files

Choose a tag to compare

@github-actions github-actions released this 25 Jul 16:00
· 33 commits to main since this release

What's new

Multiple input files. cull now takes any number of files/URLs, so globs just work:

cull 'a' -a href pages/*.html          # links from every page, in order
cull 'img:not([alt])' -c site/*.html   # per-file counts: site/x.html:4
cull '.error' -l logs/*.html           # grep -l: names of matching files
  • New -l/--files-with-matches (grep -l semantics)
  • -c/--count prints file:count lines when given multiple inputs
  • -1/--first applies per input (like grep -m1)
  • -j --array merges matches from all inputs into a single JSON array
  • Unreadable inputs are reported on stderr and skipped; the rest still run (exit 2 at the end, like grep)
  • Auto --base still resolves per-input when inputs are URLs

95 tests. Install: cargo install cull, cargo binstall cull, brew install rashida-thorne/cull/cull, or the curl|sh installer.