MihaMarkic / Cake.Docker

Cake AddIn that extends Cake with Docker
MIT License
47 stars 36 forks source link

Pre-command arguments are also inserted as post-command arguments #44

Closed TomaszG closed 6 years ago

TomaszG commented 6 years ago

Environment:

Code:

var dockerComposeUpSettings = new DockerComposeUpSettings
{
    Verbose = true
};
DockerComposeUp(dockerComposeUpSettings);

Current result:

The above code produces the following command: "C:/Program Files/Docker/Docker/Resources/bin/docker-compose.exe" --verbose up --verbose which is incorrect, the --verbose switch shouldn't be inserted as post-command argument.

Expected result:

"C:/Program Files/Docker/Docker/Resources/bin/docker-compose.exe" --verbose up command should be produced and executed.

This issue affects also other types of Docker Settings, not only Up.