20 lines
635 B
PowerShell
20 lines
635 B
PowerShell
[CmdletBinding(SupportsShouldProcess)]param(
|
|
[ArgumentCompleter({ param (
|
|
$commandName,
|
|
$parameterName,
|
|
$wordToComplete,
|
|
$commandAst,
|
|
$fakeBoundParameters
|
|
)
|
|
[DockerComposeDirs]::_GetValidValues($wordToComplete,$true)
|
|
})]
|
|
[string[]]$ProjectPath=@($PWD),
|
|
[Parameter(Position = 0, ValueFromRemainingArguments = $true)]
|
|
[array]$CliParams
|
|
)
|
|
|
|
if( -not $CliParams -or $CliParams[0] -is [string] ) { $CliParams = @($CliParams,@($null)) }
|
|
$CliParams[0] = @('logs','--tail=40','follow') + $CliParams[0]
|
|
|
|
Invoke-DockerCompose -ProjectPath $ProjectPath -CliParams $CliParams
|