From 3e64a1ac6f3c5b01a0a9e9ae65efb4a94014d70e Mon Sep 17 00:00:00 2001 From: Valter Silva Date: Fri, 3 Mar 2023 08:41:35 +0000 Subject: [PATCH] feat: add cobra command --- lib/make/cobra/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/make/cobra/Makefile 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