Skip to content

runner

dev_tool.services.bun.runner

BunWatcherRunner

Bases: BaseProcessRunner

A class for running a Bun build watcher.

This class handles starting, monitoring, and stopping a Bun watch process in both local and containerized environments.

Source code in dev_tool/services/runner/base.py
def __init__(self, project_name: str) -> None:
    """
    The constructor for the BaseProcessRunner class.

    :param project_name: The project name for container naming.
    """

    self.environment: dict[str, str] = {}
    self.output_thread: threading.Thread | None = None
    self.process: subprocess.Popen | None = None
    self.project_name = project_name
    self.ready_event = threading.Event()
    self.stop_event = threading.Event()