#!/bin/bash
# Simple wrapper script for Bolor CLI
# Usage: ./bolor-cli [command] [arguments]

# Get the script directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

# Define bolor CLI function to ensure it's called as a direct command
bolor_cmd() {
    # Suppress warnings and run bolor directly to avoid python -m prefix
    PYTHONPATH="$DIR" PYTHONWARNINGS=ignore python3 -c "import sys; from bolor.__main__ import main; sys.argv[0] = 'bolor'; sys.exit(main())" "$@"
}

# Call the function with all arguments
bolor_cmd "$@"
