24 lines
358 B
Go
24 lines
358 B
Go
package temperature
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var cfg string
|
|
|
|
var temperatureCmd = &cobra.Command{
|
|
Use: "temperature",
|
|
Short: "",
|
|
Example: fmt.Sprintf("flucky temperature read\nflucky temperature read outdoor"),
|
|
}
|
|
|
|
// Execute a
|
|
func InitCmd(cmd *cobra.Command, config string) {
|
|
cfg = config
|
|
|
|
cmd.AddCommand(temperatureCmd)
|
|
|
|
}
|