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

Method apply_shared

rust/crates/ccusage-cli/src/tests.rs:49–65  ·  view source on GitHub ↗
(&self, shared: &mut SharedArgs)

Source from the content-addressed store, hash-verified

47
48impl CliConfig for TestConfig {
49 fn apply_shared(&self, shared: &mut SharedArgs) {
50 if let Some(json) = self.shared_json {
51 shared.json = json;
52 }
53 if let Some(order) = self.shared_order {
54 shared.order = order;
55 }
56 if let Some(since) = self.shared_since {
57 shared.since = Some(since.to_string());
58 }
59 if let Some(timezone) = self.shared_timezone {
60 shared.timezone = Some(timezone.to_string());
61 }
62 if let Some(compact) = self.shared_compact {
63 shared.compact = compact;
64 }
65 }
66
67 fn apply_weekly_args(&self, args: &mut WeeklyArgs) {
68 if let Some(start_of_week) = self.weekly_start {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected