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

Method add_files

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

Source from the content-addressed store, hash-verified

540
541impl Service {
542 pub fn add_files(&self, request: pb::AddFilesRequest) -> CliResult<pb::AddFilesResponse> {
543 self.call(move |backend| async move {
544 match backend {
545 Backend::Local(state) => {
546 services::MutationImpl { state }
547 .add_files(Request::new(request))
548 .await
549 .map(|response| response.into_inner())
550 }
551 Backend::Reactor(channel) => {
552 let mut mutation =
553 pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel);
554 mutation.add_files(request).await.map(|response| response.into_inner())
555 }
556 }
557 })
558 }
559
560 pub fn record(&self, request: pb::RecordRequest) -> CliResult<pb::RecordResponse> {
561 let requires_file_options =

Callers 2

addFunction · 0.45
recordFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected