Initial commit. Working and linked on PSGallery
This commit is contained in:
13
UnifiCLI.psm1
Normal file
13
UnifiCLI.psm1
Normal file
@@ -0,0 +1,13 @@
|
||||
# Module-scoped session state — shared across all dot-sourced functions
|
||||
$script:UnifiSession = $null
|
||||
$script:UnifiConfig = $null
|
||||
|
||||
# Load private helpers
|
||||
Get-ChildItem -Path "$PSScriptRoot\Private\*.ps1" -ErrorAction SilentlyContinue |
|
||||
ForEach-Object { . $_.FullName }
|
||||
|
||||
# Load public functions
|
||||
Get-ChildItem -Path "$PSScriptRoot\Public\*.ps1" -ErrorAction SilentlyContinue |
|
||||
ForEach-Object { . $_.FullName }
|
||||
|
||||
Set-Alias -Name 'unifi-cli' -Value Invoke-UnifiCli -Scope Global
|
||||
Reference in New Issue
Block a user