14 lines
484 B
PowerShell
14 lines
484 B
PowerShell
# 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
|