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

Method preview_restore

atomic-cli/src/service/mod.rs:482–504  ·  view source on GitHub ↗
(
        &self,
        request: pb::PreviewRestoreRequest,
    )

Source from the content-addressed store, hash-verified

480 }
481
482 pub fn preview_restore(
483 &self,
484 request: pb::PreviewRestoreRequest,
485 ) -> CliResult<pb::PreviewMutationResponse> {
486 self.call(move |backend| async move {
487 match backend {
488 Backend::Local(state) => services::QueryImpl { state }
489 .preview_restore(Request::new(request))
490 .await
491 .map(|response| response.into_inner()),
492 Backend::Reactor(channel) => {
493 let mut query =
494 pb::repository_query_service_client::RepositoryQueryServiceClient::new(
495 channel,
496 );
497 query
498 .preview_restore(request)
499 .await
500 .map(|response| response.into_inner())
501 }
502 }
503 })
504 }
505}
506
507/// Collect a local handler's item stream (each item is already a

Callers 2

restore_previewFunction · 0.45
restore_single_dry_runFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected