Skip to content

Commit aa11675

Browse files
committed
chore: set version to v0.1.0
1 parent ed8ba36 commit aa11675

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

cmd/main.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ import (
1616
log "github.com/sirupsen/logrus"
1717
)
1818

19+
const (
20+
version = "v0.1.0"
21+
)
22+
1923
var (
2024
flags = []cli.Flag{
2125
&cli.StringFlag{
@@ -100,10 +104,11 @@ func start(ctx *cli.Context) error {
100104

101105
func Main(args []string) {
102106
app := cli.App{
103-
Name: "Docker Prometheus exporter",
104-
Usage: "Export Docker metrics to prometheus format",
105-
Action: start,
106-
Flags: flags,
107+
Name: "Docker Prometheus exporter",
108+
Usage: "Export Docker metrics to prometheus format",
109+
Action: start,
110+
Flags: flags,
111+
Version: version,
107112
}
108113

109114
if err := app.Run(args); err != nil {

0 commit comments

Comments
 (0)