Change version/build naming to drone-plugins default
This commit is contained in:
parent
6cc86c6cc7
commit
ffff344c85
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user