MCPcopy Create free account
hub / github.com/Tencent/BrowserSkill / RenderExtras

Interface RenderExtras

crates/bsk-cli/src/cli/error.rs:153–155  ·  view source on GitHub ↗

Renderer extension hook for commands that want to inject a structured "extra section" between the centralised summary and the centralised hint (review I3 fix to round-1). Implementations write directly to a generic `&mut dyn Write` so tests can capture into a `Vec ` and assert on the rendered stderr output. Production callers receive a write handle wrapping `std::io::stderr()`. Examples: `bsk

Source from the content-addressed store, hash-verified

151/// here for `multiple_browsers_online`; the matching ambiguous-label
152/// error writes a bullet list of candidate `instance_id`s.
153pub trait RenderExtras {
154 fn write_extras(&self, out: &mut dyn std::io::Write) -> std::io::Result<()>;
155}
156
157impl<F> RenderExtras for F
158where

Callers

nothing calls this directly

Implementers 2

session.rscrates/bsk-cli/src/cli/session.rs
error.rscrates/bsk-cli/src/cli/error.rs

Calls

no outgoing calls

Tested by

no test coverage detected