Skip to content

Commit

Permalink
Adding PSModuleInfo.Link (Fixes #157)
Browse files Browse the repository at this point in the history
  • Loading branch information
StartAutomating authored and StartAutomating committed Aug 11, 2023
1 parent 415afc5 commit 440c9a4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Posh.types.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -2289,10 +2289,22 @@ $posh.ExecutionContext.SessionState.PSVariable.Set("function:$($this.FunctionNam
<Name>Demos</Name>
<ReferencedMemberName>Demo</ReferencedMemberName>
</AliasProperty>
<AliasProperty>
<Name>Links</Name>
<ReferencedMemberName>Link</ReferencedMemberName>
</AliasProperty>
<AliasProperty>
<Name>Recommendations</Name>
<ReferencedMemberName>Recommendation</ReferencedMemberName>
</AliasProperty>
<AliasProperty>
<Name>Resource</Name>
<ReferencedMemberName>Link</ReferencedMemberName>
</AliasProperty>
<AliasProperty>
<Name>Resources</Name>
<ReferencedMemberName>Link</ReferencedMemberName>
</AliasProperty>
<AliasProperty>
<Name>Screenshots</Name>
<ReferencedMemberName>Screenshot</ReferencedMemberName>
Expand Down Expand Up @@ -2385,6 +2397,31 @@ $this |
Select-Object -Unique
</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Link</Name>
<GetScriptBlock>
&lt;#
.SYNOPSIS
Gets Module Links
.DESCRIPTION
Lists hyperlinks from this module.
.EXAMPLE
$posh.Links
#&gt;
$this.LinkList(@(
$this.PrivateData.Link
$this.PrivateData.Links
$this.PrivateData.Resource
$this.PrivateData.Resources
$this.PrivateData.PSData.Link
$this.PrivateData.PSData.Links
$this.PrivateData.PSData.Resource
$this.PrivateData.PSData.Resources
), "Posh.Module.Link")


</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Logo</Name>
<GetScriptBlock>
Expand Down

0 comments on commit 440c9a4

Please sign in to comment.