fix: make command reconciliation binary safe
Some checks failed
tamq-ci / test (push) Failing after 6s

Assistant: codex
Assistant-Model: gpt-5.6-sol
Assistant-Session: 01a03397-4d51-7fd1-8ff2-946eb22ea2bc
This commit is contained in:
tegwick 2026-08-25 21:43:37 +02:00
parent 92881b6b56
commit fbb56f5981
7 changed files with 95 additions and 10 deletions

View file

@ -1,18 +1,22 @@
.PHONY: install uninstall test check
.DEFAULT_GOAL := help
.PHONY: help install uninstall test check
install:
help: ## List available targets
@awk 'BEGIN {FS = ":.*## "} /^[a-zA-Z0-9_-]+:.*## / {printf " %-12s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ## Install or refresh tamq as a user-level uv tool
@command -v uv >/dev/null || { echo "tamq: uv is required; install it from https://docs.astral.sh/uv/" >&2; exit 1; }
uv tool install --force --reinstall --refresh .
@command -v tamq >/dev/null || { echo "tamq: installed, but the uv tool bin directory is not on PATH; run 'uv tool update-shell'" >&2; exit 1; }
tamq --version
uninstall:
uninstall: ## Uninstall the user-level tamq tool
uv tool uninstall tmux-amq
test:
test: ## Run the test suite
uv run pytest
check:
check: ## Run tests and repository consistency checks
uv run pytest
git diff --check
python3 -m compileall -q src