diff --git a/lib/onigumo/downloader.ex b/lib/onigumo/downloader.ex index 7b88e6b..a581049 100644 --- a/lib/onigumo/downloader.ex +++ b/lib/onigumo/downloader.ex @@ -57,18 +57,3 @@ defmodule Onigumo.Downloader do Application.get_env(:onigumo, :http_client) end end - -defmodule Onigumo.Parser do - @moduledoc """ - Web scraper - """ - - def main(root_path) do - root_path - |> File.ls!() - |> Enum.reject(&File.dir?(&1)) - |> Enum.reject(&String.contains?(&1, ".")) - |> Enum.join("\n") - |> IO.puts() - end -end diff --git a/lib/onigumo/parser.ex b/lib/onigumo/parser.ex new file mode 100644 index 0000000..82ebd6d --- /dev/null +++ b/lib/onigumo/parser.ex @@ -0,0 +1,14 @@ +defmodule Onigumo.Parser do + @moduledoc """ + Web scraper + """ + + def main(root_path) do + root_path + |> File.ls!() + |> Enum.reject(&File.dir?(&1)) + |> Enum.reject(&String.contains?(&1, ".")) + |> Enum.join("\n") + |> IO.puts() + end +end