Markus Pesch
39b3a495ac
Changes: - The owner of the flucky binary must be root. To grant access to the binary and third party libs, for example wire1, gpio or i2c, the binary must have a sticky bit
24 lines
314 B
Go
24 lines
314 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
|
|
"github.com/Masterminds/semver"
|
|
"github.com/go-flucky/flucky/cmd"
|
|
)
|
|
|
|
var (
|
|
version string
|
|
)
|
|
|
|
func main() {
|
|
sversion, err := semver.NewVersion(version)
|
|
if err != nil {
|
|
log.Printf("The sematic versioning is invalid: %v", version)
|
|
os.Exit(1)
|
|
}
|
|
|
|
cmd.Execute(sversion)
|
|
}
|