diff options
author | Onorio Catenacci <ocatenacci@riis.com> | 2015-12-01 12:24:54 -0500 |
---|---|---|
committer | Onorio Catenacci <ocatenacci@riis.com> | 2015-12-01 12:24:54 -0500 |
commit | 5ffb2c570d9d55e60a1de2eca2ee5b0b20dbcc89 (patch) | |
tree | ac982f2c39aec9c1a9e62b72b40102102de3b409 /bin | |
parent | d314230faab8a0eb0351e203fcd3386e405846b2 (diff) | |
download | elixir-5ffb2c570d9d55e60a1de2eca2ee5b0b20dbcc89.tar.gz |
Adding code to the Windows batch files to make it easier to diagnose issues on Windows with Elixir
Diffstat (limited to 'bin')
-rw-r--r-- | bin/elixir.bat | 2 | ||||
-rw-r--r-- | bin/elixirc.bat | 2 | ||||
-rw-r--r-- | bin/iex.bat | 2 | ||||
-rw-r--r-- | bin/mix.bat | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/bin/elixir.bat b/bin/elixir.bat index bdbf8dd63..17cc20ea8 100644 --- a/bin/elixir.bat +++ b/bin/elixir.bat @@ -1,4 +1,4 @@ -@echo off +@if defined ELIXIR_CLI_ECHO (@echo on) else (@echo off) setlocal if ""%1""=="""" goto :documentation if ""%1""==""--help"" goto :documentation diff --git a/bin/elixirc.bat b/bin/elixirc.bat index bf362b822..b64352457 100644 --- a/bin/elixirc.bat +++ b/bin/elixirc.bat @@ -1,4 +1,4 @@ -@echo off +@if defined ELIXIR_CLI_ECHO (@echo on) else (@echo off) set argc=0 for %%A in (%*) do ( if "%%A"=="--help" goto documentation diff --git a/bin/iex.bat b/bin/iex.bat index 717714c36..38e3c4c5c 100644 --- a/bin/iex.bat +++ b/bin/iex.bat @@ -1,2 +1,2 @@ -@echo off +@if defined ELIXIR_CLI_ECHO (@echo on) else (@echo off) call "%~dp0\elixir.bat" +iex --erl "-user Elixir.IEx.CLI" --no-halt %* diff --git a/bin/mix.bat b/bin/mix.bat index edb85de42..d3eaeaf32 100644 --- a/bin/mix.bat +++ b/bin/mix.bat @@ -1,2 +1,2 @@ -@echo off +@if defined ELIXIR_CLI_ECHO (@echo on) else (@echo off) call "%~dp0\elixir.bat" -e Mix.start -e Mix.CLI.main %* |