File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ defmodule IEx.Helpers do
51
51
To learn more about IEx as a whole, just type `h(IEx)`.
52
52
"""
53
53
54
- require Logger
55
54
import IEx , only: [ dont_display_result: 0 ]
56
55
57
56
@ doc """
@@ -79,11 +78,12 @@ defmodule IEx.Helpers do
79
78
if mix_started? do
80
79
config = Mix.Project . config
81
80
reenable_tasks ( config )
82
- stop_apps ( config )
81
+ apps = stop_apps ( config )
83
82
Mix.Task . run ( "app.start" )
83
+ { :restarted , apps }
84
84
else
85
85
IO . puts IEx . color ( :eval_error , "Mix is not running. Please start IEx with: iex -S mix" )
86
- dont_display_result
86
+ :error
87
87
end
88
88
end
89
89
@@ -109,7 +109,8 @@ defmodule IEx.Helpers do
109
109
true ->
110
110
[ ]
111
111
end
112
- Enum . each apps , & Application . stop / 1
112
+ apps |> Enum . reverse |> Enum . each ( & Application . stop / 1 )
113
+ apps
113
114
end
114
115
115
116
@ doc """
You can’t perform that action at this time.
0 commit comments