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

Method get_change

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

Source from the content-addressed store, hash-verified

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