MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / set_api_client

Method set_api_client

crates/opencode-tui/src/context/app_context.rs:296–298  ·  view source on GitHub ↗
(&self, client: Arc<ApiClient>)

Source from the content-addressed store, hash-verified

294 }
295
296 pub fn set_api_client(&self, client: Arc<ApiClient>) {
297 *self.api_client.write() = Some(client);
298 }
299
300 pub fn get_api_client(&self) -> Option<Arc<ApiClient>> {
301 self.api_client.read().clone()

Callers 1

newMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected