2018-11-20 21:55:06 +00:00
|
|
|
package temperature
|
2018-11-07 19:07:15 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2018-11-20 21:55:06 +00:00
|
|
|
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
|
2018-11-20 21:55:06 +00:00
|
|
|
func InitCmd(cmd *cobra.Command, cnf string) {
|
|
|
|
configDir = cnf
|
2018-11-07 19:07:15 +00:00
|
|
|
|
|
|
|
cmd.AddCommand(temperatureCmd)
|
|
|
|
|
|
|
|
}
|