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

Method run

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

Execute the push command. # Workflow 1. Find and open the local repository 2. Resolve the remote URL from configuration or argument 3. Determine local and remote view names 4. Connect to the remote server 5. Query remote state and changelist 6. Calculate which changes need to be pushed 7. If dry run, display preview and exit 8. Upload changes in dependency order 9. Upload any tagged states 10. D

(&self)

Source from the content-addressed store, hash-verified

814 /// - Authentication failures
815 /// - Diverged histories (without --force)
816 fn run(&self) -> CliResult<()> {
817 // Create a tokio runtime for async operations
818 let rt = tokio::runtime::Runtime::new().map_err(|e| {
819 CliError::Internal(anyhow::anyhow!("Failed to create async runtime: {}", e))
820 })?;
821
822 rt.block_on(self.run_async())
823 }
824}
825
826// Tests

Callers

nothing calls this directly

Calls 1

run_asyncMethod · 0.45

Tested by

no test coverage detected