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

Method new

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

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

()

Source from the content-addressed store, hash-verified

260 /// assert!(!push.dry_run);
261 /// ```
262 pub fn new() -> Self {
263 Self {
264 remote: None,
265 to_view: None,
266 from_view: None,
267 dry_run: false,
268 force: false,
269 all: false,
270 insecure: false,
271 timeout: DEFAULT_TIMEOUT_SECS,
272 identity: None,
273 }
274 }
275
276 /// Builder: set the remote name or URL.
277 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