Skip to content

Commit

Permalink
Move parser to a new file because of new rules set for naming structure
Browse files Browse the repository at this point in the history
  • Loading branch information
nappex committed Apr 7, 2023
1 parent b1878f3 commit 10841b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/onigumo/downloader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions lib/onigumo/parser.ex
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 10841b1

Please sign in to comment.