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

Method run

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

Execute the pull command. This method creates a tokio runtime and executes the async pull operation. It handles all the steps required to download and apply remote changes. # Errors Returns an error if: - No repository is found - The remote cannot be connected to - Network operations fail - Changes fail to download or save

(&self)

Source from the content-addressed store, hash-verified

834 /// - Network operations fail
835 /// - Changes fail to download or save
836 fn run(&self) -> CliResult<()> {
837 // Create a runtime for async operations
838 let rt = tokio::runtime::Runtime::new().map_err(|e| {
839 CliError::Internal(anyhow::anyhow!("Failed to create async runtime: {}", e))
840 })?;
841
842 rt.block_on(self.run_async())
843 }
844}
845
846// Tests

Callers

nothing calls this directly

Calls 1

run_asyncMethod · 0.45

Tested by

no test coverage detected