generated from nhcarrigan/template
feat: makefile
This commit is contained in:
@@ -0,0 +1,36 @@
|
|||||||
|
.PHONY: help push pull test
|
||||||
|
|
||||||
|
# Colors for pretty output
|
||||||
|
CYAN := \033[0;36m
|
||||||
|
GREEN := \033[0;32m
|
||||||
|
YELLOW := \033[1;33m
|
||||||
|
MAGENTA := \033[0;35m
|
||||||
|
BOLD := \033[1m
|
||||||
|
NC := \033[0m
|
||||||
|
|
||||||
|
# Default target - show help
|
||||||
|
.DEFAULT_GOAL := help
|
||||||
|
|
||||||
|
help: ## Show this help message
|
||||||
|
@echo ""
|
||||||
|
@echo "$(CYAN)$(BOLD)╔═══════════════════════════════════════════════╗$(NC)"
|
||||||
|
@echo "$(CYAN)$(BOLD)║$(NC) $(MAGENTA)$(BOLD)✨ Espanso Config Makefile ✨$(NC) $(CYAN)$(BOLD)║$(NC)"
|
||||||
|
@echo "$(CYAN)$(BOLD)╚═══════════════════════════════════════════════╝$(NC)"
|
||||||
|
@echo ""
|
||||||
|
@echo "$(GREEN)$(BOLD)📋 Available Commands:$(NC)"
|
||||||
|
@echo ""
|
||||||
|
@echo " $(YELLOW)$(BOLD)make push$(NC) $(CYAN)➜$(NC) Push the local match directory to the remote Espanso config"
|
||||||
|
@echo " $(YELLOW)$(BOLD)make pull$(NC) $(CYAN)➜$(NC) Pull the remote match directory to the local Espanso config"
|
||||||
|
@echo " $(YELLOW)$(BOLD)make test$(NC) $(CYAN)➜$(NC) Test the Espanso config for duplicate triggers and replace values"
|
||||||
|
@echo ""
|
||||||
|
@echo "$(CYAN)$(BOLD)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━$(NC)"
|
||||||
|
@echo ""
|
||||||
|
|
||||||
|
push: ## Push the local match directory to the remote Espanso config
|
||||||
|
./push.sh
|
||||||
|
|
||||||
|
pull: ## Pull the remote match directory to the local Espanso config
|
||||||
|
./pull.sh
|
||||||
|
|
||||||
|
test: ## Test the Espanso config for duplicate triggers and replace values
|
||||||
|
./test.sh
|
||||||
Reference in New Issue
Block a user