Files
naomi 059c24be31
Node.js CI / CI (push) Failing after 3s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 47s
feat: add linting
2025-12-22 17:08:18 -08:00

40 lines
1.7 KiB
Makefile

.PHONY: help push pull test lint
# 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 " $(YELLOW)$(BOLD)make lint$(NC) $(CYAN)$(NC) Lint YAML files in the match directory"
@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
lint: ## Lint YAML files in the match directory
./lint.sh