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

Function parse_visual_burn_rate

rust/crates/ccusage-cli/src/parser.rs:903–911  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

901}
902
903fn parse_visual_burn_rate(value: &str) -> Result<VisualBurnRate, String> {
904 match value {
905 "off" => Ok(VisualBurnRate::Off),
906 "emoji" => Ok(VisualBurnRate::Emoji),
907 "text" => Ok(VisualBurnRate::Text),
908 "emoji-text" => Ok(VisualBurnRate::EmojiText),
909 _ => Err(format!("Invalid visual burn rate '{value}'")),
910 }
911}
912
913fn parse_cost_source(value: &str) -> Result<CostSource, String> {
914 match value {

Callers 1

parse_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected