FpsGeneral.psm1

# Logging
$CmdLets = @(
    'Convertto-TextAsciiArt.ps1'
    'New-FpsLogFile.ps1'
    'Write-DebugInfo.ps1'
    'Write-StartProcessLine.ps1'
    'Write-EndProcessLine.ps1'    
    'Write-Title.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 $_}

# Validations
$CmdLets += @(
    'Test-BitProcess.ps1'
    'Test-ElevatedRights.ps1'
    'Test-FileExists.ps1'
    'Test-PathLifetime.ps1'
    'Test-PsVersion.ps1'
    'Test-Preconditions.ps1'
    'Test-PsLanguageMode.ps1'
    'Test-ReadWriteAccessFile.ps1'
    'Test-ServiceNotExistsError.ps1'
    'Test-StringNullOrEmpty.ps1'
    'Test-UserWriteAccessToFolder.ps1'    
) | ForEach-Object {Join-Path -Path 'Functions\Validations' -ChildPath $_}

# General functions
$CmdLets += @(
    'Add-RowToExcelSheet.ps1'    
    'Convert-LocalPathToUncPath.ps1'
    'Convert-UncPathToLocalPath.ps1'
    'Copy-SourceFileToTargetFile.ps1'
    'Expand-DatabaseFromZipFile'
    'Get-LastLineFromArray.ps1'
    'Invoke-ShrinkDatabaseLogFile.ps1'
    'New-ImpersonateUser.ps1'
    'Set-ItemDateTime.ps1'
    'Set-LocalBakFileNameFromServerBakFileName.ps1'
    'Show-MessageBox.ps1'
) | ForEach-Object {Join-Path -Path 'Functions' -ChildPath $_}

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