Test/testGinShell.ps1
cd $PSScriptRoot Remove-Module GinShell import-module ..\GinShell.psd1 -Verbose # Test if module is loaded $module = Get-Module GinShell if ($module) { Write-Host "GinShell module is loaded successfully" Write-Host "Module Version: $($module.Version)" Write-Host "Module Path: $($module.Path)" Write-Host "`nExported Functions:" $module.ExportedFunctions.Keys | ForEach-Object { Write-Host "- $_" } Write-Host "`nExported Cmdlets:" $module.ExportedCmdlets.Keys | ForEach-Object { Write-Host "- $_" } Write-Host "`nExported Variables:" $module.ExportedVariables.Keys | ForEach-Object { Write-Host "- $_" } # Test Write-Log function Write-Host "`nTesting Test-GinShell function..." Test-GinShell # Test Write-Log function Write-Host "`nTesting Writ-Log function..." Write-Log -Message "Test message" -LogLevel Info -EnableFileLogging $true } else { Write-Error "GinShell module failed to load!" } |