PKGBUILD/cmd/temperature/temperature.go

21 lines
297 B
Go
Raw Normal View History

package temperature
2018-11-07 19:07:15 +00:00
import (
"github.com/spf13/cobra"
)
var configDir string
2018-11-07 19:07:15 +00:00
var temperatureCmd = &cobra.Command{
Use: "temperature",
2018-11-19 21:36:21 +00:00
Short: "Read temperature from sensor",
2018-11-07 19:07:15 +00:00
}
2018-11-19 21:36:21 +00:00
// Execute a
func InitCmd(cmd *cobra.Command, cnf string) {
configDir = cnf
2018-11-07 19:07:15 +00:00
cmd.AddCommand(temperatureCmd)
}