We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ec1f4b commit e9f2ca4Copy full SHA for e9f2ca4
cmd/urfave-cli-genflags/Makefile
@@ -1,6 +1,9 @@
1
+GOIMPORTS_BIN ?= $(shell which goimports || true)
2
GOTEST_FLAGS ?= -v --coverprofile main.coverprofile --covermode count --cover github.com/urfave/cli/v2/cmd/urfave-cli-genflags
3
GOBUILD_FLAGS ?= -x
4
5
+export GOIMPORTS_BIN
6
+
7
.PHONY: all
8
all: test build smoke-test
9
cmd/urfave-cli-genflags/main.go
@@ -94,8 +94,9 @@ func main() {
94
Value: "cli.",
95
},
96
&cli.PathFlag{
97
- Name: "goimports",
98
- Value: filepath.Join(top, ".local/bin/goimports"),
+ Name: "goimports",
+ EnvVars: []string{"GOIMPORTS_BIN"},
99
+ Value: filepath.Join(top, ".local/bin/goimports"),
100
101
102
Action: runGenFlags,
0 commit comments