20 lines
594 B
PowerShell
20 lines
594 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( $CliParams[0] -is [string] ) { $CliParams = @($CliParams,@($null)) }
|
|
$CliParams[0] = @('exec') + $CliParams[0]
|
|
|
|
Invoke-DockerCompose -ProjectPath $ProjectPath -CliParams $CliParams
|