Some modifications

Style default to slim theme
config updated to include bashrc
dcup, dcdown to work in parallel (supported by dco)
This commit is contained in:
lksz 2021-02-22 14:58:49 -05:00
parent c8869ae393
commit 4da3726760
8 changed files with 64 additions and 41 deletions

View file

@ -8,7 +8,7 @@
)
[DockerComposeDirs]::_GetValidValues($wordToComplete,$true)
})]
[string[]]$ProjectPath=@($PWD),
[string[]]$ProjectPath,
[switch]$Recurse,
[int]$Depth=1,
[switch]$Force,
@ -17,6 +17,8 @@
[array]$CliParams
)
if( -not $ProjectPath ) { $ProjectPath=@($PWD) }
$script:JobQueue = @()
$script:CleanupJobQueue = @()
function CompleteJobs {

View file

@ -8,13 +8,15 @@
)
[DockerComposeDirs]::_GetValidValues($wordToComplete,$true)
})]
[string[]]$ProjectPath=@($PWD),
[string[]]$ProjectPath,
[switch]$Recurse,
[int]$Depth=1,
[Parameter(Position = 0, ValueFromRemainingArguments = $true)]
[array]$CliParams=@('--timeout=3','--volumes','--remove-orphans')
)
if( $CliParams[0] -is [string] ) { $CliParams = @($CliParams,@($null)) }
$CliParams[0] = @('down') + $CliParams[0]
if( -not $CliParams -or $CliParams[0] -is [string] ) { $CliParams = @($CliParams,@($null)) }
$CliParams[0] = @('&','down') + $CliParams[0]
Invoke-DockerCompose -ProjectPath $ProjectPath -CliParams $CliParams
Invoke-DockerCompose -ProjectPath $ProjectPath -CliParams $CliParams -Recurse:$Recurse -Depth $Depth

View file

@ -46,10 +46,10 @@ if( -not $LogsParams[0] ) {
$local:moreParams = @()
#if( $ForceNoFollow ) { $moreParams = @('--no-color', '--quiet-pull') }
$PullParams[0] = @('pull' ) + $PullParams[0] + $Containers
if( $ForceNoFollow ) { $PullParams[0] = @('&') + $PullParams[0] }
$UpParams[0] = @('up' ) + $UpParams[0] + $Containers
if( $ForceNoFollow ) { $UpParams[0] = @('&') + $UpParams[0] }
$PullParams[0] = @('&', 'pull' ) + $PullParams[0] + $Containers
#if( $ForceNoFollow ) { $PullParams[0] = @('&') + $PullParams[0] }
$UpParams[0] = @('&', 'up' ) + $UpParams[0] + $Containers
#if( $ForceNoFollow ) { $UpParams[0] = @('&') + $UpParams[0] }
$LogsParams[0] = @('logs' ) + $LogsParams[0] + $Containers
if( -not $NoPull ) { $allParams += $PullParams + @(@('!')) }