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 f179de5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/onigumo/downloader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,3 @@ defmodule Onigumo.Downloader do
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 f179de5

Please sign in to comment.