Move compression format slice variable from root.go => index.go
This commit is contained in:
parent
56c6565cb1
commit
e13c141c5c
11
cmd/index.go
11
cmd/index.go
|
@ -24,6 +24,17 @@ import (
|
|||
"seedno.de/seednode/roulette/types"
|
||||
)
|
||||
|
||||
var CompressionFormats = []string{
|
||||
"flate",
|
||||
"gzip",
|
||||
"lz4",
|
||||
"lzw",
|
||||
"none",
|
||||
"snappy",
|
||||
"zlib",
|
||||
"zstd",
|
||||
}
|
||||
|
||||
type fileIndex struct {
|
||||
mutex *sync.RWMutex
|
||||
list []string
|
||||
|
|
13
cmd/root.go
13
cmd/root.go
|
@ -17,7 +17,7 @@ import (
|
|||
|
||||
const (
|
||||
AllowedCharacters string = `^[A-z0-9.\-_]+$`
|
||||
ReleaseVersion string = "4.0.4"
|
||||
ReleaseVersion string = "4.0.5"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -63,17 +63,6 @@ var (
|
|||
Version bool
|
||||
Videos bool
|
||||
|
||||
CompressionFormats = []string{
|
||||
"flate",
|
||||
"gzip",
|
||||
"lz4",
|
||||
"lzw",
|
||||
"none",
|
||||
"snappy",
|
||||
"zlib",
|
||||
"zstd",
|
||||
}
|
||||
|
||||
RequiredArgs = []string{
|
||||
"all",
|
||||
"audio",
|
||||
|
|
Loading…
Reference in New Issue