Returns lines that match a pattern in the files of the provided Directory
(self, directory_arg: dagger.Directory, pattern: str)
| 11 | |
| 12 | @function |
| 13 | async def grep_dir(self, directory_arg: dagger.Directory, pattern: str) -> str: |
| 14 | """Returns lines that match a pattern in the files of the provided Directory""" |
| 15 | return await ( |
| 16 | dag.container() |
| 17 | .from_("alpine:latest") |
| 18 | .with_mounted_directory("/mnt", directory_arg) |
| 19 | .with_workdir("/mnt") |
| 20 | .with_exec(["grep", "-R", pattern, "."]) |
| 21 | .stdout() |
| 22 | ) |
nothing calls this directly
no test coverage detected