FpsGeneral.psm1

# Logging
$CmdLets = @(
    'Convertto-TextAsciiArt.ps1'
    'Write-DebugInfoToOutput.ps1'
    'Write-StartProcessLine.ps1'
    'Write-EndProcessLine.ps1'    
) | ForEach-Object {Join-Path -Path 'Functions\Logging' -ChildPath $_}

# ModuleManagement
$CmdLets += @(
    'Import-FpsModule.ps1'
    'Install-FpsRepository.ps1'
    'Install-FpsTools.ps1'
) | ForEach-Object {Join-Path -Path 'Functions\ModuleManagement' -ChildPath $_}

# PersonalAccessToken
$CmdLets += @(
    'Get-FpsAzDoPat.ps1'
    'Set-FpsAzDoPat.ps1'
    'Test-FpsAzDoPat.ps1'
    'Test-FpsAzDoPatFeedAccess.ps1'
) | ForEach-Object {Join-Path -Path 'Functions\PersonalAccessToken' -ChildPath $_}

# RemotePS
$CmdLets += @(
    'Add-TrustedHost.ps1'
    'Clear-TrustedHosts.ps1'
    'Get-IpAddressFromHostname.ps1'
    'Get-TrustedHosts.ps1'
    'Remove-TrustedHosts.ps1'
    'Set-TrustedHosts.ps1'
) | ForEach-Object {Join-Path -Path 'Functions\RemotePS' -ChildPath $_}

# General functions
$CmdLets += @(
    'Add-RowToExcelSheet.ps1'    
    'Check-FileExists.ps1'
    'Check-ServiceNotExistsError.ps1'
    'Check-StringNullOrEmpty.ps1'
    'Check-UserWriteAccessToFolder.ps1'    
    'Confirm-PowershellSessionHasAdministratorRole.ps1'
    'Convert-LocalPathToUncPath.ps1'
    'Convert-UncPathToLocalPath.ps1'
    'Copy-SourceFileToTargetFile.ps1'
    'Extract-DatabaseFromZipFile'
    'Get-LastLineFromArray.ps1'
    'Invoke-ShrinkDatabaseLogFile.ps1'
    'New-ImpersonateUser.ps1'
    'Set-ItemDateTime.ps1'
    'Set-LocalBakFileNameFromServerBakFileName.ps1'
    'Show-MessageBox.ps1'
    'Test-PathLifetime'
    'Test-ReadWriteAccessFile'
) | ForEach-Object {Join-Path -Path 'Functions' -ChildPath $_}

$CmdLets | ForEach-Object {
    . (Join-Path -Path $PSScriptRoot -ChildPath $_)
}