fix(cmd): remove obsolete semver

This commit is contained in:
2020-01-11 17:24:34 +01:00
parent 12246aae0c
commit 0261203395
8 changed files with 15 additions and 30 deletions

View File

@ -3,7 +3,6 @@ package compression
import (
"log"
"github.com/Masterminds/semver"
"github.com/go-flucky/flucky/pkg/storage"
"github.com/go-flucky/flucky/pkg/storage/logfile"
@ -13,7 +12,6 @@ import (
var (
configFile *string
round float64
version *semver.Version
)
var compressionCmd = &cobra.Command{
@ -42,9 +40,8 @@ var compressionCmd = &cobra.Command{
},
}
func InitCmd(cmd *cobra.Command, cnfFile *string, sverion *semver.Version) {
func InitCmd(cmd *cobra.Command, cnfFile *string) {
configFile = cnfFile
version = sverion
cmd.AddCommand(compressionCmd)
compressionCmd.Flags().Float64Var(&round, "round", 0, "Round values. The value 0 deactivates the function")