···11-# Noteleaf project commands
22-33-# Default recipe - show available commands
44-default:
55- @just --list
66-77-# Run all tests
88-test:
99- go test ./...
1010-1111-# Run tests with coverage
1212-coverage:
1313- go test ./... -coverprofile=coverage.out
1414- go tool cover -html=coverage.out -o coverage.html
1515- @echo "Coverage report generated: coverage.html"
1616-1717-# Run tests and show coverage in terminal
1818-cov:
1919- go test ./... -coverprofile=coverage.out
2020- go tool cover -func=coverage.out
2121-2222-# Build the binary to /tmp/
2323-build:
2424- mkdir -p ./tmp/
2525- go build -o ./tmp/noteleaf ./cmd/
2626- @echo "Binary built: ./tmp/noteleaf"
2727-2828-# Clean build artifacts
2929-clean:
3030- rm -f coverage.out coverage.html
3131- rm -rf /tmp/noteleaf
3232-3333-# Run linting
3434-lint:
3535- go vet ./...
3636- go fmt ./...
3737-3838-# Run all quality checks
3939-check: lint cov
4040-4141-# Install dependencies
4242-deps:
4343- go mod download
4444- go mod tidy
4545-4646-# Run the application (after building)
4747-run: build
4848- /tmp/noteleaf/noteleaf
4949-5050-# Show project status
5151-status:
5252- @echo "Go version:"
5353- @go version
5454- @echo ""
5555- @echo "Module info:"
5656- @go list -m
5757- @echo ""
5858- @echo "Dependencies:"
5959- @go list -m all | head -10
6060-6161-# Quick development workflow
6262-dev: clean lint test build
6363- @echo "Development workflow complete!"