Simple brotli compression and decompression tool
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2022-09-21 19:47:14 +01:00
compress fix: fixes 2022-08-01 12:57:20 +01:00
decompress feat: initial implementation 2022-07-28 14:30:41 +01:00
.gitignore fix: -tar flag not working 2022-08-01 12:33:53 +01:00
go.mod feat: initial implementation 2022-07-28 14:30:41 +01:00
LICENSE Create LICENSE 2022-09-21 19:47:04 +01:00
main.go fix: -tar flag not working 2022-08-01 12:33:53 +01:00
README.md add README.md 2022-07-28 14:54:49 +01:00

btool ⚙️

This is a simple tool to automate compressing and decompressing .tar.br files concurrently. The tar command doesn't seem to have support for this, so I wrote a simple wee tool for myself.

This may be a bit buggy, really only made it for my use. If you use the tool in a path where a folder contains a dot, it'll probably break

Usage

Decompress files

In the current working directory, these files exist:

  • first.tar.br
  • second.tar.br
  • third.tar.br
btool -d *

Output:

  • first/
  • second/
  • third/
  • first.tar.br
  • second.tar.br
  • third.tar.br

Compress files

Without a flag set, the tool will compress files and folders that you specify as arguments into .tar.br files. This may take some time, brotli is much slower at compression than decompression.

I've attempted to speed this up by compressing each specified file in it's own goroutine.

In the current working directory, these folders exist:

  • first/
  • second/
  • third/
btool *

Output:

  • first/
  • second/
  • third/
  • first.tar.br
  • second.tar.br
  • third.tar.br