docs: establish project harness baseline

This commit is contained in:
QiuSW
2026-07-25 16:59:06 +08:00
commit 50a6d8ee5b
30 changed files with 2742 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$ROOT_DIR"
# T-001 接入真实工程后替换。
INSTALL_CMD=(__REPLACE_AFTER_T001__)
VERIFY_CMD=(__REPLACE_AFTER_T001__)
START_CMD=(__REPLACE_AFTER_T001__)
for value in "${INSTALL_CMD[0]}" "${VERIFY_CMD[0]}" "${START_CMD[0]}"; do
if [[ "$value" == __REPLACE_* ]]; then
echo "ERROR: 项目尚未完成 T-001,请配置 init.sh 并同步技术栈和当前状态文档。"
exit 2
fi
done
"${INSTALL_CMD[@]}"
"${VERIFY_CMD[@]}"
printf '启动命令:'
printf ' %q' "${START_CMD[@]}"
printf '\n'
if [[ "${RUN_START_COMMAND:-0}" == "1" ]]; then
exec "${START_CMD[@]}"
fi