| { |
| "version": "2.0.0", |
| "tasks": [ |
| { |
| "label": "Start Port Forwards", |
| "type": "shell", |
| "command": "${workspaceFolder}/.vscode/start-port-forwards.sh", |
| "isBackground": true, |
| "problemMatcher": { |
| "pattern": { |
| "regexp": "^Port forwards started: (.*)$", |
| "message": 1 |
| }, |
| "background": { |
| "activeOnStart": true, |
| "beginsPattern": "^.*$", |
| "endsPattern": "^Port forwards started:.*$" |
| } |
| }, |
| "presentation": { |
| "echo": false, |
| "reveal": "never", |
| "focus": false, |
| "panel": "shared", |
| "showReuseMessage": false, |
| "clear": false |
| } |
| }, |
| { |
| "label": "Stop Port Forwards", |
| "type": "shell", |
| "command": "test -f /tmp/pf-registry.pid && kill $(cat /tmp/pf-registry.pid) 2>/dev/null; test -f /tmp/pf-couchdb.pid && kill $(cat /tmp/pf-couchdb.pid) 2>/dev/null; rm -f /tmp/pf-registry.pid /tmp/pf-registry.log /tmp/pf-couchdb.pid /tmp/pf-couchdb.log; pkill -f 'kubectl port-forward -n nuvolaris registry-0' 2>/dev/null; pkill -f 'kubectl -n nuvolaris port-forward couchdb-0' 2>/dev/null; echo 'Port forwards stopped'; exit 0", |
| "presentation": { |
| "echo": true, |
| "reveal": "silent", |
| "focus": false, |
| "panel": "dedicated", |
| "showReuseMessage": false |
| }, |
| "options": { |
| "shell": { |
| "executable": "/bin/bash", |
| "args": ["-c"] |
| } |
| } |
| } |
| ] |
| } |