MCPcopy Create free account
hub / github.com/0xKarl-dev/claw-codes / finish_code_block

Method finish_code_block

rust/crates/claw-cli/src/render.rs:472–480  ·  view source on GitHub ↗
(&self, code_buffer: &str, code_language: &str, output: &mut String)

Source from the content-addressed store, hash-verified

470 }
471
472 fn finish_code_block(&self, code_buffer: &str, code_language: &str, output: &mut String) {
473 output.push_str(&self.highlight_code(code_buffer, code_language));
474 let _ = write!(
475 output,
476 "{}",
477 "╰─".bold().with(self.color_theme.code_block_border)
478 );
479 output.push_str("\n\n");
480 }
481
482 fn push_text(
483 &self,

Callers 1

render_eventMethod · 0.80

Calls 1

highlight_codeMethod · 0.80

Tested by

no test coverage detected