@@ -23,10 +23,17 @@ help:
2323 @echo " docker - Build Docker image"
2424 @echo " run-example - Run an example (use EXAMPLE=name)"
2525 @echo " list-examples - List available examples"
26+ @echo " logs - View recent logs (use: make logs LINES=50)"
2627 @echo " view-logs - View logs for running example"
2728 @echo " stop-example - Stop a running example"
2829 @echo " docs - Generate documentation"
2930 @echo " setup-env - Create example .env file"
31+ @echo " "
32+ @echo " Testing commands:"
33+ @echo " test-unit - Run unit tests"
34+ @echo " test-integration - Run integration tests"
35+ @echo " test-e2e - Run end-to-end tests"
36+ @echo " coverage - Generate test coverage report"
3037
3138# Installation
3239install :
@@ -148,6 +155,18 @@ version:
148155 git tag -a " v$$ (poetry version --short)" -m " Version $$ (poetry version --short)"
149156 @echo " ✅ Version bumped and tagged. Don't forget to push with tags: git push --follow-tags"
150157
158+ # View recent logs from the application
159+ LINES ?= 50 # Default number of lines to show
160+ LOG_DIR ?= logs # Default log directory
161+
162+ logs :
163+ @echo " 📋 Showing last $( LINES) lines of logs from $( LOG_DIR) /"
164+ @if [ -d " $( LOG_DIR) " ]; then \
165+ find " $( LOG_DIR) " -type f -name " *.log" -exec sh -c ' echo "\n📄 {}:"; tail -n $(LINES) {}' \; 2> /dev/null || echo " No log files found in $( LOG_DIR) /" ; \
166+ else \
167+ echo " Log directory $( LOG_DIR) / does not exist" ; \
168+ fi
169+
151170# Helper to get PYPI_TOKEN from files
152171define get_pypi_token
153172$(shell \
0 commit comments