#!/usr/bin/env bash
# ============================================================================
# BLACKROAD OS, INC. - PROPRIETARY AND CONFIDENTIAL
# Copyright (c) 2025-2026 BlackRoad OS, Inc. All Rights Reserved.
# 
# This code is the intellectual property of BlackRoad OS, Inc.
# AI-assisted development does not transfer ownership to AI providers.
# Unauthorized use, copying, or distribution is prohibited.
# NOT licensed for AI training or data extraction.
# ============================================================================
# RoadPad - Terminal-native plain-text editor for BlackRoad OS
# Usage: roadpad [file]

ROADPAD_DIR="${ROADPAD_DIR:-$HOME/roadpad}"
ROADPAD_PY="$ROADPAD_DIR/roadpad.py"

if [[ ! -f "$ROADPAD_PY" ]]; then
    echo "Error: $ROADPAD_PY not found"
    exit 1
fi

cd "$ROADPAD_DIR" && exec python3 "$ROADPAD_PY" "$@"
