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

Method context

rust/crates/ccusage/src/main.rs:120–122  ·  view source on GitHub ↗
(self, message: impl Into<String>)

Source from the content-addressed store, hash-verified

118 E: fmt::Display,
119{
120 fn context(self, message: impl Into<String>) -> Result<T> {
121 self.map_err(|error| cli_error(format!("{}: {error}", message.into())))
122 }
123}
124
125fn main() -> Result<()> {

Callers 1

run_statuslineFunction · 0.80

Calls 1

cli_errorFunction · 0.85

Tested by

no test coverage detected