Open diesl opened 1 year ago
I have no issue with new compression variants and options.
The issue with commands is that I am working to move this out of bash scripting into compiled (go). There have been too many issues with the logic in script, there are capabilities I want to add that are very difficult to do in shell, and I want to start offering this is a standalone binary on all OS/arch, not just a container.
Hi @deitch
similar to #220 and #197, I want to propse a new compression format
xz
. Maybe I will open a PR, but I have a few questions before:COMPRESS
andUNCOMPRESS
commands is quite easy, but how about more custom options? In this case, compression settings (-0
..-9
) or number of threads to use (-T
) to name a few where a good default is hard to guess. Would you accept someCOMPRESS_OPTIONS
andDECOMPRESS_OPTIONS
env variables?custom
compression format, where you could define a customCOMPRESS_COMMAND
andDECOMPRESS_COMMAND
? It could of course be combined with previously mentionedCOMPRESS_OPTIONS
andDECOMPRESS_OPTIONS
Example:
COMPRESSION=xz COMPRESS_OPTIONS=-z3 -T4 DECOMPRESS_OPTIONS=-d
COMPRESSION=custom COMPRESS_COMMAND=xz -z3 -T4 DECOMPRESS_COMMAND=xz -d