Added DockerCompose completion + fixes
This commit is contained in:
parent
b5b5702b17
commit
d441492cf0
24 changed files with 207 additions and 147 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue