parent
9cffef50b0
commit
4fb47a833a
2
Makefile
2
Makefile
|
|
@ -2,7 +2,7 @@ ORG ?= $(shell basename $(realpath ..))
|
||||||
PKGS := $(shell go list ./... | grep -v /vendor/)
|
PKGS := $(shell go list ./... | grep -v /vendor/)
|
||||||
|
|
||||||
build:
|
build:
|
||||||
go build ${TARGETS}
|
go build -ldflags '-X github.com/roboll/helmfile/pkg/app/version.Version=${TAG}' ${TARGETS}
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
|
|
||||||
generate:
|
generate:
|
||||||
|
|
|
||||||
9
main.go
9
main.go
|
|
@ -486,6 +486,15 @@ func main() {
|
||||||
return run.ListReleases(c)
|
return run.ListReleases(c)
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Usage: "Show the version for Helmfile.",
|
||||||
|
ArgsUsage: "[command]",
|
||||||
|
Action: func(c *cli.Context) error {
|
||||||
|
cli.ShowVersion(c)
|
||||||
|
return nil
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
err := cliApp.Run(os.Args)
|
err := cliApp.Run(os.Args)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue