RealmJoin.psm1

# PowerShell Module structure based on https://stackoverflow.com/a/44512990/4054714

#Get public and private function definition files.
$Private = @( Get-ChildItem -Path $PSScriptRoot\source\Private\*.ps1 -ErrorAction Stop )
$Public = @( Get-ChildItem -Path $PSScriptRoot\source\Public\*.ps1 -ErrorAction Stop )

#Dot source the files
Foreach ($import in @($Private + $Public)) {
    Try {
        . $import.fullname
    }
    Catch {
        Write-Error -Message "Failed to import function $($import.fullname): $_"
    }
}


# Export public functions
Export-ModuleMember -Function New-RJTenant
Export-ModuleMember -Function Update-RJTenant
Export-ModuleMember -Function Show-RJFeatureInfo
Export-ModuleMember -Function Show-RJInteractiveSetup

# Export aliases
Export-ModuleMember -Alias Complete-RJTenantOnboarding