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

27
main.go Normal file
View File

@ -0,0 +1,27 @@
package main
import (
"log"
"os"
"os/user"
"git.cryptic.systems/fh-trier/go-flucky/cmd"
)
var version string
func main() {
user, err := user.Current()
if err != nil {
panic(err)
}
if user.Uid != "0" {
log.Println("you need to be root to run this command")
os.Exit(1)
}
cmd.Execute(version)
}