diff --git a/lib/make/cobra/Makefile b/lib/make/cobra/Makefile new file mode 100644 index 0000000..8e9d79a --- /dev/null +++ b/lib/make/cobra/Makefile @@ -0,0 +1,16 @@ +.PHONY: cobra/install +## Install cobra's cli +cobra/install: + go install github.com/spf13/cobra-cli@latest + +.PHONY: cobra/add +## Add a cobra command +cobra/add: + $(call assert-set,COMMAND) + cobra-cli add $(COMMAND) + +.PHONY: cobra/del +## Delete a Cobra command +cobra/del: + $(call assert-set,COMMAND) + rm -f cmd/$(COMMAND).go