Files
2026-03-13 16:43:04 +08:00

47 lines
1.5 KiB
Makefile

.PHONY: help sync sync-dev install reinstall run chat gateway config-sync config-path config-open data-dump test fmt lint
help: ## Show available targets
@/usr/bin/awk 'BEGIN {FS = ":.*## "; print "VoidBot Make Targets\n"} /^[a-zA-Z0-9_-]+:.*## / {printf " \033[36m%-14s\033[0m %s\n", $$1, $$2}' /home/mcallzbl/File2/Workshop/Projects/VoidBot/Makefile
sync: ## Sync runtime dependencies with uv
uv sync
sync-dev: ## Sync runtime and dev dependencies with uv
uv sync --group dev
install: ## Install voidbot into the local user environment
uv tool install --editable .
reinstall: ## Reinstall voidbot into the local user environment
uv tool install --editable . --reinstall
run: ## Start the interactive VoidBot CLI
uv run voidbot
chat: ## Run one CLI message, pass MESSAGE='...'
uv run voidbot --message "$(MESSAGE)"
gateway: ## Start the standalone gateway
uv run voidbot gateway
config-sync: ## Sync the default user config into ~/.voidbot
uv run voidbot config sync
config-path: ## Print the default user config path
uv run voidbot config path
config-open: ## Open the default user config file
uv run voidbot config open
data-dump: ## Dump stored SQLite data, optional SESSION_ID=... LIMIT=...
uv run voidbot data dump $(if $(SESSION_ID),--session-id "$(SESSION_ID)") $(if $(LIMIT),--limit "$(LIMIT)")
test: ## Run the unit test suite
uv run python -m unittest discover -s tests
fmt: ## Format the codebase with Ruff
uv run --group dev ruff format src tests
lint: ## Run Ruff checks
uv run --group dev ruff check