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:
parent
ff5cb8e864
commit
3c5d2e4661
1 changed files with 3 additions and 0 deletions
|
@ -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 ""
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue