diff --git a/Local-Development-and-Verification.-.md b/Local-Development-and-Verification.-.md index 78cbe05..0882b13 100644 --- a/Local-Development-and-Verification.-.md +++ b/Local-Development-and-Verification.-.md @@ -36,33 +36,7 @@ $pattern = 'can''t match "value"' rg -n -e $pattern docs ``` -PowerShell 不支持 Bash heredoc。需要把多行 Python 送入标准输入时,使用单引号 here-string,避免 PowerShell 展开 Python 中的 `# 本地开发与验证 - -## 本页用途 - -让维护者能够安装、运行、检查和验证项目。所有命令默认在仓库根目录执行,示例以 Windows PowerShell 为主。 - -## 环境要求 - -| 工具 | 用途 | 检查命令 | -|---|---|---| -| Git | 版本管理和脏文件保护 | `git --version` | -| Python 3 | Harness 脚本和测试 | `python --version` | -| Gitea 连接 | 工单和 Wiki | 浏览仓库或调用 MCP | -| Gitea PAT | 写 Wiki 时使用 | 仅通过 MCP 安全配置或 `GITEA_TOKEN` 提供 | - -不要打印或提交 PAT。 - -## Windows PowerShell 与 UTF-8 - -### Shell 选择 - -- 优先使用当前已经配置的 PowerShell;可选择时优先 PowerShell 7 `pwsh.exe`。 -- 只有 PowerShell 7 不可用或命令明确依赖 Windows PowerShell 5.1 时才使用 `powershell.exe`。 -- 不得仅为设置编码重复启动一层 PowerShell;嵌套进程会增加启动时间、转义复杂度和错误定位成本。 -- 代码搜索仍优先使用代码图工具;非代码文本或图工具不足时优先使用 `rg`,不因本节改用 `Select-String`。 - - 等内容。起始标记后必须立即换行,结束标记必须单独占一行: +PowerShell 不支持 Bash heredoc。需要把多行 Python 送入标准输入时,使用单引号 here-string,避免 PowerShell 展开 Python 中的 dollar sign(`$`)等内容。起始标记后必须立即换行,结束标记必须单独占一行: ```powershell @'