Fixes and completion of Invoke-DockerCompose

This commit is contained in:
Gal 2021-01-15 01:56:10 -05:00
parent dcc9113cda
commit a7ac392886
3 changed files with 23 additions and 15 deletions

View file

@ -15,7 +15,7 @@
[switch]$NoPull,
[array]$PullParams,
[array]$LogsParams,
[array]$UpParams,
[array]$UpParams=@('-d'),
[Parameter(Position = 0, ValueFromRemainingArguments = $true)]
[array]$Containers
)
@ -48,7 +48,8 @@ $PullParams[0] = @('&','pull' ) + $PullParams[0] + $Containers
$UpParams[0] = @('&', 'up' ) + $UpParams[0] + $Containers
$LogsParams[0] = @('logs' ) + $LogsParams[0] + $Containers
$local:allParams = $PullParams + @(@('!')) + $UpParams
if( -not $NoPull ) { $allParams += $PullParams + @(@('!')) }
$local:allParams += $UpParams
if( -not $NoLogs ) { $allParams += @(@('!')) + $LogsParams }
Invoke-DockerCompose -ProjectPath $ProjectPath -CliParams $allParams -Recurse:$Recurse -Depth $Depth