lzfsec¶
A pure-Go CLI wrapper around go-compressions/lzfse — Apple's
LZFSE / LZVN compression formats on the command line.
Repository →
Commands¶
-i/--inputdefaults to stdin.-o/--outputdefaults to stdout.-v/--verbose(persistent) prints a summary line to stderr with byte counts, compression ratio (forcompress), and elapsed time:
Without -v both sub-commands stay silent so the binary output on stdout is
safe to pipe.
Examples¶
# Compress a file to disk.
lzfsec compress -i big.bin -o big.bin.lzfse
# Round-trip through a pipe.
cat big.bin | lzfsec compress | lzfsec decompress > restored.bin
# Show timing + ratio.
lzfsec -v compress -i big.bin -o big.bin.lzfse
Build¶
Coverage¶
task test reports 100% statement coverage (cover.out) across the four
sub-packages:
| Package | Role |
|---|---|
cmd/lzfsec |
main and cobra root command |
cmd/lzfsec/compress |
compress sub-command |
cmd/lzfsec/decompress |
decompress sub-command |
cmd/lzfsec/internal/cmdio |
shared stdin/stdout/file IO helpers |
The package ships a Taskfile (task lint|build|test|ci)
used by both local development and CI; Renovate auto-merges patch/minor gomod
updates.
License¶
BSD-3-Clause.