File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ @ {
2+ Distinct = ' Unique'
3+ }
Original file line number Diff line number Diff line change 1+ <#
2+ . SYNOPSIS
3+ Gets unique Language Functions
4+ . DESCRIPTION
5+ Gets unique functions related to a language.
6+ #>
7+ $distinctCommands = @ {}
8+ , @ (foreach ($psProperty in $this.PSObject.properties ) {
9+ if ($psProperty -isnot [psnoteproperty ]) { continue }
10+ if ($psProperty.Value -isnot [Management.Automation.CommandInfo ]) { continue }
11+ if (
12+ $psProperty.Value -is [Management.Automation.AliasInfo ] -and
13+ (
14+ $distinctCommands [$psProperty.Value.ResolvedCommand ] -or
15+ $this.PSObject.Properties [$psProperty.Value.ResolvedCommand.Name ]
16+ )
17+ ) {
18+ continue
19+ }
20+ $distinctCommands [$psProperty.Value ] = $psProperty.Value
21+ $psProperty.Value
22+ })
Original file line number Diff line number Diff line change 1+ @ {
2+ Distinct = ' Unique'
3+ }
Original file line number Diff line number Diff line change 1+ <#
2+ . SYNOPSIS
3+ Gets unique Language Templates
4+ . DESCRIPTION
5+ Gets unique templates related to a language.
6+ #>
7+ $distinctCommands = @ {}
8+ , @ (foreach ($psProperty in $this.PSObject.properties ) {
9+ if ($psProperty -isnot [psnoteproperty ]) { continue }
10+ if ($psProperty.Value -isnot [Management.Automation.CommandInfo ]) { continue }
11+ if (
12+ $psProperty.Value -is [Management.Automation.AliasInfo ] -and
13+ (
14+ $distinctCommands [$psProperty.Value.ResolvedCommand ] -or
15+ $this.PSObject.Properties [$psProperty.Value.ResolvedCommand.Name ]
16+ )
17+ ) {
18+ continue
19+ }
20+ $distinctCommands [$psProperty.Value ] = $psProperty.Value
21+ $psProperty.Value
22+ })
You can’t perform that action at this time.
0 commit comments