Skip to content

Commit

Permalink
Merge pull request #4 from 0bvim/feat/print-function-after-compiling-…
Browse files Browse the repository at this point in the history
…in-makefile

feat: print function in makefile
  • Loading branch information
0bvim authored Oct 12, 2024
2 parents a841c61 + 9bc2896 commit ccec2a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 45 deletions.
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ APP_NAME := goctobot

all:
@go build -o $(APP_NAME) cmd/application/main.go
@echo "Done"
@echo "\033[1;34mGoctoBot Compiled\033[0m"
$(call print_usage)

fclean:
@rm $(APP_NAME)
Expand All @@ -11,4 +12,16 @@ fclean:
tests:
@go test -v ./...

# Define the function to print the usage guide with colors
define print_usage
@echo "\033[1;32mUsage:\033[0m"
@echo " \033[1;36m./goctobot <command> [username]\033[0m"
@echo ""
@echo "\033[1;32mCommands:\033[0m"
@echo " \033[1;36mfollow [username]\033[0m - Follow all followers of the specified user."
@echo " \033[1;36munfollow\033[0m - Unfollow who do not follow back."
@echo " \033[1;36mfollowing\033[0m - Shows count of users you follow."
@echo " \033[1;36mfollowers\033[0m - Show count of your followers."
endef

.PHONY: all fclean tests
44 changes: 0 additions & 44 deletions install

This file was deleted.

0 comments on commit ccec2a0

Please sign in to comment.