Added DockerCompose completion + fixes

This commit is contained in:
lksz 2021-03-23 01:06:49 -04:00
parent b5b5702b17
commit d441492cf0
24 changed files with 207 additions and 147 deletions

View file

@ -35,14 +35,10 @@ process {
}
$p = $p -replace '#C-A#','*' -replace '#C-Q#','?' -replace '#C-#','#C-'
if( $Expand ) {
$p = $p | ForEach-Object {
if( Test-Path $p ) {
$p | Get-Item -Force | Select-Object -ExpandProperty FullName
} elseif( -not $Expand ) {
$p
}
}
if( $p -match '\*|\?' -and $Expand ) {
$p = $p | Where-Object { Test-Path $_ } |
Get-Item -Force |
Select-Object -ExpandProperty FullName
}
$p