2018-11-28 17:07:20 +00:00
|
|
|
package sensor
|
|
|
|
|
2019-02-22 12:08:58 +00:00
|
|
|
// import (
|
|
|
|
// "log"
|
2018-11-28 17:07:20 +00:00
|
|
|
|
2019-02-22 12:08:58 +00:00
|
|
|
// "git.cryptic.systems/fh-trier/go-flucky/pkg/sensor"
|
|
|
|
// "github.com/spf13/cobra"
|
|
|
|
// )
|
2018-11-28 17:07:20 +00:00
|
|
|
|
2019-02-22 12:08:58 +00:00
|
|
|
// var enableSensorCmd = &cobra.Command{
|
|
|
|
// Use: "enable",
|
|
|
|
// Short: "Enable Sensor",
|
|
|
|
// Args: cobra.ExactArgs(1),
|
|
|
|
// Run: func(cmd *cobra.Command, args []string) {
|
2018-11-28 17:07:20 +00:00
|
|
|
|
2019-02-22 12:08:58 +00:00
|
|
|
// if err := sensor.Enable(args[0], configDir); err != nil {
|
|
|
|
// log.Fatal(err)
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// }
|
2018-11-28 17:07:20 +00:00
|
|
|
|
2019-02-22 12:08:58 +00:00
|
|
|
// func init() {
|
|
|
|
// sensorCmd.AddCommand(enableSensorCmd)
|
|
|
|
// }
|