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

Method new

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

Create a new Pull command with default settings. # Example ```rust use atomic::commands::pull::Pull; let pull = Pull::new(); assert!(pull.remote.is_none()); assert!(!pull.dry_run); ```

()

Source from the content-addressed store, hash-verified

278 /// assert!(!pull.dry_run);
279 /// ```
280 pub fn new() -> Self {
281 Self {
282 remote: None,
283 to_view: None,
284 from_view: None,
285 dry_run: false,
286 all: false,
287 insecure: false,
288 timeout: DEFAULT_TIMEOUT_SECS,
289 download_only: false,
290 identity: None,
291 }
292 }
293
294 /// Builder: set the remote name or URL.
295 pub fn with_remote(mut self, remote: impl Into<String>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected