Skip to content
docsv0.3.0

JobMonitorRenderer

Background-job monitor: one line per {@see \Milpa\Live\ValueObjects\Tui\BackgroundJob} with a status icon, its percentage and label, plus the job's last output line underneath. Says so explicitly when there are no jobs.

JobMonitorRenderer::supports()

public function supports(Milpa\Live\ValueObjects\Tui\TuiNode $node): bool

True only for `job-monitor` nodes — dispatch is by declared node type, never by where the node came from.

Parameters

Parameters of supports()
NameTypeDescription
$nodeMilpa\Live\ValueObjects\Tui\TuiNode

JobMonitorRenderer::render()

public function render(Milpa\Live\ValueObjects\Tui\TuiNode $node, Milpa\Live\ValueObjects\Tui\TuiRenderContext $context): Milpa\Live\ValueObjects\Tui\TuiFrame

Draws one line per job plus its latest output line.

Parameters

Parameters of render()
NameTypeDescription
$nodeMilpa\Live\ValueObjects\Tui\TuiNode
$contextMilpa\Live\ValueObjects\Tui\TuiRenderContext