| 5 | |
| 6 | |
| 7 | class ExecCommand(DockerComposeCommand): |
| 8 | command: str |
| 9 | |
| 10 | def __init__(self, command): |
| 11 | super().__init__() |
| 12 | self.command = command |
| 13 | |
| 14 | def run(self): |
| 15 | self.project.prepare_if_needed() |
| 16 | |
| 17 | working_dir = self.env.get_working_dir() |
| 18 | return self.docker_compose.run(working_dir=working_dir, command=self.command) |
| 19 |