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" "github.com/urfave/cli"
) )
var build = "0" // build number set at compile-time var (
var version = "2.0" version = "0.0.0"
build = "0"
)
func main() { func main() {
app := cli.NewApp() app := cli.NewApp()
app.Name = "hugo plugin" app.Name = "hugo plugin"
app.Usage = "hugo plugin" app.Usage = "hugo plugin"
app.Action = run app.Action = run
app.Version = fmt.Sprintf("%s build %s", version, build) app.Version = fmt.Sprintf("%s+%s", version, build)
app.Flags = []cli.Flag{ app.Flags = []cli.Flag{
cli.BoolFlag{ cli.BoolFlag{
Name: "buildDrafts", Name: "buildDrafts",