mirror of
https://github.com/thegeeklab/wp-s3-action.git
synced 2024-11-22 01:00:40 +00:00
Set a proper version number
This commit is contained in:
parent
46897fbdf4
commit
de3352fe18
5
main.go
5
main.go
@ -1,6 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
@ -8,14 +9,14 @@ import (
|
|||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
var version string // build number set at compile-time
|
var build = "0" // build number set at compile-time
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = "s3 sync plugin"
|
app.Name = "s3 sync plugin"
|
||||||
app.Usage = "s3 sync plugin"
|
app.Usage = "s3 sync plugin"
|
||||||
app.Action = run
|
app.Action = run
|
||||||
app.Version = version
|
app.Version = fmt.Sprintf("1.0.%s", build)
|
||||||
app.Flags = []cli.Flag{
|
app.Flags = []cli.Flag{
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "access-key",
|
Name: "access-key",
|
||||||
|
Loading…
Reference in New Issue
Block a user