14 lines
599 B
Text
14 lines
599 B
Text
|
|
{
|
||
|
|
"enabled": true,
|
||
|
|
"name": "Start Forgejo Tunnel",
|
||
|
|
"description": "Starts the SSH tunnel to Forgejo (localhost:3000 → 192.168.122.102:3000) when a prompt is submitted, ensuring the Forgejo extension and Git operations work.",
|
||
|
|
"version": "1",
|
||
|
|
"when": {
|
||
|
|
"type": "promptSubmit"
|
||
|
|
},
|
||
|
|
"then": {
|
||
|
|
"type": "runCommand",
|
||
|
|
"command": "powershell -Command \"if (-not (Test-NetConnection -ComputerName localhost -Port 3000 -InformationLevel Quiet -WarningAction SilentlyContinue)) { Start-Process ssh -ArgumentList '-N','forgejo-tunnel' -WindowStyle Hidden }\"",
|
||
|
|
"timeout": 10
|
||
|
|
}
|
||
|
|
}
|