add parsers

This commit is contained in:
Maxim Lobanov
2020-12-09 11:06:04 +03:00
parent 4b0fa42d99
commit be051a1f12
8 changed files with 173 additions and 67 deletions

View File

@@ -0,0 +1,19 @@
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"
}
}
}