11 lines
370 B
PowerShell
11 lines
370 B
PowerShell
|
#[CmdletBinding(SupportsShouldProcess)]param()
|
||
|
|
||
|
$local:dcParams = [string]::Empty
|
||
|
if( $args ) {
|
||
|
$dcParams = $args | ForEach-Object {
|
||
|
if( $_ -match "(?:^'[^']+'$)|(?:^`"[^`"]+`"$)|(?:^[^\s]+$)" ) { $_ }
|
||
|
else { "'$($_.Replace( "'", "''" ))'" }
|
||
|
}
|
||
|
}
|
||
|
docker-compose up -d --remove-orphans $dcParams && docker-compose logs --follow --tail 10 $dcParams
|