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

Method list_remotes

atomic-repository/src/repository/remotes.rs:199–205  ·  view source on GitHub ↗

List all configured remotes. # Returns A vector of (name, entry) tuples for all configured remotes.

(&self)

Source from the content-addressed store, hash-verified

197 ///
198 /// A vector of (name, entry) tuples for all configured remotes.
199 pub fn list_remotes(&self) -> Result<Vec<(String, RemoteEntry)>, RepositoryError> {
200 let config = self.load_remotes()?;
201 Ok(config
202 .iter()
203 .map(|(name, entry)| (name.to_string(), entry.clone()))
204 .collect())
205 }
206
207 /// Check if a remote exists.
208 pub fn has_remote(&self, name: &str) -> Result<bool, RepositoryError> {

Callers

nothing calls this directly

Calls 3

load_remotesMethod · 0.80
iterMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected