Skip to content

Commit

Permalink
feat: add cobra command
Browse files Browse the repository at this point in the history
  • Loading branch information
valter-silva-au committed Mar 3, 2023
1 parent 33cd613 commit 3e64a1a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/make/cobra/Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3e64a1a

Please # to comment.