Get the auto-detected dev command for a project. This returns the default command based on detected project type, ignoring any custom command that may be configured. Args: project_dir: Path to the project directory. Returns: Default dev command string for the
(project_dir: Path)
| 310 | |
| 311 | |
| 312 | def get_default_dev_command(project_dir: Path) -> str | None: |
| 313 | """ |
| 314 | Get the auto-detected dev command for a project. |
| 315 | |
| 316 | This returns the default command based on detected project type, |
| 317 | ignoring any custom command that may be configured. |
| 318 | |
| 319 | Args: |
| 320 | project_dir: Path to the project directory. |
| 321 | |
| 322 | Returns: |
| 323 | Default dev command string for the detected project type, |
| 324 | or None if no project type is detected. |
| 325 | """ |
| 326 | project_type = detect_project_type(project_dir) |
| 327 | |
| 328 | if project_type is None: |
| 329 | return None |
| 330 | |
| 331 | return PROJECT_TYPE_COMMANDS.get(project_type) |
| 332 | |
| 333 | |
| 334 | def get_dev_command(project_dir: Path) -> str | None: |
no test coverage detected