PKGBUILD/cmd/humidity/humidity.go

29 lines
448 B
Go
Raw Normal View History

2018-12-04 18:11:50 +00:00
package humidity
import (
"github.com/Masterminds/semver"
2018-12-04 18:11:50 +00:00
"github.com/spf13/cobra"
)
var (
compression bool
configFile *string
round float64
version *semver.Version
)
2018-12-04 18:11:50 +00:00
var humidityCmd = &cobra.Command{
Use: "humidity",
Short: "Operates with humidity values",
2018-12-04 18:11:50 +00:00
}
// Execute a
func InitCmd(cmd *cobra.Command, cnfFile *string, sversion *semver.Version) {
configFile = cnfFile
version = sversion
2018-12-04 18:11:50 +00:00
cmd.AddCommand(humidityCmd)
}