Files
n8n-openai-adapter/bin/elixir.bat
T
Iaroslav YK_Sirius 6276e8b165 .bat files to run Elixir (elixir and elixirc) from Windows batch
Interactive Elixir throws an Erlang error when trying to run.
2012-03-29 14:44:26 +03:00

23 lines
830 B
Batchfile

@echo off
if "%*" == "" (
goto documentation
) else (
goto run
)
:documentation
echo Usage: %~nx0 [options] [.exs file] [data]
echo.
echo -v Prints version and exit
echo -e command Evaluates the given command (*)
echo -r command Requires the given file/pattern (*)
echo -pa path Prepend the given path to Erlang code path (*)
echo -pz path Append the given path to Erlang code path (*)
echo --no-stop Do not stop the Erlang VM after execution
echo.
echo ** Options marked with (*) can be given more than once;
echo.
echo ** Options given after the .exs file or -- are passed down to the executed code;
echo.
echo ** Options can be passed to the erlang runtime using ELIXIR_ERL_OPTS.
:run
erl -pa %~dp0\..\ebin %~dp0\..\exbin -noshell -noinput %ELIXIR_ERL_OPTS% -s elixir start -extra %*