Skip to content

Commit 1d20c5a

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: PipeScript.Languages/Interpreters.All ( Fixes #838 )
1 parent 58e0210 commit 1d20c5a

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

PipeScript.types.ps1xml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2656,6 +2656,39 @@ foreach ($prop in $this.psobject.properties) {
26562656

26572657
</Script>
26582658
</ScriptMethod>
2659+
<ScriptProperty>
2660+
<Name>All</Name>
2661+
<GetScriptBlock>
2662+
&lt;#
2663+
.SYNOPSIS
2664+
Gets all Languages
2665+
.DESCRIPTION
2666+
Gets all currently loaded language definitions in PipeScript.
2667+
#&gt;
2668+
,@(foreach ($psProperty in $this.PSObject.properties) {
2669+
if ($psProperty -isnot [psnoteproperty]) { continue }
2670+
if ($psProperty.Value -isnot [PSObject]) { continue }
2671+
if ($prop.IsInstance -and $prop.Value.LanguageName) {
2672+
$psProperty.Value
2673+
}
2674+
})
2675+
</GetScriptBlock>
2676+
<SetScriptBlock>
2677+
&lt;#
2678+
.SYNOPSIS
2679+
Gets all Languages
2680+
.DESCRIPTION
2681+
Gets all currently loaded language definitions in PipeScript.
2682+
#&gt;
2683+
,@(foreach ($psProperty in $this.PSObject.properties) {
2684+
if ($psProperty -isnot [psnoteproperty]) { continue }
2685+
if ($psProperty.Value -isnot [PSObject]) { continue }
2686+
if ($prop.IsInstance -and $prop.Value.LanguageName) {
2687+
$psProperty.Value
2688+
}
2689+
})
2690+
</SetScriptBlock>
2691+
</ScriptProperty>
26592692
<ScriptProperty>
26602693
<Name>Count</Name>
26612694
<GetScriptBlock>
@@ -2811,6 +2844,24 @@ foreach ($prop in $this.psobject.properties) {
28112844

28122845
</Script>
28132846
</ScriptMethod>
2847+
<ScriptProperty>
2848+
<Name>All</Name>
2849+
<GetScriptBlock>
2850+
&lt;#
2851+
.SYNOPSIS
2852+
Gets all Languages
2853+
.DESCRIPTION
2854+
Gets all currently loaded language definitions in PipeScript.
2855+
#&gt;
2856+
,@(foreach ($psProperty in $this.PSObject.properties) {
2857+
if ($psProperty -isnot [psnoteproperty]) { continue }
2858+
if ($psProperty.Value -isnot [PSObject]) { continue }
2859+
if ($prop.IsInstance -and $prop.Value.LanguageName) {
2860+
$psProperty.Value
2861+
}
2862+
})
2863+
</GetScriptBlock>
2864+
</ScriptProperty>
28142865
<ScriptProperty>
28152866
<Name>Count</Name>
28162867
<GetScriptBlock>

0 commit comments

Comments
 (0)