~ihabunek/triglav

ref: 26f2c3b921aea5c0e33d1f7c4320e9e6ceb08ea0 triglav/lib/mix/tasks/triglav/import_zet.ex -rw-r--r-- 362 bytes
26f2c3b9Ivan Habunek Calculate and store derived data for public transport 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
defmodule Mix.Tasks.Triglav.ImportZet do
  use Mix.Task

  @shortdoc "Imports GTFS data for ZET routes"

  @impl Mix.Task
  def run(args) do
    Application.put_env(:triglav, :repo_only, true)
    {:ok, _} = Application.ensure_all_started(:triglav)

    {opts, _} = OptionParser.parse!(args, strict: [force: :boolean])
    Triglav.Import.Zet.run(opts)
  end
end