Commit Graph
91 Commits
Author SHA1 Message Date
José Valim fdba441757 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 e4d656618a Suggest quotes where appropriate (#8561) 2019-01-02 14:40:22 +01:00
José Valim 55ef96f180 Remove undocumented environment variable 2018-12-23 19:00:41 +01:00
José Valim 5d8827eca4 Remove unecessery releases directory check (#7359)
This check was added when Elixir itself was used as a release
but that's not the case anymore.
2018-02-17 09:08:00 +01:00
Andrea Leopardi 0312c089da Use single-equals when comparing variables in bin/elixir (#6028)
Double-equals is a Bash-specific alias for "=" and it doesn't work
everywhere. We use single-equal in the rest of the script anyways.
2017-04-22 15:15:49 +02:00
Eksperimental 60aea3f12d Document --help option in elixir command and include long version of --version (#5971) 2017-04-10 11:29:05 +01:00
José Valim 0709aff0ea Update docs and CHANGELOG 2016-03-17 13:31:36 +01:00
Andrea Leopardi bbd7572e4d 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 ed48d727c8 Add in PATH note to remaining files 2016-02-18 07:40:52 +01:00
Joe Yates 7f40ee3aae Documentation fixes 2015-12-03 23:28:20 +01:00
eksperimental 75d2d6cff8 Use Title Case and backticks for Erlang and Elixir applications
It includes Erlang, Elixir, ExUnit, ExDoc, Logger, IEx, elixirc

It leaves Mix for a different PR.

Command to spot these words:

    ag -s '(?<!(\`))(?<!(\.))(?<!(/))(?<!(:))(?<!(_))(erlang|elixir|eex|iex|ex_unit|ex_doc|logger|elixirc)(?!(:))(?!(\?))(?!(_))(?!(-))(?!(\.))(?!(\`))(?!(/))(?!(>))' \
    --ignore "*.erl" --ignore "*.yrl" --ignore "*.src"
2015-09-09 01:51:22 +07:00
Lars Storjord c88a1d2cc7 Add support for --werl in Windows bash-like shells 2014-12-10 18:00:27 +01:00
Haoming Zhu 75042cdee9 fix previous commit typo bug 2014-09-12 01:48:04 +08:00
Chris Hyndman 550e82bb9f Use quotes to avoid space-in-path issues with cygpath 2014-08-11 15:13:50 -07:00
José Valim a92eb709e3 Ensure elixir and iex works on MinGW 2014-08-10 15:11:18 +02:00
José Valim 0c6f52add8 Check for terminal on both stdout and stderr 2014-08-10 14:40:46 +02:00
José Valim e25e2d6bcc Check for terminal support from Elixir command line 2014-08-10 13:57:41 +02:00
Chris Hyndman b3c981f780 Prepend -noshell and friends always within Cygwin
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2014-08-08 22:11:06 +02: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
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
José Valim 66214e97b2 Do not set +fnu by default 2014-04-21 11:18:02 +02:00
José Valim 6624f31472 Merge branch 'jv-char-data'
Conflicts:
	lib/eex/lib/eex/tokenizer.ex
	lib/elixir/lib/file.ex
	lib/elixir/lib/kernel.ex
	lib/elixir/lib/record/extractor.ex
	lib/elixir/lib/string.ex
	lib/ex_unit/lib/ex_unit/doc_test.ex
	lib/mix/lib/mix/archive.ex
	lib/mix/lib/mix/dep/fetcher.ex
	lib/mix/lib/mix/dep/umbrella.ex
2014-04-21 08:38:48 +02:00
José Valim 620e452f9f Do not reuse shell variables in IEx, closes #2149 2014-04-04 10:58:16 +02: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 323a7eef1f Convert File and IO to char data, use +fnu flag by default 2014-02-22 20:08:44 +01:00
José Valim 5bda5d503b Support ERL_PATH in bin/elixir 2014-02-11 10:03:53 +01:00
José Valim eb46fe30a2 -S cannot be given more than once 2013-12-12 11:55:25 +01:00
José Valim 79366ee7fc Drop .elixirrc 2013-10-21 10:15:27 +02:00
José Valim d5fc147ff0 Quote arguments on elixir/iex help check 2013-08-14 11:25:28 +02:00
José Valim c0c8f7f72b Allow -boot start to be overriden on releases 2013-07-09 21:29:35 +02:00
Yurii Rashkovskii ba00a1ffc6 Erlang release for Elixir should use start.boot instead of elixir.boot 2013-07-09 12:05:12 -07:00
José Valim 5b2f44d1d7 Ensure --app switch does not halt upcoming ones, closes #1398 2013-07-09 11:24:34 +02:00
José Valim b830485541 Ensure Elixir can run on directories with :, closes #1375 2013-07-07 10:00:46 +02:00
José Valim ca026039a3 Stop parsing on -S, closes #1294 2013-06-20 12:25:00 +02:00
José Valim 1d09da7e53 Use = instead of == on shell comparison 2013-06-18 10:42:49 +02:00
José Valim 5115256853 Use proper path separator in msys
For now, we are only checking the path on msys but
we may need to check it for cygwin too.

Thanks to @ToJans for providing guidance and debug
information to sort this issue out.
2013-06-18 10:30:51 +02:00
José Valim e64be43090 Update executable docs 2013-06-17 13:44:44 +02:00
zambal 0ddb31992b removed use of local variables in shell scripts in order to remove dependency on bash 2013-06-09 14:51:29 +02:00
José Valim cafbd2c2d4 Ensure --cookie is set before remsh starts, closes #1190 2013-06-05 17:55:48 +08:00
José Valim f5b0b7160c Do not abort erl names processing when +iex or +compile appear 2013-05-23 22:10:24 +02:00
José Valim 90093bd4e2 Support --cookie, --hidden, Node.get_cookie and Node.set_cookie, closes #910 2013-05-05 12:34:15 -06:00
José Valim 5d00a9ff58 Support --help and -h in elixir and iex, closes #854 2013-03-17 14:24:53 -06:00
José Valim 3137bfc614 Move bootstrap code for IEx to IEx.CLI 2013-01-29 12:30:09 -07:00
José Valim 7841f68072 Start an app and its dependencies with --app 2012-12-05 15:55:06 +01:00
José Valim e7e5e5d72a Supports --detached option on command line, closes #487 2012-09-26 19:26:34 -05:00
Devin Torres 8a80ead20c Use exec to replace the shell process instead of forking 2012-09-13 17:04:35 -05:00
thomasc b0454837d2 Make elixir source $HOME/.elixirrc if it exists 2012-08-10 18:44:33 +02:00
José Valim 9ddf626d51 Support -S as an option, closes #415 2012-07-31 14:45:35 +02:00
José Valim ffc370e53d Pass some options down to erl, accept --erl as arg 2012-07-31 01:08:11 +02:00