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

Method run

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

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

Callers

nothing calls this directly

Calls 1

run_asyncMethod · 0.45

Tested by

no test coverage detected