Merge pull request #1 from mtdcr/compose-executable

docker_compose_command: Accept 'docker compose' in config
This commit is contained in:
jpk 2023-02-13 09:28:34 +01:00 committed by GitHub
commit 192f6c1444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,5 +41,5 @@ def get_compose_file(service_path: Path) -> Path:
def docker_compose_command(commands: List[str], compose_file: Path):
ctx = click.get_current_context()
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)