#!/usr/bin/bash
# SCLS Runtime Command
# Dispatches subcommands to helper scripts in share/scls/scripts/
# Generated by scls-environment

SCLS="$(cd "$(dirname "$0")/.." && pwd)"
SCLS_SCRIPTS="$SCLS/share/scls/scripts"

cmd="${1:-help}"
shift 2>/dev/null

script="$SCLS_SCRIPTS/scls-$cmd"
if [[ -x "$script" ]]; then
    exec "$script" "$@"
else
    echo "scls: unknown command '$cmd'"
    echo "Run 'scls help' for available commands."
    exit 1
fi
