Update StackMonkey.ps1

This commit is contained in:
2025-06-29 03:39:13 -04:00
parent 7609cb4b2f
commit 080f548d81

View File

@@ -400,6 +400,15 @@ function Write-LogHybrid {
return
}
'UI' {
Write-LogHybrid "Launching UI" Info Startup
Write-Host "Starting ScriptMonkey UI on http://localhost:$Port/" -ForegroundColor Cyan
Start-Process "msedge.exe" -ArgumentList "--app=http://localhost:$Port"
Start-Server # blocks until you click Exit
return
}
}
#endregion ScriptMonkey run silently Entrypoint
@@ -1553,7 +1562,7 @@ function Start-Server {
#endregion
# Only launch the UI if were in the default UI parameter set
# Only launch the UI if we're in the default UI parameter set
if ($PSCmdlet.ParameterSetName -eq 'UI') {
# now that $Port is defined, show it properly:
Write-Host "Starting ScriptMonkey UI on http://localhost:$Port/" -ForegroundColor Cyan