Improved Export-FunctionSource + some Docker fixes

Export-FunctionSource to handle Filters and scripts + following Aliases.
Edit-DockerCompose will allow editing of additional files next to the
default docker-compose files.
dcc, dcdown and dcup to work with ProjectPath parameter.
Added ssh.conf to the config.files.json dictionary.
This commit is contained in:
lksz 2020-11-11 16:38:56 -05:00
parent 38dab59d62
commit 1bef8ca119
6 changed files with 51 additions and 11 deletions

View file

@ -1 +1,9 @@
docker-compose down --timeout=3 --volumes --remove-orphans "$args"
[CmdletBinding(SupportsShouldProcess)]param(
[string[]]$ProjectPath=@($PWD),
[Parameter(Position = 0, ValueFromRemainingArguments = $true)]
[string[]]$CliParams
)
$ProjectPath | ForEach-Object {
docker-compose --file $(Resolve-Path $(Join-Path $_ docker-compose.yml)) down --timeout=3 --volumes --remove-orphans "$CliParams"
}