Skip to content

Commit

Permalink
feat: PipeScript.Languages.ExcludePath ( Fixes #877 )
Browse files Browse the repository at this point in the history
  • Loading branch information
StartAutomating authored and StartAutomating committed Jan 12, 2024
1 parent 7983d81 commit 4660afe
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions PipeScript.types.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -2726,6 +2726,43 @@ foreach ($prop in $this.psobject.properties) {
return $count
</SetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>ExcludePath</Name>
<GetScriptBlock>
&lt;#
.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.
#&gt;
param()

if ($null -eq $this.'.ExcludePath'.Length) {
Add-Member -InputObject $this -Force -MemberType NoteProperty -Name '.ExcludePath' -Value @()
}

return $this.'.ExcludePath'
</GetScriptBlock>
<SetScriptBlock>
&lt;#
.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.
#&gt;
param()

if ($null -eq $this.'.ExcludePath'.Length) {
Add-Member -InputObject $this -Force -MemberType NoteProperty -Name '.ExcludePath' -Value @()
}

return $this.'.ExcludePath'
</SetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>ExcludePattern</Name>
<GetScriptBlock>
Expand Down Expand Up @@ -2923,6 +2960,44 @@ foreach ($prop in $this.psobject.properties) {
return $count
</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>ExcludePath</Name>
<GetScriptBlock>
&lt;#
.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.
#&gt;
param()

if ($null -eq $this.'.ExcludePath'.Length) {
Add-Member -InputObject $this -Force -MemberType NoteProperty -Name '.ExcludePath' -Value @()
}

return $this.'.ExcludePath'
</GetScriptBlock>
<SetScriptBlock>
&lt;#
.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.
#&gt;
$paths = @(foreach ($arg in $args | . { process { $_ }}) {
"$arg"
})

Add-Member -InputObject $this -Force -MemberType NoteProperty -Name '.ExcludePath' -Value $paths

</SetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>ExcludePattern</Name>
<GetScriptBlock>
Expand Down

0 comments on commit 4660afe

Please sign in to comment.