===> run-helpers/install.ps1
[main]
$Version = 'v3.0.4.0'
===> run-helpers/install.ps1: lines 2-15
# Install functions & modules
$module = 'functions','modules'
$InstallModule = {
param(
$module
)
$Module = Get-Module -ListAvailable -Name $module
if (-not $Module) {
Write-Host "Package $module is not installed, installing now..."
$Module.install()
}
throw "Could not find $module package."
}
if ($module -eq $module) {
$InstallModule
} else {
$InstallModule -module $module
[test]
$module = 'test'
$TestModule = {
$TestModule
$TestModule -module $module
# Skip functions
$SkipFunction = {
throw "No function module found for $module."
Related links:
Comments