MCPcopy Create free account
hub / github.com/ccusage/ccusage / print

Method print

rust/crates/ccusage-terminal/src/table.rs:58–65  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

56 }
57
58 pub fn print(&self) -> io::Result<()> {
59 let stdout = io::stdout();
60 let mut stdout = stdout.lock();
61 for line in self.render_lines() {
62 writeln!(stdout, "{line}")?;
63 }
64 Ok(())
65 }
66
67 fn render_lines(&self) -> Vec<String> {
68 let widths = self.column_widths();

Callers 5

print_usage_tableFunction · 0.80
print_blocks_tableFunction · 0.80
print_tableFunction · 0.80
print_table_for_agentFunction · 0.80
print_table_from_groupsFunction · 0.80

Calls 1

render_linesMethod · 0.80

Tested by

no test coverage detected