PKGBUILD/cmd/humidity/humidity.go

21 lines
292 B
Go
Raw Normal View History

2018-12-04 18:11:50 +00:00
package humidity
import (
"github.com/spf13/cobra"
)
2019-06-15 12:25:45 +00:00
var configPath string
2018-12-04 18:11:50 +00:00
var humidityCmd = &cobra.Command{
Use: "humidity",
Short: "Read humidity from sensor",
}
// Execute a
2019-06-15 12:25:45 +00:00
func InitCmd(cmd *cobra.Command, cnfPath string) {
configPath = cnfPath
2018-12-04 18:11:50 +00:00
cmd.AddCommand(humidityCmd)
}