LaunchLibrary.psm1
|
$script:ModuleRoot = $PSScriptRoot foreach ($file in @(Get-ChildItem -Path (Join-Path $PSScriptRoot 'Private') -Filter '*.ps1' -File | Sort-Object Name)) { . $file.FullName } foreach ($file in @(Get-ChildItem -Path (Join-Path $PSScriptRoot 'Public') -Filter '*.ps1' -File | Sort-Object Name)) { . $file.FullName } Initialize-LaunchLibraryResourceCommand $functionsToExport = @( 'Connect-LaunchLibrary' 'Disconnect-LaunchLibrary' 'Get-LaunchLibraryConnection' 'Get-LaunchLibraryEndpoint' 'Get-LaunchLibraryLaunchList' 'Get-LaunchLibraryNextEvent' 'Get-LaunchLibraryNextLaunch' 'Get-LaunchLibraryPreviousEvent' 'Get-LaunchLibraryPreviousLaunch' 'Get-LaunchLibraryResource' 'Get-LaunchLibraryUpcomingEvent' 'Get-LaunchLibraryUpcomingLaunch' 'Invoke-LaunchLibraryRequest' ) + @($script:LaunchLibraryResources.Command) Export-ModuleMember -Function $functionsToExport |