Escape.psm1
|
$commandsPath = Join-Path $PSScriptRoot Commands foreach ($file in Get-ChildItem -File -Recurse -Path $commandsPath) { if ($file.Extension -ne '.ps1') { continue } if ($file.Name -like '*.*.ps1') { continue } . $file.FullName } $escape = [PSCustomObject]@{PSTypeName='Escape.Sequence'} $esc = [PSCustomObject]@{PSTypeName='Escape.Sequence'} Export-ModuleMember -Function Get-Escape -Variable escape, esc |