Files
xmwork/scripts/run-task.sh
T
gongzhiyong 3112ca1d7c initial: team agent workstation for 6-repo matrix
- Dockerfile (Node/Python/Go/Bun + claude-code + gh cli)
- docker-compose.yml (flexible REPOS_DIR, 7 mounts, 6 cache volumes)
- CLAUDE.md (team conventions + red lines + per-repo build/test cmds)
- .claude/settings.json (allow/deny permissions)
- Makefile + scripts/{enter,bootstrap,run-task}.sh
- README.md (onboarding guide)
2026-04-23 23:11:16 +08:00

14 lines
317 B
Bash
Executable File

#!/usr/bin/env bash
# 非交互跑单任务:./scripts/run-task.sh "审计 6 个仓库的过时依赖并提 PR"
set -euo pipefail
cd "$(dirname "$0")/.."
if [[ $# -lt 1 ]]; then
echo "用法: $0 '<任务描述>'"
exit 1
fi
docker compose run --rm claude-agent \
claude -p "$1" --permission-mode acceptEdits