Closed
Description
In order to shorten code while developing modules, [Include] should allow for a wildcard.
Example:
{
[Include('*-*.ps1')]$psScriptRoot
} | .>PipeScript
Should become:
foreach ($file in (Get-ChildItem -Path "$psScriptRoot" -Filter "*-*.ps1" -Recurse)) {
if ($file.Extension -ne '.ps1') { continue }
. $file.FullName
}