You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
472 B
PowerShell
19 lines
472 B
PowerShell
using module "./node-parser.psm1"
|
|
using module "./go-parser.psm1"
|
|
using module "./python-parser.psm1"
|
|
|
|
function Get-ToolVersionsParser {
|
|
param(
|
|
[Parameter(Mandatory)]
|
|
[string]$ToolName
|
|
)
|
|
|
|
switch ($ToolName) {
|
|
"Node" { return [NodeVersionsParser]::New() }
|
|
"Go" { return [GoVersionsParser]::New() }
|
|
"Python" { return [PythonVersionsParser]::New() }
|
|
Default {
|
|
throw "Unknown tool name"
|
|
}
|
|
}
|
|
} |