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

Method apply_agent_args

rust/crates/ccusage-cli/src/tests.rs:97–112  ·  view source on GitHub ↗
(
        &self,
        codex_speed: &mut CodexSpeed,
        pi_path: Option<&mut Option<String>>,
        open_claw_path: Option<&mut Option<String>>,
    )

Source from the content-addressed store, hash-verified

95 }
96
97 fn apply_agent_args(
98 &self,
99 codex_speed: &mut CodexSpeed,
100 pi_path: Option<&mut Option<String>>,
101 open_claw_path: Option<&mut Option<String>>,
102 ) {
103 if let Some(speed) = self.codex_speed {
104 *codex_speed = speed;
105 }
106 if let (Some(path), Some(pi_path)) = (self.pi_path, pi_path) {
107 *pi_path = Some(path.to_string());
108 }
109 if let (Some(path), Some(open_claw_path)) = (self.open_claw_path, open_claw_path) {
110 *open_claw_path = Some(path.to_string());
111 }
112 }
113}
114
115fn shared_snapshot(shared: &SharedArgs) -> Value {

Callers 3

parse_codex_commandFunction · 0.45
parse_pi_commandFunction · 0.45
parse_openclaw_commandFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected