MCPcopy Create free account
hub / github.com/AI45Lab/Code / list_remotes

Method list_remotes

core/src/workspace/remote_git.rs:636–647  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

634 }
635
636 async fn list_remotes(&self) -> Result<Vec<WorkspaceGitRemote>> {
637 let resp: RemotesResp = self.post_json("remotes", &EmptyReq).await?;
638 Ok(resp
639 .remotes
640 .into_iter()
641 .map(|r| WorkspaceGitRemote {
642 name: r.name,
643 url: r.url,
644 direction: r.direction,
645 })
646 .collect())
647 }
648}
649
650#[async_trait]

Callers 1

Calls 1

post_jsonMethod · 0.80

Tested by

no test coverage detected