Skip to content

Commit

Permalink
Get-RscHelp -Interface -ImplementingTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
guirava committed Mar 30, 2024
1 parent 7af7340 commit fbbca20
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ function Get-RscHelp {
)]
[Switch]$Interface,

[Parameter(
ParameterSetName = 'Interface',
HelpMessage = 'Only show the implementing types.'
)]
[Switch]$ImplementingTypes,

[Parameter(
ParameterSetName = 'Input',
HelpMessage = 'Look up an input by name.'
Expand Down Expand Up @@ -311,6 +317,10 @@ function Get-RscHelp {
foreach ($value in $enumValues) {
# if it's an exact match, print interface info
if ( $value -eq $Match ) {
if ($ImplementingTypes) {
Get-RscType -Interface $value
return
}
try {
Write-Output "# Types that implement interface ${value}:"
$info = Get-RscType -Interface $value
Expand Down

0 comments on commit fbbca20

Please sign in to comment.