You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
498 B
Go

9 years ago
package main
import (
. "github.com/josebarn/drone-with-go/api"
"github.com/urfave/cli"
"log"
"os"
)
9 years ago
func main() {
app := cli.NewApp()
var redis_url string
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "redis, r",
Usage: "redis server uri",
Destination: &redis_url,
},
}
app.Action = func(c *cli.Context) error {
if len(redis_url) <= 0 {
log.Println("not using redis server")
}
ApiInit()
return nil
}
app.HideVersion = true
9 years ago
app.Run(os.Args)
9 years ago
}