feat: add 'open' command and Docker troubleshooting instructions

This commit is contained in:
Gemini AI
2025-12-14 02:43:03 +04:00
Unverified
parent 98dc79f2a1
commit 22bc03484f
2 changed files with 18 additions and 0 deletions

View File

@@ -166,6 +166,17 @@ switch ($Command.ToLower()) {
if (-not $found) { Write-Host "Could not find visible '$targetName' to click." }
}
"open" {
if ($Params.Count -lt 1) { Write-Error "Usage: open 'Path or URL'"; exit 1 }
$target = $Params -join " "
try {
Start-Process $target
Write-Host "Opened '$target'"
} catch {
Write-Error "Failed to open '$target': $_"
}
}
"apps" {
$apps = Get-Process | Where-Object { $_.MainWindowTitle -ne "" } | Select-Object Id, MainWindowTitle
if ($apps) {