File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ defmodule Mix.Tasks.Compile.Protocols do
3
3
4
4
@ recursive true
5
5
6
+ @ shortdoc "Consolidates all protocols in all paths"
7
+
6
8
@ moduledoc ~S"""
7
9
Consolidates all protocols in all paths.
8
10
@@ -11,16 +13,18 @@ defmodule Mix.Tasks.Compile.Protocols do
11
13
(defaults to "consolidated").
12
14
13
15
A new directory will be created with the consolidated
14
- protocol versions. Simply add it to your codepath to
15
- make use of it:
16
+ protocol versions in the build directory for the given
17
+ environment. Simply add it to your codepath to make use
18
+ of it:
16
19
17
- mix run -pa _build/dev/consolidated
20
+ $ mix run -pa _build/dev/consolidated
18
21
19
22
You can verify a protocol is consolidated by checking
20
23
its attributes:
21
24
22
- elixir -pa _build/dev/consolidated -S \
23
- mix run -e "IO.puts Protocol.consolidated?(Enumerable)"
25
+ $ iex -S mix run -pa _build/dev/consolidated
26
+ iex> Protocol.consolidated?(Enumerable)
27
+ true
24
28
25
29
"""
26
30
You can’t perform that action at this time.
0 commit comments