daml/dev-env/bin/dade
Digital Asset GmbH 05e691f558 open-sourcing daml
2019-04-04 09:33:38 +01:00

20 lines
536 B
Bash
Executable File

#!/usr/bin/env bash
DADE_CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$DADE_CURRENT_SCRIPT_DIR/../lib/dade-common"
DADE_CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ $# -lt 1 ]; then
"$DADE_CURRENT_SCRIPT_DIR"/dade-help
else
cmd="$1"
exe="${DADE_CURRENT_SCRIPT_DIR}/dade-${cmd}"
if [ -x "$exe" ]; then
shift
DADE_CURRENT_COMMAND="dade-${cmd}" exec "$exe" "$@"
else
echo "Unrecognized command ${cmd}, executable ${exe}."
exit 1
fi
fi