Change version/build naming to drone-plugins default

This commit is contained in:
cbrgm 2018-08-08 16:04:06 +02:00
parent 6cc86c6cc7
commit ffff344c85

View File

@ -9,15 +9,17 @@ import (
"github.com/urfave/cli"
)
var build = "0" // build number set at compile-time
var version = "2.0"
var (
version = "0.0.0"
build = "0"
)
func main() {
app := cli.NewApp()
app.Name = "hugo plugin"
app.Usage = "hugo plugin"
app.Action = run
app.Version = fmt.Sprintf("%s build %s", version, build)
app.Version = fmt.Sprintf("%s+%s", version, build)
app.Flags = []cli.Flag{
cli.BoolFlag{
Name: "buildDrafts",