5.3.1.18.1.1. cli.cmd_run_program.run_program_impl.run_program

cli.cmd_run_program.run_program_impl.run_program(args: list[str], cwd: str | Path = WindowsPath('D:/_github/foxbms-2'), stderr: int | IO[Any] | None = None, stdout: int | IO[Any] | None = None) SubprocessResult

Execute an external program with the provided command-line arguments.

Parameters:
  • args – Full command including executable and its arguments.

  • cwd – Working directory used when executing the subprocess.

  • stderr – Optional stream configuration for standard error.

  • stdout – Optional stream configuration for standard output.

Returns:

A SubprocessResult containing process execution details.