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

Method get_local_view

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

Get the local view name to pull into. Returns the explicitly specified `--to-view`, or defaults to the remote view being pulled — so `atomic pull --from-view X` pulls into a local view named `X`.

(&self, remote_view: &str)

Source from the content-addressed store, hash-verified

397 /// remote view being pulled — so `atomic pull --from-view X` pulls into
398 /// a local view named `X`.
399 fn get_local_view(&self, remote_view: &str) -> String {
400 self.to_view
401 .clone()
402 .unwrap_or_else(|| remote_view.to_string())
403 }
404
405 /// Build the HTTP remote configuration.
406 ///

Callers 1

run_asyncMethod · 0.45

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected