MCPcopy Create free account
hub / github.com/AutoForgeAI/autoforge / get_default_dev_command

Function get_default_dev_command

server/services/project_config.py:312–331  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

310
311
312def 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
334def get_dev_command(project_dir: Path) -> str | None:

Callers 1

get_dev_commandFunction · 0.85

Calls 1

detect_project_typeFunction · 0.85

Tested by

no test coverage detected