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

Function format_models_multiline

rust/crates/ccusage/src/output.rs:463–475  ·  view source on GitHub ↗
(models: &[String])

Source from the content-addressed store, hash-verified

461}
462
463pub(crate) fn format_models_multiline(models: &[String]) -> String {
464 let mut models = models
465 .iter()
466 .map(|model| short_model_name(model))
467 .collect::<Vec<_>>();
468 models.sort();
469 models.dedup();
470 models
471 .into_iter()
472 .map(|model| format!("- {model}"))
473 .collect::<Vec<_>>()
474 .join("\n")
475}
476
477pub(crate) fn format_number(value: u64) -> String {
478 let s = value.to_string();

Callers 5

print_usage_tableFunction · 0.85
format_block_modelsFunction · 0.85
all_table_rowFunction · 0.85
print_table_for_agentFunction · 0.85
print_table_from_groupsFunction · 0.85

Calls 1

short_model_nameFunction · 0.85

Tested by

no test coverage detected