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

Method get_remote_view

atomic-cli/src/commands/pull/command.rs:388–392  ·  view source on GitHub ↗

Get the remote view name to pull from. Returns the explicitly specified `--from-view`, or the current view when omitted.

(&self, current_view: &str)

Source from the content-addressed store, hash-verified

386 /// Returns the explicitly specified `--from-view`, or the current view
387 /// when omitted.
388 fn get_remote_view(&self, current_view: &str) -> String {
389 self.from_view
390 .clone()
391 .unwrap_or_else(|| current_view.to_string())
392 }
393
394 /// Get the local view name to pull into.
395 ///

Callers 1

run_asyncMethod · 0.45

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected