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

Method run

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

Execute the push command. Syncs the current (or specified) view's parent chain to the remote via view manifests, then uploads attestations, provenance graphs, and tags that travel with the pushed changes. # Errors - `CliError::RepositoryNotFound` - Not in a repository - `CliError::RemoteNotFound` - Remote doesn't exist - `CliError::AuthenticationFailed` - Auth failure - `CliError::Conflict` - H

(&self)

Source from the content-addressed store, hash-verified

902 /// - `CliError::RemoteError` - Network/server error (including servers
903 /// that predate view-manifest support)
904 fn run(&self) -> CliResult<()> {
905 // Create async runtime for HTTP operations
906 let runtime = tokio::runtime::Runtime::new().map_err(|e| {
907 CliError::Internal(anyhow::anyhow!("Failed to create async runtime: {}", e))
908 })?;
909
910 runtime.block_on(self.run_async())
911 }
912}
913
914// Tests

Callers

nothing calls this directly

Calls 1

run_asyncMethod · 0.45

Tested by

no test coverage detected