#!/usr/bin/env bash set -euo pipefail if [[ "${1:-}" == "--help" || "${1:-}" == "-h" ]]; then echo "usage: $0 [args...]"; exit 0 fi if [[ $# -lt 2 ]]; then echo "workspace and command are required" >&2; exit 2; fi workspace="$1"; shift root="$(cd "$(dirname "$0")/../.." && pwd)" exec python3 "$root/tools/dev_container.py" --workspace "$workspace" run --workdir /workspace -- "$@"