MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / resolve

Function resolve

libatomic/tests/schema5_service_test.rs:29–39  ·  view source on GitHub ↗
(service: &LocalService, dir: &std::path::Path)

Source from the content-addressed store, hash-verified

27}
28
29async fn resolve(service: &LocalService, dir: &std::path::Path) -> proto::RepositoryRef {
30 let response: proto::ResolveRepositoryResponse = invoke(
31 service,
32 "/atomic.DaemonService/ResolveRepository",
33 proto::ResolveRepositoryRequest {
34 path: dir.display().to_string(),
35 },
36 )
37 .await;
38 response.repository.unwrap()
39}
40
41async fn query(
42 service: &LocalService,

Calls 3

displayMethod · 0.80
invokeFunction · 0.70
unwrapMethod · 0.45

Tested by

no test coverage detected