Skip to content

Commit 9076a52

Browse files
committed
Add --no-listeners to mix compile and mix run
1 parent a4df56d commit 9076a52

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/mix/lib/mix/tasks/compile.ex

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ defmodule Mix.Tasks.Compile do
6666
* `--no-compile` - does not actually compile, only loads code and perform checks
6767
* `--no-deps-check` - skips checking of dependencies
6868
* `--no-elixir-version-check` - does not check Elixir version
69+
* `--no-listeners` - does not start Mix listeners
6970
* `--no-optional-deps` - does not compile or load optional deps. Useful for testing
7071
if a library still successfully compiles without optional dependencies (which is the
7172
default case with dependencies)

lib/mix/lib/mix/tasks/run.ex

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ defmodule Mix.Tasks.Run do
5757
* `--no-deps-check` - does not check dependencies
5858
* `--no-elixir-version-check` - does not check the Elixir version from mix.exs
5959
* `--no-halt` - does not halt the system after running the command
60+
* `--no-listeners` - does not start Mix listeners
6061
* `--no-mix-exs` - allows the command to run even if there is no mix.exs
6162
* `--no-start` - does not start applications after compilation
6263
@@ -77,6 +78,7 @@ defmodule Mix.Tasks.Run do
7778
halt: :boolean,
7879
compile: :boolean,
7980
deps_check: :boolean,
81+
listeners: :boolean,
8082
start: :boolean,
8183
archives_check: :boolean,
8284
elixir_version_check: :boolean,

0 commit comments

Comments
 (0)