Markus Pesch
6d9368e86c
changes: - sensor temperature add - sensor temperature list - sensor temperature rm - temperature get - temperature log - temperature push
24 lines
366 B
Go
24 lines
366 B
Go
package sensor
|
|
|
|
import (
|
|
"git.cryptic.systems/fh-trier/go-flucky/cmd/sensor/temperature"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var configDir string
|
|
|
|
var sensorCmd = &cobra.Command{
|
|
Use: "sensor",
|
|
Short: "Manage Sensors",
|
|
}
|
|
|
|
// Execute a
|
|
func InitCmd(cmd *cobra.Command, cnf string) {
|
|
configDir = cnf
|
|
|
|
cmd.AddCommand(sensorCmd)
|
|
|
|
temperature.InitCmd(sensorCmd, cnf)
|
|
|
|
}
|