14 lines
271 B
Elixir
14 lines
271 B
Elixir
|
defmodule Mix.Tasks.Crawl do
|
||
|
alias Backend.Crawler
|
||
|
use Mix.Task
|
||
|
|
||
|
@shortdoc "Crawl a given instance."
|
||
|
|
||
|
def run(domain) do
|
||
|
Mix.Task.run("app.start")
|
||
|
# Application.ensure_all_started(:timex)
|
||
|
# Mix.Task.run("loadconfig")
|
||
|
Crawler.run(domain)
|
||
|
end
|
||
|
end
|