Merge pull request #1 from mtdcr/compose-executable
docker_compose_command: Accept 'docker compose' in config
This commit is contained in:
commit
192f6c1444
|
@ -41,5 +41,5 @@ def get_compose_file(service_path: Path) -> Path:
|
||||||
def docker_compose_command(commands: List[str], compose_file: Path):
|
def docker_compose_command(commands: List[str], compose_file: Path):
|
||||||
ctx = click.get_current_context()
|
ctx = click.get_current_context()
|
||||||
config = ctx.obj["CONFIG"]
|
config = ctx.obj["CONFIG"]
|
||||||
cmd = [config.compose_executable, "-f", compose_file] + list(commands)
|
cmd = config.compose_executable.split() + ["-f", compose_file] + list(commands)
|
||||||
subprocess.run(cmd)
|
subprocess.run(cmd)
|
||||||
|
|
Loading…
Reference in New Issue