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

Method run

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

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

Callers

nothing calls this directly

Calls 1

run_asyncMethod · 0.45

Tested by

no test coverage detected