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

Method remove_files

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

Source from the content-addressed store, hash-verified

601 }
602
603 pub fn remove_files(
604 &self,
605 request: pb::RemoveFilesRequest,
606 ) -> CliResult<pb::RemoveFilesResponse> {
607 self.call(move |backend| async move {
608 match backend {
609 Backend::Local(state) => {
610 services::MutationImpl { state }
611 .remove_files(Request::new(request))
612 .await
613 .map(|response| response.into_inner())
614 }
615 Backend::Reactor(channel) => {
616 let mut mutation =
617 pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel);
618 mutation.remove_files(request).await.map(|response| response.into_inner())
619 }
620 }
621 })
622 }
623
624 pub fn move_file(&self, request: pb::MoveFileRequest) -> CliResult<pb::MoveFileResponse> {
625 self.call(move |backend| async move {

Callers 1

removeFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected