dcc -OnlyTest switch now works

This commit is contained in:
lksz 2021-01-23 22:07:36 -05:00
parent 4318bfc7a8
commit d1e24fa7eb
2 changed files with 7 additions and 3 deletions

View File

@ -51,4 +51,4 @@ $FinalEditList = @() + $FinalEditList + @() + $AdditionalFiles
Edit-TextFile $FinalEditList Edit-TextFile $FinalEditList
$editFiles | Select-Object -First 1 | ForEach-Object { docker-compose --file $(Resolve-Path $_) config -q } dcc -ProjectPath $ProjectPath -TestOnly

View File

@ -8,7 +8,11 @@
) )
[DockerComposeDirs]::_GetValidValues($wordToComplete,$true) [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
}