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

Method preview_restore

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

Source from the content-addressed store, hash-verified

482 }
483
484 pub fn preview_restore(
485 &self,
486 request: pb::PreviewRestoreRequest,
487 ) -> CliResult<pb::PreviewMutationResponse> {
488 self.call(move |backend| async move {
489 match backend {
490 Backend::Local(state) => services::QueryImpl { state }
491 .preview_restore(Request::new(request))
492 .await
493 .map(|response| response.into_inner()),
494 Backend::Reactor(channel) => {
495 let mut query =
496 pb::repository_query_service_client::RepositoryQueryServiceClient::new(
497 channel,
498 );
499 query
500 .preview_restore(request)
501 .await
502 .map(|response| response.into_inner())
503 }
504 }
505 })
506 }
507}
508
509/// 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