30 lines
696 B
Bash
Executable File
30 lines
696 B
Bash
Executable File
#!/bin/bash
|
|
# [DEF:run_clean_tui:Script]
|
|
# Helper script to launch the Enterprise Clean Release TUI
|
|
|
|
set -e
|
|
|
|
# Get the directory where the script is located
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
cd "$SCRIPT_DIR"
|
|
|
|
echo "Starting Enterprise Clean Release Validator (real mode)..."
|
|
|
|
# Set up environment
|
|
export PYTHONPATH="$SCRIPT_DIR/backend"
|
|
export TERM="xterm-256color"
|
|
export CLEAN_TUI_MODE="real"
|
|
|
|
CANDIDATE_ID=""
|
|
if [ "${1:-}" = "--demo" ]; then
|
|
export CLEAN_TUI_MODE="demo"
|
|
shift
|
|
fi
|
|
if [ -n "${1:-}" ]; then
|
|
CANDIDATE_ID="$1"
|
|
export CLEAN_TUI_CANDIDATE_ID="$CANDIDATE_ID"
|
|
fi
|
|
|
|
# Run the TUI
|
|
./backend/.venv/bin/python3 -m backend.src.scripts.clean_release_tui
|