github riquito/tuc v1.3.0

13 hours ago

Changes

  • perf: much faster (2x to 5x depending on the workload)
    • detect and apply better algorithms before starting
    • mmap support
  • feat: you can now pass a file path as argument to tuc
  • feat: add the ability to display fallback output when a field is out of bound
    (you can set it per-field using -f <range>=somefallback or by providing
    a default fallback with --fallback-oob somefallback)
    (it will be opened with mmap if available and as long as --no-mmap is not set)
  • feat: it is now possible to type \t while formatting fields and
    output a TAB (as we already do for \n) e.g. -f '{1}\t{2}'
  • feat: new argument --fixed-memory (-M) to cut lines in chunks of
    a fixed size (in kilobytes), to allow cutting arbitrary long lines
  • feat: --characters now depends on the (default) regex feature
  • feat: ignore broken pipe when feeding output to tools such as head
  • feat: display short help when run without arguments
  • feat: help and short help are colored, as long as output is a tty and
    unless env var TERM=dumb or NO_COLOR (any value) is set
  • chore: --json internally uses serde_json, faster and more precise
  • chore: improved test coverage

Don't miss a new tuc release

NewReleases is sending notifications on new releases.