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"
|
"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",
|
||||||
|
Loading…
Reference in New Issue
Block a user