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

Function parse_codex_speed

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

Source from the content-addressed store, hash-verified

892}
893
894fn parse_codex_speed(value: &str) -> Result<CodexSpeed, String> {
895 match value {
896 "auto" => Ok(CodexSpeed::Auto),
897 "standard" => Ok(CodexSpeed::Standard),
898 "fast" => Ok(CodexSpeed::Fast),
899 _ => Err(format!("Invalid speed option '{value}'")),
900 }
901}
902
903fn parse_visual_burn_rate(value: &str) -> Result<VisualBurnRate, String> {
904 match value {

Callers 1

parse_codex_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected