Public/Xpand/Get-XpandPackageHome.ps1

function Get-XpandPackageHome {
    [CmdletBinding()]
    param (
        [parameter(ValueFromPipeline,ValueFromPipelineByPropertyName,Mandatory)]
        [string]$Id,
        [version]$Version,
        [switch]$Html
    )
    
    begin {
        
    }
    
    process {
        $homePage=$null
        if ($Id -like "Xpand.Extensions*"){
            $homePage="https://github.com/eXpandFramework/Reactive.XAF/tree/master/src/Extensions/$Id"
        }
        elseif ($Id -like "Xpand.XAF.Modules*"){
            $homePage="https://github.com/eXpandFramework/Reactive.XAF/tree/master/src/Modules/$($id.Replace('Xpand.XAF.Modules.',''))"
        }
        elseif ($Id -like "*.All"){
            $homePage="https://github.com/eXpandFramework/Reactive.XAF/tree/master/src/Modules"
        }
        elseif ($Id -like "*VersionConverter*"){
            $homePage="https://github.com/eXpandFramework/Reactive.XAF/tree/master/tools/Xpand.VersionConverter"
        }
        elseif ($Id -like "*ModelEditor*"){
            $homePage="https://github.com/eXpandFramework/Reactive.XAF/tree/master/tools/Xpand.XAF.ModelEditor"
        }
        elseif ($Id -like "*Tests*"){
            $homePage="https://github.com/eXpandFramework/Reactive.XAF/tree/master/src/tests"
        }
        else {
            throw $Id
        }
        if ($Version){
            if (!$Html){
                $homePage="[$Id v.$Version]($homePage)"
            }
            else{
                $homePage="<a href='$homePage'>$id v.$Version</a>"
            }
            
        }
        $homePage
    }
    
    end {
        
    }
}