(
&self,
request: pb::RemoveFilesRequest,
)
| 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 { |
no test coverage detected