fix: first temperature post request

This commit is contained in:
2018-11-07 20:07:15 +01:00
parent f0ad798e99
commit 41a6d4e7ee
64 changed files with 9200 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package temperature
import (
"log"
"os"
"git.cryptic.systems/fh-trier/go-flucky/pkg/temperature"
"github.com/spf13/cobra"
)
var temperatureCmd = &cobra.Command{
Use: "temperature",
Short: "temperature",
Run: func(cmd *cobra.Command, args []string) {
if err := temperature.Print(os.Stdout); err != nil {
log.Fatal(err)
}
},
}
func InitCmd(cmd *cobra.Command) {
cmd.AddCommand(temperatureCmd)
}