Skip to content

Commit d81d239

Browse files
fhunlethmobileoverlord
authored andcommitted
Update function visibility to avoid noise in docs
The ex_docs had a few undocumented internal functions showing up. This hides them.
1 parent 62dd56b commit d81d239

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

lib/mix/tasks/nerves/clean.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ defmodule Mix.Tasks.Nerves.Clean do
1616

1717
@switches [all: :boolean]
1818

19+
@impl Mix.Task
1920
def run(argv) do
2021
debug_info("Clean Start")
2122
{opts, packages, _} = OptionParser.parse(argv, switches: @switches)

lib/mix/tasks/nerves/local.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ defmodule Mix.Tasks.Local.Nerves do
1212
1313
This accepts the same command line options as `archive.install`.
1414
"""
15+
@impl Mix.Task
1516
def run(_args) do
1617
Mix.Task.run("archive.install", ["hex", "nerves_bootstrap", "~> 1.0"])
1718
end

lib/mix/tasks/nerves/new.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ defmodule Mix.Tasks.Nerves.New do
5353
for {format, source, _} <- @new do
5454
unless format == :keep do
5555
@external_resource Path.join(root, source)
56-
def render(unquote(source)), do: unquote(File.read!(Path.join(root, source)))
56+
defp render(unquote(source)), do: unquote(File.read!(Path.join(root, source)))
5757
end
5858
end
5959

@@ -152,7 +152,7 @@ defmodule Mix.Tasks.Nerves.New do
152152
end
153153
end
154154

155-
def run(app, mod, path, opts) do
155+
defp run(app, mod, path, opts) do
156156
System.delete_env("MIX_TARGET")
157157

158158
nerves_path = nerves_path(path, Keyword.get(opts, :dev, false))
@@ -219,7 +219,7 @@ defmodule Mix.Tasks.Nerves.New do
219219
end)
220220
end
221221

222-
def recompile(regex) do
222+
defp recompile(regex) do
223223
if Code.ensure_loaded?(Regex) and function_exported?(Regex, :recompile!, 1) do
224224
apply(Regex, :recompile!, [regex])
225225
else

0 commit comments

Comments
 (0)