Markus Pesch
6d9368e86c
changes: - sensor temperature add - sensor temperature list - sensor temperature rm - temperature get - temperature log - temperature push
21 lines
297 B
Go
21 lines
297 B
Go
package temperature
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var configDir string
|
|
|
|
var temperatureCmd = &cobra.Command{
|
|
Use: "temperature",
|
|
Short: "Read temperature from sensor",
|
|
}
|
|
|
|
// Execute a
|
|
func InitCmd(cmd *cobra.Command, cnf string) {
|
|
configDir = cnf
|
|
|
|
cmd.AddCommand(temperatureCmd)
|
|
|
|
}
|