2021-01-15 06:15:54 +00:00
|
|
|
[CmdletBinding(SupportsShouldProcess)]param(
|
2021-03-23 05:06:49 +00:00
|
|
|
[ArgumentCompleter({Invoke-Command -ScriptBlock $_DockerComposeDirsCompleter -ArgumentList $args})]
|
2021-01-15 06:15:54 +00:00
|
|
|
[string[]]$ProjectPath=@($PWD),
|
|
|
|
[Parameter(Position = 0, ValueFromRemainingArguments = $true)]
|
2021-03-23 05:06:49 +00:00
|
|
|
[ArgumentCompleter({Invoke-Command -ScriptBlock $_DockerComposeCompleter -ArgumentList ($args+@("logs"))})]
|
2021-01-15 06:15:54 +00:00
|
|
|
[array]$CliParams
|
|
|
|
)
|
|
|
|
|
2021-02-10 23:26:48 +00:00
|
|
|
if( -not $CliParams -or $CliParams[0] -is [string] ) { $CliParams = @($CliParams,@($null)) }
|
2021-09-24 01:56:01 +00:00
|
|
|
$CliParams[0] = @('logs','--tail=40','--follow') + $CliParams[0]
|
2021-01-15 06:15:54 +00:00
|
|
|
|
|
|
|
Invoke-DockerCompose -ProjectPath $ProjectPath -CliParams $CliParams
|