Commit Graph
71 Commits
Author SHA1 Message Date
José Valim a5395fc374 Add eval and version commands to releases (#8758)
We also split start | daemon iex | elixir into start and start_iex,
daemon and daemon_iex.
2019-02-02 21:27:28 +01:00
José Valim 47ef3d0abc Add missing parens to elixir.bat 2019-01-29 17:21:22 +01:00
José Valim e08a2b2642 More fixes on Windows with werl 2019-01-29 15:40:17 +01:00
José Valim 50cab0b962 Add RELEASE_NODE, RELEASE_COOKIE and fixes 2019-01-29 15:30:51 +01:00
José Valim 427c2aa3ec Revamp Elixir CLI (#8595)
This commit adds 6 new options to elixir CLI to aid releases:

  * `--pipe-to PIPEDIR LOGDIR` - invokes run_erl with daemon pipe and logs (only on Unix-like systems)

  * `--rpc-eval NODE COMMAND` - evaluates the given expression on the given node

  * `--boot FILE`, `--boot-var VAR VALUE`, `--erl-config FILE` and `--vm-args FILE` - which are equivalent to Erlang's `-boot`, `-boot_var`, `-config` and `-args_file`

We have also rewritten the CLI to only pass Elixir options to Kernel.CLI.
2019-01-08 20:44:43 +01:00
José Valim a14e2eb316 Suggest quotes where appropriate (#8561) 2019-01-02 14:40:22 +01:00
Eksperimental dc7a35c3a0 Rephrase useWerl option in elixir.bat (#8559) 2018-12-22 09:06:05 +01:00
Eksperimental 3a3d68385e Revise use of "flag" terminology (#8347) 2018-11-16 09:53:53 +01:00
robi-wan 9386542fba Support path with spaces as argument to elixir.bat (#6596)
Erlang parameters (CLI switch '--erl') are used with possible quotes around the argument removed ('%~1').
This causes an error if one arbitrary argument to elixir.bat represents a quoted path with spaces in it:
"[part of path after space] was unexpected at this time."

Enclose the complete expression with quotes to work around this (the quotes are not added to the content).

This behavior is not documented in the [Windows XP Command Line Reference for SET](https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/set.mspx)
but there are other places which document the [SET command](https://ss64.com/nt/set.html).

Fix for #6455
2017-09-24 12:07:19 +02:00
Eksperimental acc19f8e39 Document --help option in elixir command and include long version of --version (#5971) 2017-04-10 11:29:05 +01:00
José Valim 414a26627c Disable ansi detection for powershell to avoid false positives
Closes #5615

Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2017-01-05 10:49:39 +01:00
John Fearnside 535bf1532c Make batch style more consistent (#4944) 2016-07-05 21:00:51 +02:00
John Fearnside 52a14ccfb3 detect terminal, detect ANSI support (#4942) 2016-07-05 17:17:12 +02:00
eksperimental 3bd976737e Use proper case for proper nouns and acronyms
Use proper case for proper nouns (e.g., Elixir, Rebar, Git, and others)
as well as acronyms (e.g., URL, HTTP, and others).
2016-06-06 15:17:59 +02:00
robi-wan 501f856a23 Windows: batch file improvements (#4642)
* Add usage information to iex.bat

Support command line switch '--help', '-h', '/h' and '/?' to show usage information for iex.bat.
Check argument with '/I' to make the test case insensitive:
This allows showing usage information with '--HELP', '-H' and '/H'.

Use 'setlocal' and 'endlocal' so changes to the environment are local to the batch file
(https://technet.microsoft.com/en-us/library/bb491001.aspx) - so there is no need to un-set __ELIXIR_IEX_FLAGS.

* Use documented syntax 'goto label' - without leading colon before the label

* Support cli switch '/?' to show help

Use label :end to jump to the end of the batch file after showing help text -
so the call to elixir.bat is not executed when showing help.

Use 'setlocal' and 'endlocal' so that the env var 'argc' is local to this batch file.

* Support cli switch '/?' to show help for elixir.bat

Test for cli switch '/?' does not need to be case insensitive.
2016-05-18 22:22:41 +02:00
José Valim 66b97943b4 Update docs and CHANGELOG 2016-03-17 13:31:36 +01:00
Andrea Leopardi 4ea3d6499f Add --logger-otp and --logger-sasl to the command-line args
I added the following command-line arguments to the ./bin/elixir binary:

  * `--logger-otp true|false` - to configure the `:handle_otp_reports`
    of the `:logger` application
  * `--logger-sasl true|false` - to configure the `:handle_sasl_reports`
    of the `:logger` application
2016-03-17 11:04:33 +01:00
José Valim 214e2a3a7d Add in PATH note to remaining files 2016-02-18 07:40:52 +01:00
Joe Yates c78755a0fb Documentation fixes 2015-12-03 23:28:20 +01:00
Onorio Catenacci 5ffb2c570d Adding code to the Windows batch files to make it easier to diagnose issues on Windows with Elixir 2015-12-01 12:24:54 -05:00
titib c604cba4db Update elixir.bat
Correct issue https://github.com/elixir-lang/elixir/issues/3619

Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2015-08-27 14:26:21 +02:00
José Valim 5eae31bd2c Do not set not shell as we know have a custom prompt 2014-10-15 12:28:13 +02:00
Chris Hyndman 187e86749e Suppress "-s elixir start_cli" for IEx 2014-08-08 18:13:42 -07:00
Chris Hyndman f69e9df983 Add new --werl option 2014-07-28 07:49:02 -10:00
Chris Hyndman d3dba63659 Use start to spawn werl without lingering cmd window 2014-07-28 07:42:28 -10:00
Chris Hyndman c016d74379 Use setlocal/endlocal to prevent polluting user's environment 2014-07-28 07:42:27 -10:00
Chris Hyndman 0c589eff04 Umanbiguous check for parameters 2014-07-01 13:51:25 -07:00
Chris Hyndman 3a3684ca78 Process Erlang commands last 2014-07-01 13:44:23 -07:00
José Valim 4458ee1232 Remove --gen-debug option 2014-06-26 13:35:54 +02:00
José Valim 16f3b928a1 Do not set -noshell if we are going to override it afterwards 2014-06-22 14:16:40 +02:00
chyndman 4d7c75f2ca Disambiguate (w)erl to (w)erl.exe 2014-06-12 12:23:31 -07:00
chyndman df1366c1d6 elixir.bat fixed to prevent eating quotes 2014-05-22 14:02:28 -07:00
chyndman 1c9dff1fee elixir.bat only triggers help at first argument 2014-05-22 11:57:25 -07:00
chyndman 82f800e1c5 elixir.bat defers to mix for handling help options 2014-05-22 09:51:28 -07:00
José Valim 10ea9bdd40 Mention ERL_COMPILER_OPTIONS and rename ELIXIR_ERL_OPTS to ELIXIR_ERL_OPTIONS
Closes #2271
2014-05-12 09:47:37 +02:00
Paul Schoenfelder 19ad387943 Print help when --help, -h, or /h are given on windows 2014-05-08 13:51:02 -05:00
Onorio Catenacci 565a7656c4 Fixing issue with command line parameters getting passed to elixir.bat from iex.bat
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2014-04-29 18:08:16 +02:00
Paul Schoenfelder 6243bc8dc8 Fix bad conditional logic when checking for +iex 2014-04-17 11:27:38 -05:00
Paul Schoenfelder 0843ea0fbb Use smart shell for iex, and werl instead of erl 2014-04-16 12:45:52 -05:00
Paul Schoenfelder bbd6abb168 Use werl instead of erl when executing iex.bat 2014-04-16 12:11:45 -05:00
James Fish 9be2f7f3d3 Add --gen-debug
Use erlang's -generic_debug to turn on default [:log, :statistics] for
:gen_servers

Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2014-03-17 16:34:02 +01:00
José Valim eb46fe30a2 -S cannot be given more than once 2013-12-12 11:55:25 +01:00
Derek McLoughlin 08ed1f087a Fix for #1555 2013-08-06 14:28:23 +01:00
José Valim 2e8cb67880 Remove weird chars from bat, closes #1539 2013-08-03 15:55:13 +02:00
Derek McLoughlin b92099f5bd Fix issue with enableddelayedexpansion 2013-08-02 12:26:56 +01:00
Derek McLoughlin c374b357bb Issue #1531 - fix slow running of batch file in Windows 2013-08-02 11:20:58 +01:00
Tom Janssens 6d57915496 Fixed problem with elixir.bat removing exclamation marks from command line 2013-07-30 12:05:51 +02:00
Tom Janssens ce86541135 Updated windows elixir.bat to use -pa instead of -env ERL_LIBS
Fixes #1469
2013-07-21 11:44:29 +02:00
José Valim 5b2f44d1d7 Ensure --app switch does not halt upcoming ones, closes #1398 2013-07-09 11:24:34 +02:00
Vladimir Dronnikov d9baf3c39e elixir.bat: accomodate for paths with spaces
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2013-07-03 15:05:45 +02:00