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

Method run

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

1009 /// - `CliError::RemoteError` - Network/server error (including servers
1010 /// that predate view-manifest support)
1011 fn run(&self) -> CliResult<()> {
1012 // Create async runtime for HTTP operations
1013 let runtime = tokio::runtime::Runtime::new().map_err(|e| {
1014 CliError::Internal(anyhow::anyhow!("Failed to create async runtime: {}", e))
1015 })?;
1016
1017 runtime.block_on(self.run_async())
1018 }
1019}
1020
1021// Tests

Callers

nothing calls this directly

Calls 1

run_asyncMethod · 0.45

Tested by

no test coverage detected