     end
   end
 
-  def run(app, mod, path, _opts) do
+  def run(app, mod, path, opts) do
     binding = [application_name: app,
                application_module: mod,
-               kitto_dep: kitto_dep(kitto_path(path, false))]
+               kitto_dep: kitto_dep(opts[:edge])]
 
     copy_from path, binding, @new
 

  end

  @moduledoc """
  Kitto installer. Generates a scaffolding to build a new dashboard upon.

  See: https://github.com/kittoframework/demo
  """

    :os.cmd(String.to_char_list(cmd))
  end

  defp kitto_dep(true), do: ~s[{:kitto, github: "kittoframework/kitto", branch: "master"}]
  defp kitto_dep(_), do: ~s[{:kitto, "~> #{@version}"}]

  ### Template helpers

