Skip to content

Include Transpiler should allow wildcard-based dot sourcing #81

Closed
@StartAutomating

Description

@StartAutomating

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
}

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions