diff --git a/docker/Edit-DockerCompose.ps1 b/docker/Edit-DockerCompose.ps1 index 5efefad..41f332b 100644 --- a/docker/Edit-DockerCompose.ps1 +++ b/docker/Edit-DockerCompose.ps1 @@ -51,4 +51,4 @@ $FinalEditList = @() + $FinalEditList + @() + $AdditionalFiles Edit-TextFile $FinalEditList -$editFiles | Select-Object -First 1 | ForEach-Object { docker-compose --file $(Resolve-Path $_) config -q } +dcc -ProjectPath $ProjectPath -TestOnly diff --git a/docker/dcc.ps1 b/docker/dcc.ps1 index 2d2f3cb..58f2839 100644 --- a/docker/dcc.ps1 +++ b/docker/dcc.ps1 @@ -8,7 +8,11 @@ ) [DockerComposeDirs]::_GetValidValues($wordToComplete,$true) })] - [string[]]$ProjectPath=@($PWD) + [string[]]$ProjectPath=@($PWD), + [switch]$TestOnly ) -Invoke-DockerCompose -ProjectPath $ProjectPath 'config' | Out-String -Stream | less +$local:out = Invoke-DockerCompose -ProjectPath $ProjectPath 'config' | Out-String -Stream +if( -not $TestOnly ) { + $out | less +}