#!/usr/bin/env bash
# opensim rest: use the remote OpenSim console client.

USAGE='opensim rest INSTANCE -- COMMAND
       opensim rest --url http://HOST:PORT --user USER (-- COMMAND | - | --repl)'
HELP="Run the opensim-rest-php console client. With an instance, the command goes to its remote console, at the address and with the account of its config. Else the password is read from OPENSIM_REST_PASSWORD."

source "$(dirname "$(realpath "${BASH_SOURCE[0]}" 2>/dev/null || echo "${BASH_SOURCE[0]}")")/../src/lib/common"

run rest "$@"
