New commands + fixes

+ Get-Mount (mounts retuned as objects for easy filtering)
+ Get-RandomMacAddress (for easy MAC Address generation)
* Get-Path modified to resolve ~, also made it work with pipeline input
* Edit-TextFile streamlined by using modified Get-Path
* Added emacs and spacemacs to MyConfig
* dcup - attempt at cleaner output
+ added docker/profile.d/env.ps1 for default docker vars
This commit is contained in:
lksz 2021-02-18 10:53:32 -05:00
parent f947b0b3b4
commit f7df96c55d
7 changed files with 127 additions and 78 deletions

View file

@ -15,7 +15,7 @@
[switch]$NoPull,
[array]$PullParams,
[array]$LogsParams,
[array]$UpParams=@('-d','--remove-orphans'),
[array]$UpParams=@('--detach','--remove-orphans'),
[Parameter(Position = 0, ValueFromRemainingArguments = $true)]
[array]$Containers
)
@ -44,6 +44,8 @@ if( -not $LogsParams[0] ) {
$logsParams[0] += @("--tail=$tailLen")
}
$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

5
docker/profile.d/env.ps1 Normal file
View file

@ -0,0 +1,5 @@
# 1 - Use native build, which is the default for docker compose
# Setting this supresses the following line, which would otherwise be displayed:
#### Building with native build. Learn about native build in
#### Compose here: https://docs.docker.com/go/compose-native-build/
$env:COMPOSE_DOCKER_CLI_BUILD=1