Commit Graph
106 Commits
Author SHA1 Message Date
José Valim c001cbdd62 Start v1.20 2025-06-07 20:21:32 +02:00
Jonatan Männchen 980500551c Inline Licence Info & Copyright for non-test files (#14256) 2025-02-07 21:11:09 +01:00
José Valim f557991310 Make --color/--no-color consistent with mix test 2025-01-22 17:38:51 +01:00
José Valim 2f8311b7a3 Add --color for easy enabling and disabling of coloring (#14183) 2025-01-13 08:54:07 +01:00
José Valim e2f0196848 Simplify bat and ps1 files (#14180) 2025-01-13 07:33:06 +01:00
José Valim 80c51cce96 Start v1.19 2024-12-10 15:05:41 +01:00
José Valim 54b3736eac Remove --werl support 2024-05-24 12:46:21 +02:00
José Valim 5a4356fd56 Start Elixir v1.18 2024-05-24 12:43:13 +02:00
José Valim 18db5220ce Check for exclamation marks on Windows (#13166)
Closes #13165.
2024-05-24 09:13:22 +02:00
José Valim 26d18e5af4 Respect quoting for Elixir args on Windows (#13566)
Closes #13565
2024-05-17 11:26:06 +02:00
José Valim 56768edb56 Always pass -noshell when starting iex, fix Erlang/OTP 25 2024-02-29 15:42:09 +01:00
José Valim b3710dea97 Always start IEx shell via -user
There is some uncertainty as to wether it will be possible
to start an IEx shell dynamically from a -noshell environment.

Therefore, this PR simplifies the shell booting to still
rely on -user, as it did earlier than Erlang/OTP 26.
2024-02-29 14:48:54 +01:00
Wojtek Mach 496706ee7b elixir.bat: Quote file paths (#13172) 2023-12-12 14:31:12 +01:00
José Valim 5949460d63 Start v1.17-dev 2023-10-29 12:33:01 +01:00
José Valim 2a0b83af2f Check for variable definition instead of expansion 2023-07-01 19:29:17 +02:00
José Valim 6620b48fd1 Fix dbg on Erlang/OTP 25- (#12697) 2023-06-22 20:53:17 +02:00
José Valim befe07559a Fix path on Windows 2023-06-19 16:10:07 +02:00
José Valim edc2326130 Start v1.16-dev 2023-06-03 20:27:23 +02:00
José Valim d7bdf22708 Release v1.15.0-rc.1 2023-05-29 21:08:24 +02:00
José Valim 3cdb3883e4 Release v1.15.0-rc.0 2023-05-22 13:49:22 +02:00
José Valim e1eecb8ca6 Move path loading and IEx booting to Elixir (#12375)
This gives us more control to cache paths
and over boot compared to relying on scripts.

This also makes it easier for someone to provide
alternatives to IEx.
2023-02-02 21:45:24 +01:00
José Valim 7590e08106 Make pry opt-in on dbg with --dbg pry 2023-01-13 11:23:27 +01:00
Kiru 6dacd83233 Add tilde to %1 to remove the extra quotations (#12335)
Closes #12330
2023-01-12 16:21:06 +01:00
José Valim e73933a39e Update CHANGELOG and docs 2022-09-19 13:53:57 +02:00
José Valim fbf4b1f3c9 Start v1.15.0-dev 2022-07-27 12:54:37 +02:00
Wojtek Mach f4a0840120 Return exit code in elixir.bat (#12005) 2022-07-22 21:13:47 +02:00
Andrea Leopardi 92ad061015 Add basic IEx dbg callback (#11984) 2022-07-17 10:50:09 +02:00
Sam Aaron ff349faa10 Teach elixir.bat ELIXIR_CLI_DRY_RUN (#11916)
The *nix equivalent shell script echoes the full erl.exe path and args to stdout when the environment variable ELIXIR_CLI_DRY_RUN is set instead of executing it.

This patch adds this behaviour to the Windows bat file for consistency.
2022-06-11 00:42:12 +02:00
José Valim cfd768d70d Make sure --version flag halts elixir and iex, closes #11453 2021-12-07 08:18:19 +01:00
José Valim 447591ff31 Start v1.14.0-dev 2021-11-01 20:57:18 +01:00
Dino Kovač d9d010caf4 Add --short-version to Elixir CLI (#11165) 2021-08-04 14:51:45 +02:00
José Valim 6bb647737b Provide a mechanism to set a default ERTS_BIN (#11086)
Closes #11085.
2021-06-24 22:14:33 +02:00
José Valim bad5844c92 Set evaluation to empty space to fix string replace on batch, closes #10495 (#10586) 2020-12-21 16:22:55 +01:00
José Valim 54802cff9b Add coloring support for Windows (#10031)
Closes #9810.
2020-05-14 01:05:07 +02:00
José Valim 9edeeaf8ba Quote executable path on Windows, closes #9242 (#9243) 2019-07-26 16:01:45 +02:00
José Valim 8ab666e4ae 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 8bf5e2f683 Add missing parens to elixir.bat 2019-01-29 17:21:22 +01:00
José Valim b61d577586 More fixes on Windows with werl 2019-01-29 15:40:17 +01:00
José Valim 1c5728eb55 Add RELEASE_NODE, RELEASE_COOKIE and fixes 2019-01-29 15:30:51 +01:00
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
Eksperimental c24e98d523 Rephrase useWerl option in elixir.bat (#8559) 2018-12-22 09:06:05 +01:00
Eksperimental 08ab35b411 Revise use of "flag" terminology (#8347) 2018-11-16 09:53:53 +01:00
robi-wan 48b41f422a 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 60aea3f12d Document --help option in elixir command and include long version of --version (#5971) 2017-04-10 11:29:05 +01:00
José Valim cee55234fa 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 b94267b66e Make batch style more consistent (#4944) 2016-07-05 21:00:51 +02:00
John Fearnside b5170eae8f detect terminal, detect ANSI support (#4942) 2016-07-05 17:17:12 +02:00
eksperimental e59a9f82fd 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 9fc0a4218b 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