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

Method get_remote_view

atomic-cli/src/commands/push/command.rs:391–395  ·  view source on GitHub ↗

Get the remote view name to declare the leaf view under. Returns the explicitly specified view or the local view name.

(&self, local_view: &str)

Source from the content-addressed store, hash-verified

389 ///
390 /// Returns the explicitly specified view or the local view name.
391 fn get_remote_view(&self, local_view: &str) -> String {
392 self.to_view
393 .clone()
394 .unwrap_or_else(|| local_view.to_string())
395 }
396
397 /// Build the HTTP remote configuration.
398 ///

Callers 1

run_asyncMethod · 0.45

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected