init.ps1
# use this file to define global variables on module scope # or perform other initialization procedures. # this file will not be touched when new functions are exported to # this module. # determine whether we are in Windows PowerShell or PowerShell 7 $folder = if ($PSVersionTable.PSVersion.Major -le 5) { Join-Path -Path $PSScriptRoot -ChildPath Binaries Write-Verbose "Loading .NET Binaries" } else { Join-Path -Path $PSScriptRoot -ChildPath BinariesPs7 Write-Verbose "Loading .NET Core Binaries" } $dllPath = Join-Path -Path $folder -ChildPath Terminal.Gui.Dll Add-Type -Path $dllPath |