Skip to content

Commit 58e0210

Browse files
author
James Brundage
committed
feat: PipeScript.Languages/Interpreters.All ( Fixes #838 )
1 parent 005910f commit 58e0210

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<#
2+
.SYNOPSIS
3+
Gets all Languages
4+
.DESCRIPTION
5+
Gets all currently loaded language definitions in PipeScript.
6+
#>
7+
,@(foreach ($psProperty in $this.PSObject.properties) {
8+
if ($psProperty -isnot [psnoteproperty]) { continue }
9+
if ($psProperty.Value -isnot [PSObject]) { continue }
10+
if ($prop.IsInstance -and $prop.Value.LanguageName) {
11+
$psProperty.Value
12+
}
13+
})

0 commit comments

Comments
 (0)