Files
onefuzz/task.ps1
2022-06-29 23:58:41 +00:00

16 lines
375 B
PowerShell
Executable File

#!/usr/bin/env pwsh
$mod = "$PSScriptRoot/src/ci/tasks.psm1"
Import-Module $mod
$cmdName = $args[0]
if ($null -eq $cmdName) {
Write-Output "Available Commands"
Write-Output "------------------"
(Get-Module $mod -ListAvailable).ExportedCommands.Values | Sort-Object -Property Name | ForEach-Object {
Write-Output $_.Name
}
} else {
& $cmdName
}