Various additions
dps is now an Alias to Get-DockerProcess Get-DockerProcess has been cleaned up and search features added to it. Added FromPowerShellCookbook, which loads a piece of code from the module, but does not load the entire module. MyConfig now includes ansible and tmux configs, also added -sudo switch Get-PlexInfo added, with ability to read directly from Server Invoke-ViaAnsible modified - cleaned up output Added -Force to Edit-DockerCompose dcc modified to read from raw log (which allows filtering by source, and has timestamps)
This commit is contained in:
parent
59a2949268
commit
ac9c5ed352
10 changed files with 80 additions and 20 deletions
|
@ -1,14 +1,14 @@
|
|||
[CmdletBinding(SupportsShouldProcess)]param([string[]]$ProjectPath=@($PWD))
|
||||
[CmdletBinding(SupportsShouldProcess)]param([string[]]$ProjectPath=@($PWD),[switch]$Force)
|
||||
|
||||
$local:editCandidates = @('docker-compose.yml','.base.docker-compose.yml')
|
||||
$local:editFiles = @()
|
||||
foreach( $local:fileName in $EditCandidates ) {
|
||||
foreach( $local:path in $ProjectPath ) {
|
||||
$local:testPath = Join-Path $path $fileName
|
||||
if( Test-Path $testPath ) { $editFiles += $testPath }
|
||||
if( $Force -or $(Test-Path $testPath) ) { $editFiles += $testPath }
|
||||
}
|
||||
}
|
||||
|
||||
Edit-TextFile $editFiles
|
||||
|
||||
docker-compose config -q
|
||||
$editFiles | Select-Object -First 1 | ForEach-Object { docker-compose --file $(Resolve-Path $_) config -q }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue