Image2Docker.psm1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
#requires -runasadministrator enum ImageType { Unknown VHDX WIM } ### Obtain the module path $ModulePath = $ExecutionContext.SessionState.Module.ModuleBase ### Import private (internal) functions $PrivateFunctionList = Get-ChildItem -Path $PSScriptRoot\Functions\Private -File -Filter *.ps1 -Recurse | Where-Object {$_.name -NotMatch "Tests.ps1"} foreach ($File in $PrivateFunctionList) { . $File.FullName } Remove-Variable -Name File ### Import public-facing functions $PublicFunctionList = Get-ChildItem -Path $PSScriptRoot\Functions\Public -File -Filter *.ps1 -Recurse | Where-Object {$_.name -NotMatch "Tests.ps1"} foreach ($File in $PublicFunctionList) { . $File.FullName } Remove-Variable -Name File Get-ChildItem -Path $PSScriptRoot\completers\*.ps1 | foreach { . $_.FullName} |