add support for xz compression

This adds xz as a compression option.
xz is alread supported by bsdtar without the external xz program.
This commit is contained in:
unclejack 2013-04-02 02:16:28 +03:00
parent ff5cb8e864
commit 3c5d2e4661
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@ const (
Uncompressed Compression = iota Uncompressed Compression = iota
Bzip2 Bzip2
Gzip Gzip
Xz
) )
func (compression *Compression) Flag() string { func (compression *Compression) Flag() string {
@ -23,6 +24,8 @@ func (compression *Compression) Flag() string {
return "j" return "j"
case Gzip: case Gzip:
return "z" return "z"
case Xz:
return "J"
} }
return "" return ""
} }