| 30 | |
| 31 | |
| 32 | class Container(Type): |
| 33 | @typecheck |
| 34 | def with_exec(self, args: Sequence[str]) -> "Container": |
| 35 | return Container(self._ctx) |
| 36 | |
| 37 | @typecheck |
| 38 | def with_env_variable(self, name: str, value: str) -> "Container": |
| 39 | return Container(self._ctx) |
| 40 | |
| 41 | @typecheck |
| 42 | def with_directory(self, path: str, directory: "Directory") -> "Container": |
| 43 | return Container(self._ctx) |
| 44 | |
| 45 | @typecheck |
| 46 | def with_file(self, path: str, source: "File") -> "Container": |
| 47 | return Container(self._ctx) |
| 48 | |
| 49 | |
| 50 | class Directory(Type): |
no outgoing calls