2014-09-05 23:28:14 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
2015-05-11 14:40:15 +00:00
|
|
|
"log"
|
2014-09-05 23:28:14 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Release struct {
|
|
|
|
Label string
|
|
|
|
Filename string
|
|
|
|
}
|
|
|
|
|
|
|
|
var SubCommand = flag.String("cmd", "", "Command: build or release")
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
flag.Parse()
|
|
|
|
switch *SubCommand {
|
|
|
|
case "build":
|
|
|
|
mainBuild()
|
|
|
|
case "release":
|
|
|
|
mainRelease()
|
2015-10-26 22:25:31 +00:00
|
|
|
case "integration":
|
|
|
|
mainIntegration()
|
2014-09-05 23:28:14 +00:00
|
|
|
default:
|
2015-05-11 14:40:15 +00:00
|
|
|
log.Fatalln("Unknown command:", *SubCommand)
|
2014-09-05 23:28:14 +00:00
|
|
|
}
|
|
|
|
}
|