2018-11-20 21:55:06 +00:00
|
|
|
package temperature
|
2018-11-07 19:07:15 +00:00
|
|
|
|
|
|
|
import (
|
2019-02-24 21:46:36 +00:00
|
|
|
"fmt"
|
|
|
|
|
2018-11-07 19:07:15 +00:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2019-06-13 19:25:32 +00:00
|
|
|
var cnfPath string
|
2018-11-20 21:55:06 +00:00
|
|
|
|
2018-11-07 19:07:15 +00:00
|
|
|
var temperatureCmd = &cobra.Command{
|
2019-02-24 21:46:36 +00:00
|
|
|
Use: "temperature",
|
2019-03-04 09:57:46 +00:00
|
|
|
Short: "Operate with temperature messures",
|
2019-02-24 21:46:36 +00:00
|
|
|
Example: fmt.Sprintf("flucky temperature read\nflucky temperature read outdoor"),
|
2018-11-07 19:07:15 +00:00
|
|
|
}
|
|
|
|
|
2018-11-19 21:36:21 +00:00
|
|
|
// Execute a
|
2019-06-13 19:25:32 +00:00
|
|
|
func InitCmd(cmd *cobra.Command, configPath string) {
|
|
|
|
cnfPath = configPath
|
2018-11-07 19:07:15 +00:00
|
|
|
cmd.AddCommand(temperatureCmd)
|
|
|
|
|
|
|
|
}
|