~ihabunek/triglav

f8f7b939d718089aa8ab1b9939d768fd7cf3a2ec — Ivan Habunek 10 months ago 248d445
Fix flag for starting only repo
M lib/mix/tasks/triglav/import_osm.ex => lib/mix/tasks/triglav/import_osm.ex +1 -1
@@ 5,7 5,7 @@ defmodule Mix.Tasks.Triglav.ImportOsm do

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

    {opts, _rest} = OptionParser.parse!(args, strict: [force: :boolean])

M lib/mix/tasks/triglav/osmosis_init.ex => lib/mix/tasks/triglav/osmosis_init.ex +1 -1
@@ 7,7 7,7 @@ defmodule Mix.Tasks.Triglav.OsmosisInit do

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

    if not Osmosis.schema_exists?() or confirm() do

M lib/mix/tasks/triglav/osmosis_load.ex => lib/mix/tasks/triglav/osmosis_load.ex +1 -1
@@ 7,7 7,7 @@ defmodule Mix.Tasks.Triglav.OsmosisLoad do

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

    if not Osmosis.schema_exists?() or confirm() do

M lib/mix/tasks/triglav/osmosis_update.ex => lib/mix/tasks/triglav/osmosis_update.ex +1 -1
@@ 5,7 5,7 @@ defmodule Mix.Tasks.Triglav.OsmosisUpdate do

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

    Triglav.Import.Osmosis.update()