2018-11-28 17:07:20 +00:00
|
|
|
package sensor
|
|
|
|
|
2019-02-22 12:08:58 +00:00
|
|
|
// import (
|
|
|
|
// "log"
|
|
|
|
// "os"
|
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 quiet bool
|
2018-11-28 17:07:20 +00:00
|
|
|
|
2019-02-22 12:08:58 +00:00
|
|
|
// var listSensorCmd = &cobra.Command{
|
|
|
|
// Use: "ls",
|
|
|
|
// Short: "List Sensors",
|
|
|
|
// Aliases: []string{"list"},
|
|
|
|
// Run: func(cmd *cobra.Command, args []string) {
|
|
|
|
// if err := sensor.Print(os.Stdout, configDir, quiet); err != nil {
|
|
|
|
// log.Fatal(err)
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// //28-01143277168e
|
|
|
|
// }
|
2018-11-28 17:07:20 +00:00
|
|
|
|
2019-02-22 12:08:58 +00:00
|
|
|
// func init() {
|
|
|
|
// sensorCmd.AddCommand(listSensorCmd)
|
2018-11-28 17:07:20 +00:00
|
|
|
|
2019-02-22 12:08:58 +00:00
|
|
|
// listSensorCmd.Flags().BoolVarP(&quiet, "quiet", "q", false, "List only sensor id's")
|
|
|
|
// }
|