File tree Expand file tree Collapse file tree 8 files changed +13
-53
lines changed Expand file tree Collapse file tree 8 files changed +13
-53
lines changed Original file line number Diff line number Diff line change 30
30
* [ File] Deprecate path related functions in favor of the module ` Path `
31
31
* [ Kernel] The ` /> ` operator has been deprecated in favor of ` |> `
32
32
* [ Mix] ` Mix.Project.sources ` is deprecated in favor of ` Mix.Project.config_files `
33
+ * [ Mix] ` mix iex ` is no longer functional, please use ` iex -S mix `
33
34
* [ OptionParser] ` :flags ` option was deprecated in favor of ` :switches ` to support many types
34
35
35
36
# v0.7.2 (2012-12-04)
Original file line number Diff line number Diff line change 1
- #! /bin/sh
2
- readlink_f () {
3
- cd " $( dirname " $1 " ) " > /dev/null
4
- local filename=" $( basename " $1 " ) "
5
- if [ -h " $filename " ]; then
6
- readlink_f " $( readlink " $filename " ) "
7
- else
8
- echo " ` pwd -P` /$filename "
9
- fi
10
- }
11
-
12
- SELF=$( readlink_f " $0 " )
13
- SCRIPT_PATH=$( dirname " $SELF " )
14
- EXECUTABLE=" elixir"
15
-
16
- if [ " $1 " = " iex" ]; then EXECUTABLE=" iex" ; fi
17
- exec " $SCRIPT_PATH " /$EXECUTABLE -e " Mix.start; Mix.CLI.run" -- " $@ "
1
+ #!/usr/bin/env elixir
2
+ Mix . start
3
+ Mix.CLI . run
Original file line number Diff line number Diff line change 1
- @ echo off
2
- if " %1 " == " iex" (
3
- goto iex
4
- ) else (
5
- goto elixir
6
- )
7
- :iex
8
- call " %~dp0 \iex.bat" -e " Mix.start" -e " Mix.CLI.run" -- %*
9
- :elixir
10
- call " %~dp0 \elixir.bat" -e " Mix.start" -e " Mix.CLI.run" -- %*
1
+ call " %~dp0 \elixir.bat" " %~dp0 \mix" %*
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ defmodule Mix.CLI do
34
34
end
35
35
36
36
defp get_task ( [ ] ) do
37
- { Mix . project [ :default ] || "test " , [ ] }
37
+ { Mix . project [ :default_task ] || "compile " , [ ] }
38
38
end
39
39
40
40
defp run_task ( name , args ) do
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ defmodule Mix.Project do
138
138
[ compile_path: "ebin" ,
139
139
elixirc_exts: [ :ex ] ,
140
140
default_env: [ test: :test ] ,
141
- default_task: "test " ,
141
+ default_task: "compile " ,
142
142
deps_path: "deps" ,
143
143
erlc_paths: [ "src" ] ,
144
144
lockfile: "mix.lock" ,
Original file line number Diff line number Diff line change 1
1
defmodule Mix.Tasks.Iex do
2
2
use Mix.Task
3
+ @ moduledoc false
3
4
4
- @ shortdoc "Start IEx with your project's settings"
5
-
6
- @ moduledoc """
7
- Starts an iex repl with your project settings.
8
-
9
- Before starting IEx, it invokes the prepare task
10
- which defaults to compile and load your project.
11
-
12
- ## Command line options
13
-
14
- * `--no-compile` - do not compile even if files require compilation;
15
- * `--no-start` - do not start applications after compilation;
16
-
17
- """
18
- def run ( args ) do
19
- Mix.Task . run Mix . project [ :prepare_task ] , args
20
-
21
- unless IEx . started? do
22
- raise Mix.Error , message: "could not start IEx. Due to booting constraints, " <>
23
- "IEx needs to be started on its own, like `mix iex` and it cannot be mixed " <>
24
- "with other tasks as in `mix do compile, iex`"
25
- end
5
+ def run ( _args ) do
6
+ raise Mix.Error , message: "mix iex is deprecated. Due to the VM constraints, " <>
7
+ "IEx needs to be configured on boot. Use `iex -S mix` instead."
26
8
end
27
9
end
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ defmodule Mix.CLITest do
14
14
in_fixture "custom_mixfile" , fn ->
15
15
output = mix ""
16
16
assert File . regular? ( "ebin/Elixir-A.beam" )
17
- assert output =~ % r "1 tests, 0 failures "
17
+ assert output =~ % r "Compiled lib/a.ex "
18
18
end
19
19
end
20
20
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ defmodule MixTest.Case do
66
66
end
67
67
68
68
def mix ( args ) do
69
- System . cmd "#{ mix_executable } #{ args } "
69
+ System . cmd "#{ elixir_executable } #{ mix_executable } #{ args } "
70
70
end
71
71
72
72
def mix_executable do
You can’t perform that action at this time.
0 commit comments