Box.psm1

# OneDrive Fix
$Documents = [System.Environment]::GetFolderPath('MyDocuments')
if (-Not($env:PSModulePath -Contains $Documents)) {
  $ModulesPath = "$([System.Environment]::GetFolderPath('MyDocuments'))\WindowsPowerShell\Modules"
  $env:PSModulePath = "$ModulesPath;$env:PSModulePath"
}

$scripts = Get-ChildItem -Path $PSScriptRoot\*.ps1 -Exclude *.Tests.ps1, Build.ps1 -ErrorAction SilentlyContinue

Foreach ($script in @($scripts)) {
  Try {
    . $script.fullname
  }
  Catch {
    Write-Error -Message "Failed to import function $($script.fullname): $_"
  }
}

Export-ModuleMember -Function 'Connect-Azure', 'New-Azure', 'Remove-Azure', 'Update-Code', 'Start-Code', 'New-Hetzner', 'Remove-Hetzner', 'Connect-Isard', 'New-Isard', 'Connect-Ssh', 'Connect-VBox', 'Get-VBoxProcess', 'Get-VBox', 'New-VBox', 'Remove-VBox', 'Start-VBox', 'Stop-VBox'