3shape / docker-ci

Helps you build rock-solid Docker images. Written as a Powershell Core module. Install from PSGallery.
Apache License 2.0
5 stars 3 forks source link

Quiet is not #125

Open hilari0n opened 2 years ago

hilari0n commented 2 years ago

Not all commands seem to respect the Quiet switch. E.g. Invoke-DockerPull seems not to pass the Quiet switch to the Invoke-DockerCommand. Also the docker process output is written using Write-Information -InformationAction 'Continue', which means, that the caller can't properly control the information stream. E.g. using Invoke-DockerPull -InformationAction Ignore will not work as expected (the information output will still be produced). This means, that the only way of not having the Invoke-DockerCommand produce any output to the information channel, is by using the DOCKER_CI_QUIET_MODE environment variable, which is not very convenient, when you're writing a more complex automation/script where some output should be produced and some not.