Create and register a tracked subprocess. Args: args: Command to execute cwd: Working directory env: Environment variables shell: Use shell execution stdout: stdout handling (e.g., subprocess.PIPE) stderr: stderr handli
(
self,
args: list[str] | str,
cwd: str | None = None,
env: dict[str, str] | None = None,
shell: bool = False,
stdout: int | None = None,
stderr: int | None = None,
stdin: int | None = None,
text: bool = False,
**kwargs: Any,
)
| 296 | """ |
| 297 | |
| 298 | def __init__( |
| 299 | self, |
| 300 | args: list[str] | str, |
| 301 | cwd: str | None = None, |
| 302 | env: dict[str, str] | None = None, |
| 303 | shell: bool = False, |
| 304 | stdout: int | None = None, |
| 305 | stderr: int | None = None, |
| 306 | stdin: int | None = None, |
| 307 | text: bool = False, |
| 308 | **kwargs: Any, |
| 309 | ) -> None: |
| 310 | """Create and register a tracked subprocess. |
| 311 | |
| 312 | Args: |
| 313 | args: Command to execute |
| 314 | cwd: Working directory |
| 315 | env: Environment variables |
| 316 | shell: Use shell execution |
| 317 | stdout: stdout handling (e.g., subprocess.PIPE) |
| 318 | stderr: stderr handling |
| 319 | stdin: stdin handling |
| 320 | text: Text mode for I/O |
| 321 | **kwargs: Additional arguments for subprocess.Popen |
| 322 | """ |
| 323 | self._proc = subprocess.Popen( |
| 324 | args, |
| 325 | cwd=cwd, |
| 326 | env=env, |
| 327 | shell=shell, |
| 328 | stdout=stdout, |
| 329 | stderr=stderr, |
| 330 | stdin=stdin, |
| 331 | text=text, |
| 332 | **kwargs, |
| 333 | ) |
| 334 | register_pio_process(self._proc) |
| 335 | |
| 336 | @property |
| 337 | def proc(self) -> subprocess.Popen[Any]: |
nothing calls this directly
no test coverage detected