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

Method get_change

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

Source from the content-addressed store, hash-verified

363 }
364
365 pub fn get_change(&self, request: pb::GetChangeRequest) -> CliResult<pb::GetChangeResponse> {
366 self.call(move |backend| async move {
367 match backend {
368 Backend::Local(state) => services::QueryImpl { state }
369 .get_change(Request::new(request))
370 .await
371 .map(|response| response.into_inner()),
372 Backend::Reactor(channel) => {
373 let mut query =
374 pb::repository_query_service_client::RepositoryQueryServiceClient::new(
375 channel,
376 );
377 query
378 .get_change(request)
379 .await
380 .map(|response| response.into_inner())
381 }
382 }
383 })
384 }
385
386 /// DiffWorkingCopy, collected: both backends stream; the CLI renders
387 /// the whole listing.

Callers 2

changeFunction · 0.45
diff_changeFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected