PKGBUILD/cmd/humidity/humidity.go

21 lines
282 B
Go
Raw Normal View History

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