We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b20fea7 commit 4583162Copy full SHA for 4583162
lib/mix/lib/mix/tasks/run.ex
@@ -9,6 +9,12 @@ defmodule Mix.Tasks.Run do
9
Before running the code, it invokes the prepare task
10
which defaults to compile and load your project.
11
12
+ ## Command line options
13
+
14
+ * `--require`, `-r` - Requires a file before running the command
15
+ * `--parallel-require`, `-pr` - Requires a file in parallel
16
+ * `--no-halt` - Does not halt the system after running the command
17
18
## Examples
19
20
mix run Hello.world
@@ -32,6 +38,8 @@ defmodule Mix.Tasks.Run do
32
38
33
39
Mix.Task.run Mix.project[:prepare_task], args
34
40
Code.eval Enum.join(head, " ")
41
42
+ if opts[:no_halt], do: :timer.sleep(:infinity)
35
43
end
36
44
37
45
defp filter_patterns(pattern) do
0 commit comments