Skip to content

Commit 0eb5289

Browse files
committed
Add --no-listeners to mix compile and mix run
1 parent 7e01628 commit 0eb5289

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ defmodule Mix.Tasks.Run do
5353
* `--no-deps-check` - does not check dependencies
5454
* `--no-elixir-version-check` - does not check the Elixir version from mix.exs
5555
* `--no-halt` - does not halt the system after running the command
56+
* `--no-listeners` - does not start Mix listeners
5657
* `--no-mix-exs` - allows the command to run even if there is no mix.exs
5758
* `--no-start` - does not start applications after compilation
5859
@@ -73,6 +74,7 @@ defmodule Mix.Tasks.Run do
7374
halt: :boolean,
7475
compile: :boolean,
7576
deps_check: :boolean,
77+
listeners: :boolean,
7678
start: :boolean,
7779
archives_check: :boolean,
7880
elixir_version_check: :boolean,

0 commit comments

Comments
 (0)