penpot/scripts/attach-opencode
2026-06-05 11:30:58 +02:00

14 lines
229 B
Bash
Executable File

#!/usr/bin/env bash
set -e;
PORT=14180
while [[ $# -gt 0 ]]; do
case "$1" in
--port|-p) PORT="$2"; shift 2 ;;
*) echo "Unknown option: $1"; exit 1 ;;
esac
done
pnpm exec opencode attach "http://localhost:${PORT}";