2018-11-20 21:55:06 +00:00
|
|
|
package temperature
|
|
|
|
|
2019-02-24 21:46:36 +00:00
|
|
|
// import (
|
|
|
|
// "log"
|
2018-11-20 21:55:06 +00:00
|
|
|
|
2019-02-24 21:46:36 +00:00
|
|
|
// "github.com/spf13/cobra"
|
|
|
|
// )
|
2018-11-20 21:55:06 +00:00
|
|
|
|
2019-02-24 21:46:36 +00:00
|
|
|
// var pushTemperatureCmd = &cobra.Command{
|
|
|
|
// Use: "push",
|
|
|
|
// Short: "push temperature from sensor to remote servers",
|
|
|
|
// Run: func(cmd *cobra.Command, args []string) {
|
2018-11-20 21:55:06 +00:00
|
|
|
|
2019-02-24 21:46:36 +00:00
|
|
|
// if err := temperature.Push(configDir); err != nil {
|
|
|
|
// log.Fatal(err)
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// }
|
2018-11-20 21:55:06 +00:00
|
|
|
|
2019-02-24 21:46:36 +00:00
|
|
|
// func init() {
|
|
|
|
// temperatureCmd.AddCommand(pushTemperatureCmd)
|
|
|
|
// }
|