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

Method list_remotes

atomic-cli/src/service/mod.rs:1770–1788  ·  view source on GitHub ↗
(
        &self,
        request: pb::ListRemotesRequest,
    )

Source from the content-addressed store, hash-verified

1768
1769impl Service {
1770 pub fn list_remotes(
1771 &self,
1772 request: pb::ListRemotesRequest,
1773 ) -> CliResult<pb::ListRemotesResponse> {
1774 self.call(move |backend| async move {
1775 match backend {
1776 Backend::Local(state) => services_sync::SyncImpl { state }
1777 .list_remotes(Request::new(request))
1778 .await
1779 .map(|response| response.into_inner()),
1780 Backend::Reactor(channel) => {
1781 let mut sync = pb::sync_service_client::SyncServiceClient::new(channel);
1782 sync.list_remotes(request)
1783 .await
1784 .map(|response| response.into_inner())
1785 }
1786 }
1787 })
1788 }
1789
1790 pub fn manage_remotes(
1791 &self,

Callers

nothing calls this directly

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected