Skip to content

Commit 6f032c4

Browse files
authored
Load discovered makeup apps for cli (#2138)
1 parent 3ebc1da commit 6f032c4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/ex_doc/cli.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ defmodule ExDoc.CLI do
7676
for path <- Keyword.get_values(opts, :paths),
7777
path <- Path.wildcard(path) do
7878
Code.prepend_path(path)
79+
app(path) |> Application.load()
80+
end
81+
82+
# Start all applications with the makeup prefix
83+
for {app, _, _} <- Application.loaded_applications(),
84+
match?("makeup_" <> _, Atom.to_string(app)) do
85+
Application.ensure_all_started(app)
7986
end
8087

8188
opts =

0 commit comments

Comments
 (0)