(
&self,
pattern: &str,
opts: ContentSearchOptions,
)
| 74 | } |
| 75 | |
| 76 | pub fn search_content( |
| 77 | &self, |
| 78 | pattern: &str, |
| 79 | opts: ContentSearchOptions, |
| 80 | ) -> Result<ContentSearchResult, RepositoryError> { |
| 81 | let plan = self.content_plan(pattern, opts).map_err(|error| { |
| 82 | RepositoryError::InvalidOperation { |
| 83 | message: format!("code search failed: {error}"), |
| 84 | } |
| 85 | })?; |
| 86 | self.search_content_plan(plan) |
| 87 | } |
| 88 | |
| 89 | pub fn content_plan( |
| 90 | &self, |