(
pattern: string,
path?: string,
options?: GrepOptions
)
| 642 | } |
| 643 | |
| 644 | async grep( |
| 645 | pattern: string, |
| 646 | path?: string, |
| 647 | options?: GrepOptions |
| 648 | ): Promise<GrepMatch[] | string[] | ops.GrepCountEntry[]> { |
| 649 | // grep is the only op that scans contents, so it is the only op that pays to |
| 650 | // materialize lazy artifacts — and only those within its scope. |
| 651 | await this.resolveLazyWithinScope(path) |
| 652 | return ops.grep(this.filesForPath(path), pattern, path, options) |
| 653 | } |
| 654 | |
| 655 | /** |
| 656 | * Grep the *content* of a single workspace file (under `files/`), as opposed to |
no test coverage detected