23 lines
406 B
Go
23 lines
406 B
Go
package temperature
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var cnfPath string
|
|
|
|
var temperatureCmd = &cobra.Command{
|
|
Use: "temperature",
|
|
Short: "Operate with temperature messures",
|
|
Example: fmt.Sprintf("flucky temperature read\nflucky temperature read outdoor"),
|
|
}
|
|
|
|
// Execute a
|
|
func InitCmd(cmd *cobra.Command, configPath string) {
|
|
cnfPath = configPath
|
|
cmd.AddCommand(temperatureCmd)
|
|
|
|
}
|