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

View file

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