CloudiQ.psm1
# ------------- Cloud-iQ ------------- # # Dot sourcing all available functions # $functionTypes = @( '/' '/organization/' '/subscription/' ) foreach ($function in $functionTypes) { Get-ChildItem -Name "*.ps1" -Path ($PSScriptRoot + "/functions" + $function) | ForEach-Object { . ($PSScriptRoot + "/functions" + $function + $_) } } # Setting alias # New-Alias -Name 'ciqc' -Value 'Connect-CloudiQ' -Description 'Connect to Cloud-iQ' New-Alias -Name 'ciqgo' -Value 'Get-CloudiQOrganization' -Description 'Get organizations' New-Alias -Name 'ciqgs' -Value 'Get-CloudiQSubscription' -Description 'Get subscriptions' New-Alias -Name 'ciqss' -Value 'Set-CloudiQSubscription' -Description 'Update subscription' |