init commit
This commit is contained in:
30
posh-PowerPlatformToolkit.psm1
Normal file
30
posh-PowerPlatformToolkit.psm1
Normal file
@@ -0,0 +1,30 @@
|
||||
#Using module posh-PowerPlatformToolkit
|
||||
|
||||
New-Variable -Name scriptRoot -Value $PSScriptRoot -Scope Script -Force
|
||||
|
||||
###########################
|
||||
# enums
|
||||
|
||||
|
||||
###########################
|
||||
# public classes
|
||||
|
||||
|
||||
###########################
|
||||
# public functions
|
||||
|
||||
$publicFunctions = @{
|
||||
Path = "$scriptRoot"
|
||||
Include = "*.ps1"
|
||||
Recurse = $true
|
||||
}
|
||||
|
||||
(Get-ChildItem @publicFunctions).Where({$_.FullName -notmatch 'bin'}) | ForEach-Object {. $_}
|
||||
|
||||
#Export-ModuleMember -Alias * -function *
|
||||
#Write-Host "┌───────────────────────────────────────────────────────────────┐" -ForegroundColor Green
|
||||
#Write-Host "│" -ForegroundColor Green -NoNewLine; Write-Host "`t`tCOMMANDS AVAIABLE IN MODULE`t`t`t" -ForegroundColor Cyan -NoNewline; Write-Host "│" -ForegroundColor Green
|
||||
#Write-Host "└───────────────────────────────────────────────────────────────┘" -ForegroundColor Green
|
||||
Get-Alias | ?{$_.Source -eq "posh-PowerPlatformToolkit"} | %{
|
||||
Write-Host "$($_.Name)" -ForegroundColor Green
|
||||
}
|
||||
Reference in New Issue
Block a user