From 440c9a4a7764ccd251d3a0e2502b05cf4dbf09a0 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Fri, 11 Aug 2023 23:44:21 +0000 Subject: [PATCH] Adding PSModuleInfo.Link (Fixes #157) --- Posh.types.ps1xml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 4e4af1d..0cc19f9 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -2289,10 +2289,22 @@ $posh.ExecutionContext.SessionState.PSVariable.Set("function:$($this.FunctionNam Demos Demo + + Links + Link + Recommendations Recommendation + + Resource + Link + + + Resources + Link + Screenshots Screenshot @@ -2385,6 +2397,31 @@ $this | Select-Object -Unique + + Link + + <# +.SYNOPSIS + Gets Module Links +.DESCRIPTION + Lists hyperlinks from this module. +.EXAMPLE + $posh.Links +#> +$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") + + + + Logo