Something went wrong. Try again.
Inventory tracking with sevdesk integration
gleam inventory
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445#!/bin/shset -eu
# TODO: remove this whole file once the fix gets published
# SPDX-License-Identifier: Apache-2.0# SPDX-FileCopyrightText: 2022 The Gleam contributors
PACKAGE=inventory_serverBASE=$(dirname "$0")COMMAND="${1-default}"
run() { exec erl \ -pa "$BASE"/*/ebin \ -eval "$PACKAGE@@main:run($PACKAGE)" \ -noshell \ -extra "$@"}
shell() { erl -pa "$BASE"/*/ebin}
case "$COMMAND" inrun) shift run "$@" ;;
shell) shell ;;
*) echo "usage:" >&2 echo " entrypoint.sh \$COMMAND" >&2 echo "" >&2 echo "commands:" >&2 echo " run Run the project main function" >&2 echo " shell Run an Erlang shell" >&2 exit 1 ;;esac