2020-11-11 21:38:56 +00:00
|
|
|
[CmdletBinding(SupportsShouldProcess)]param(
|
2020-11-25 05:46:33 +00:00
|
|
|
[ArgumentCompleter({ param (
|
|
|
|
$commandName,
|
|
|
|
$parameterName,
|
|
|
|
$wordToComplete,
|
|
|
|
$commandAst,
|
|
|
|
$fakeBoundParameters
|
|
|
|
)
|
|
|
|
[DockerComposeDirs]::_GetValidValues($wordToComplete,$true)
|
|
|
|
})]
|
2020-11-11 21:38:56 +00:00
|
|
|
[string[]]$ProjectPath=@($PWD),
|
|
|
|
[Parameter(Position = 0, ValueFromRemainingArguments = $true)]
|
2021-01-15 06:15:54 +00:00
|
|
|
[array]$CliParams=@('--timeout=3','--volumes','--remove-orphans')
|
2020-11-11 21:38:56 +00:00
|
|
|
)
|
|
|
|
|
2021-01-15 06:15:54 +00:00
|
|
|
if( $CliParams[0] -is [string] ) { $CliParams = @($CliParams,@($null)) }
|
|
|
|
$CliParams[0] = @('down') + $CliParams[0]
|
|
|
|
|
|
|
|
Invoke-DockerCompose -ProjectPath $ProjectPath -CliParams $CliParams
|
|
|
|
|