-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: PipeScript.Languages.ExcludePath ( Fixes #877 )
- Loading branch information
James Brundage
committed
Jan 12, 2024
1 parent
0155e19
commit 93e107e
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<# | ||
.SYNOPSIS | ||
Gets Excluded Paths for all languages. | ||
.DESCRIPTION | ||
Gets any excluded paths for interpreted languages in PipeScript. | ||
If a command is like any of these paths, it should not be interpreted. | ||
#> | ||
param() | ||
|
||
if ($null -eq $this.'.ExcludePath'.Length) { | ||
Add-Member -InputObject $this -Force -MemberType NoteProperty -Name '.ExcludePath' @() | ||
} | ||
|
||
return $this.'.ExcludePath' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<# | ||
.SYNOPSIS | ||
Changes the Exclusion Paths | ||
.DESCRIPTION | ||
Sets any excluded paths for interpreted languages in PipeScript. | ||
If a command matches any of these patterns, it should not be interpreted. | ||
.NOTES | ||
Excluded paths will be processed as wildcards. | ||
#> | ||
$paths = @(foreach ($arg in $args | . { process { $_ }}) { | ||
"$arg" | ||
}) | ||
|
||
Add-Member -InputObject $this -Force -MemberType NoteProperty -Name '.ExcludePath' -Value $paths |