Small description of an external executable to report. Parameters ---------- key: Label used in the output report. command: Executable name or absolute path to resolve. version_args: Arguments used to query the executable version.
| 394 | |
| 395 | @dataclass(frozen=True) |
| 396 | class ExecutableSpec: |
| 397 | """Small description of an external executable to report. |
| 398 | |
| 399 | Parameters |
| 400 | ---------- |
| 401 | key: |
| 402 | Label used in the output report. |
| 403 | command: |
| 404 | Executable name or absolute path to resolve. |
| 405 | version_args: |
| 406 | Arguments used to query the executable version. |
| 407 | """ |
| 408 | |
| 409 | key: str |
| 410 | command: str | None = None |
| 411 | version_args: tuple[str, ...] = ("-version",) |
| 412 | |
| 413 | def resolved_command(self) -> str: |
| 414 | return self.command or self.key |
| 415 | |
| 416 | |
| 417 | DEFAULT_EXECUTABLE_SPECS: tuple[ExecutableSpec, ...] = (ExecutableSpec("ffmpeg"),) |
no outgoing calls