自动发现项目上下文(包含 git 信息)
(cls, cwd: str, current_date: str)
| 260 | |
| 261 | @classmethod |
| 262 | def discover_with_git(cls, cwd: str, current_date: str) -> "ProjectContext": |
| 263 | """自动发现项目上下文(包含 git 信息)""" |
| 264 | ctx = cls.discover(cwd, current_date) |
| 265 | ctx.git_status = read_git_status(cwd) |
| 266 | ctx.git_diff = read_git_diff(cwd) |
| 267 | return ctx |
| 268 | |
| 269 | |
| 270 | # ============================================================ |
no test coverage detected