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