MCPcopy Create free account
hub / github.com/benzaita/dockerized-cli / ExecCommand

Class ExecCommand

dockerized/core/commands/exec.py:7–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6
7class 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

Callers 1

execFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected