summaryrefslogtreecommitdiff
path: root/vendor/github.com/spf13/cobra/Makefile
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-03-30 17:47:28 +0200
committerGitHub <noreply@github.com>2020-03-30 17:47:28 +0200
commitc77a57ff2c92f6ae5e8551b687f14884ade6e723 (patch)
tree49e422a5186de16c1ce3e9324837ba2e289c437d /vendor/github.com/spf13/cobra/Makefile
parent0fa01c8bf82a69d9c923fa982b70b72fade84be6 (diff)
parent16fa9b6a0baed65ad31ff442255a4d16ccbfcb31 (diff)
downloadpodman-c77a57ff2c92f6ae5e8551b687f14884ade6e723.tar.gz
podman-c77a57ff2c92f6ae5e8551b687f14884ade6e723.tar.bz2
podman-c77a57ff2c92f6ae5e8551b687f14884ade6e723.zip
Merge pull request #5662 from containers/dependabot/go_modules/github.com/spf13/cobra-0.0.7
Bump github.com/spf13/cobra from 0.0.6 to 0.0.7
Diffstat (limited to 'vendor/github.com/spf13/cobra/Makefile')
-rw-r--r--vendor/github.com/spf13/cobra/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/vendor/github.com/spf13/cobra/Makefile b/vendor/github.com/spf13/cobra/Makefile
new file mode 100644
index 000000000..e9740d1e1
--- /dev/null
+++ b/vendor/github.com/spf13/cobra/Makefile
@@ -0,0 +1,36 @@
+BIN="./bin"
+SRC=$(shell find . -name "*.go")
+
+ifeq (, $(shell which richgo))
+$(warning "could not find richgo in $(PATH), run: go get github.com/kyoh86/richgo")
+endif
+
+.PHONY: fmt vet test cobra_generator install_deps clean
+
+default: all
+
+all: fmt vet test cobra_generator
+
+fmt:
+ $(info ******************** checking formatting ********************)
+ @test -z $(shell gofmt -l $(SRC)) || (gofmt -d $(SRC); exit 1)
+
+test: install_deps vet
+ $(info ******************** running tests ********************)
+ richgo test -v ./...
+
+cobra_generator: install_deps
+ $(info ******************** building generator ********************)
+ mkdir -p $(BIN)
+ make -C cobra all
+
+install_deps:
+ $(info ******************** downloading dependencies ********************)
+ go get -v ./...
+
+vet:
+ $(info ******************** vetting ********************)
+ go vet ./...
+
+clean:
+ rm -rf $(BIN)