mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 19:50:24 +00:00
21 lines
569 B
PowerShell
21 lines
569 B
PowerShell
using module "./node-parser.psm1"
|
|
using module "./go-parser.psm1"
|
|
using module "./python-parser.psm1"
|
|
using module "./xamarin-parser.psm1"
|
|
|
|
function Get-ToolVersionsParser {
|
|
param(
|
|
[Parameter(Mandatory)]
|
|
[string]$ToolName
|
|
)
|
|
|
|
switch ($ToolName) {
|
|
"Node" { return [NodeVersionsParser]::New() }
|
|
"Go" { return [GoVersionsParser]::New() }
|
|
"Python" { return [PythonVersionsParser]::New() }
|
|
"Xamarin" { return [XamarinversionsParser]::New() }
|
|
Default {
|
|
throw "Unknown tool name"
|
|
}
|
|
}
|
|
} |