Initial commit. Working and linked on PSGallery

This commit is contained in:
2026-05-15 08:53:21 +08:00
commit 7c77363885
17 changed files with 1109 additions and 0 deletions

13
UnifiCLI.psm1 Normal file
View 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