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

Method add_files

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

Source from the content-addressed store, hash-verified

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