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:
parent
38dab59d62
commit
1bef8ca119
6 changed files with 51 additions and 11 deletions
10
dcdown.ps1
10
dcdown.ps1
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue