fix(pkg/config): converter for humidity and temperature sensors

This commit is contained in:
2019-06-15 13:56:41 +02:00
parent 662e1dcfa9
commit 2843d96756
7 changed files with 50 additions and 39 deletions

View File

@ -10,9 +10,9 @@ import (
)
var listSensorCmd = &cobra.Command{
Use: "ls",
Use: "list",
Short: "List Sensors",
Aliases: []string{"list"},
Aliases: []string{"ls"},
Run: func(cmd *cobra.Command, args []string) {
// read configuration
fc, err := config.Read(cfg)

View File

@ -8,10 +8,10 @@ import (
)
var rmSensorCmd = &cobra.Command{
Use: "rm",
Use: "remove",
Short: "Remove Sensor",
Example: "flucky sensor rm outdoor",
Aliases: []string{"remove"},
Aliases: []string{"rm"},
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
// read configuration