0.6 rust重构01
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Harness 会在每次会话启动时执行此脚本,这里只做轻量且可重复执行的环境检查。
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
command -v git >/dev/null || {
|
||||
echo "ERROR: 缺少 git"
|
||||
exit 1
|
||||
}
|
||||
|
||||
command -v python3 >/dev/null || {
|
||||
echo "ERROR: 缺少 python3"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ -d "$ROOT_DIR/wolai-frontend" ]; then
|
||||
if ! command -v node >/dev/null; then
|
||||
echo "WARN: 缺少 node,前端相关任务可能无法执行"
|
||||
fi
|
||||
if ! command -v pnpm >/dev/null; then
|
||||
echo "WARN: 缺少 pnpm,前端相关任务可能无法执行"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Harness 环境检查完成"
|
||||
Reference in New Issue
Block a user