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

Method run

atomic-cli/src/commands/push/command.rs:796–803  ·  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

794 /// - Authentication failures
795 /// - Diverged histories (without --force)
796 fn run(&self) -> CliResult<()> {
797 // Create a tokio runtime for async operations
798 let rt = tokio::runtime::Runtime::new().map_err(|e| {
799 CliError::Internal(anyhow::anyhow!("Failed to create async runtime: {}", e))
800 })?;
801
802 rt.block_on(self.run_async())
803 }
804}
805
806// Tests

Callers

nothing calls this directly

Calls 1

run_asyncMethod · 0.45

Tested by

no test coverage detected