NSP.Console.psm1
|
# One function per file. Public commands are the only exported surface. # Private sentinel returned by Read-NSPNonEmpty / Read-NSPOptional -AllowBack; see Test-NSPBackSignal. $script:NSPBackSignal = '<<NSP.Console.Back:7f3c1e9a>>' $public = @(Get-ChildItem -Path (Join-Path $PSScriptRoot 'Public') -Filter '*.ps1' | Sort-Object Name) foreach ($file in $public) { try { . $file.FullName } catch { throw "NSP.Console: failed to load $($file.Name): $_" } } Export-ModuleMember -Function $public.BaseName |