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

Function parse_sort_order

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

Source from the content-addressed store, hash-verified

871}
872
873fn parse_sort_order(value: &str) -> Result<SortOrder, String> {
874 match value {
875 "asc" => Ok(SortOrder::Asc),
876 "desc" => Ok(SortOrder::Desc),
877 _ => Err(format!("Invalid sort order '{value}'")),
878 }
879}
880
881fn parse_week_day(value: &str) -> Result<WeekDay, String> {
882 match value {

Callers 1

parse_shared_argFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected