Some general shortcuts
DockerCompose, Edit AdditionalFiles shortcut #/, #tr and #lsi created Set-MyPackage -LocalUser / -LocalHost shorthand.
This commit is contained in:
parent
0b644b7fdd
commit
6549d8683d
2 changed files with 35 additions and 6 deletions
|
@ -34,6 +34,15 @@ foreach( $local:ext in @('.yml', '.yaml') ) {
|
|||
}
|
||||
}
|
||||
|
||||
$AdditionalFiles = $AdditionalFiles | ForEach-Object {
|
||||
$_ -replace
|
||||
'^#lsi$','#/*linuxserver.yml' -replace
|
||||
'^#tr?$','#/*traefik.yml' -replace
|
||||
'^#/',"$env:SZ_DOCKER_SYSTEM_PATH"
|
||||
} |
|
||||
Get-ChildItem -Force |
|
||||
Select-Object -ExpandProperty FullName
|
||||
|
||||
$local:FinalEditList = $editFiles | Where-Object {$_} | Sort-Object {
|
||||
$local:n = [System.IO.Path]::GetFileName($_)
|
||||
Join-Path [PSystem.IO.ath]::GetDirectoryName($_) "$(if( $n[0] -eq '.' ) { "9" } else { "1" })$n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue