CliRenderer
Renderer for CLI channel. Transforms ToolResult into CLI-friendly output using Symfony Console formatting.
CliRenderer::supports()
public function supports(string $channel): boolCheck whether this renderer handles the given channel (CLI only).
Parameters
| Name | Type | Description |
|---|---|---|
| $channel | string |
CliRenderer::render()
public function render(Milpa\ToolRuntime\ToolResult $result, ?Milpa\ToolRuntime\Contracts\ToolContext $ctx = null): stringRender a ToolResult as Symfony-Console-formatted text, dispatching by result type (list, detail, confirmation, blocked, error, or a generic fallback).
Parameters
| Name | Type | Description |
|---|---|---|
| $result | Milpa\ToolRuntime\ToolResult | |
| $ctx | ?Milpa\ToolRuntime\Contracts\ToolContext |