| 624 | } |
| 625 | |
| 626 | pub fn move_file(&self, request: pb::MoveFileRequest) -> CliResult<pb::MoveFileResponse> { |
| 627 | self.call(move |backend| async move { |
| 628 | match backend { |
| 629 | Backend::Local(state) => { |
| 630 | services::MutationImpl { state } |
| 631 | .move_file(Request::new(request)) |
| 632 | .await |
| 633 | .map(|response| response.into_inner()) |
| 634 | } |
| 635 | Backend::Reactor(channel) => { |
| 636 | let mut mutation = |
| 637 | pb::repository_mutation_service_client::RepositoryMutationServiceClient::new(channel); |
| 638 | mutation.move_file(request).await.map(|response| response.into_inner()) |
| 639 | } |
| 640 | } |
| 641 | }) |
| 642 | } |
| 643 | |
| 644 | pub fn unrecord(&self, request: pb::UnrecordRequest) -> CliResult<pb::UnrecordResponse> { |
| 645 | self.call(move |backend| async move { |