25 lines
343 B
Go
25 lines
343 B
Go
package humidity
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
compression bool
|
|
configFile *string
|
|
round float64
|
|
)
|
|
|
|
var humidityCmd = &cobra.Command{
|
|
Use: "humidity",
|
|
Short: "Operates with humidity values",
|
|
}
|
|
|
|
// Execute a
|
|
func InitCmd(cmd *cobra.Command, cnfFile *string) {
|
|
configFile = cnfFile
|
|
|
|
cmd.AddCommand(humidityCmd)
|
|
|
|
}
|