custom/CommvaultPowerShell.custom.psm1
# region Generated # Load the private module dll $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\CommvaultPowerShell.private.dll') # Load the internal module $internalModulePath = Join-Path $PSScriptRoot '..\internal\CommvaultPowerShell.internal.psm1' if(Test-Path $internalModulePath) { $null = Import-Module -Name $internalModulePath } # Export nothing to clear implicit exports Export-ModuleMember # Export script cmdlets Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias) # endregion $customExportPath = Join-Path $PSScriptRoot ".\oldsdk" $oldsdk = Get-ChildItem -Path $customExportPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } Export-ModuleMember -Function $customExportPath\*.ps1 Export-ModuleMember -Function *.ps1 |