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)]
|
|
|
|
[string[]]$CliParams
|
|
|
|
)
|
|
|
|
|
|
|
|
$ProjectPath | ForEach-Object {
|
|
|
|
docker-compose --file $(Resolve-Path $(Join-Path $_ docker-compose.yml)) down --timeout=3 --volumes --remove-orphans "$CliParams"
|
|
|
|
}
|