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

@ -1,7 +1,6 @@
package humidity
import (
"github.com/Masterminds/semver"
"github.com/spf13/cobra"
)
@ -9,8 +8,6 @@ var (
compression bool
configFile *string
round float64
version *semver.Version
)
var humidityCmd = &cobra.Command{
@ -19,9 +16,8 @@ var humidityCmd = &cobra.Command{
}
// Execute a
func InitCmd(cmd *cobra.Command, cnfFile *string, sversion *semver.Version) {
func InitCmd(cmd *cobra.Command, cnfFile *string) {
configFile = cnfFile
version = sversion
cmd.AddCommand(humidityCmd)