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

Method remove_files

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

Source from the content-addressed store, hash-verified

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