.PHONY: build test integration-test check fmt clippy doc clean help
help:
@echo "Claude Agents SDK - Available commands:"
@echo ""
@echo " make build Build the library"
@echo " make test Run unit tests (no auth required)"
@echo " make integration-test Run integration tests in Docker"
@echo " make check Run fmt check + clippy"
@echo " make fmt Format code"
@echo " make clippy Run linter"
@echo " make doc Build documentation"
@echo " make clean Clean build artifacts"
@echo ""
@echo "Integration tests require authentication. Set up with:"
@echo " 1. Run: claude setup-token"
@echo " 2. Copy .env.example to .env and paste your token"
@echo " 3. Run: make integration-test"
build:
cargo build
test:
cargo test
integration-test:
@./scripts/run-integration-tests.sh
integration-test-verbose:
@./scripts/run-integration-tests.sh --verbose
integration-shell:
@./scripts/run-integration-tests.sh --shell
check: fmt-check clippy
fmt:
cargo fmt
fmt-check:
cargo fmt --check
clippy:
cargo clippy -- -D warnings
doc:
cargo doc --open
clean:
cargo clean