   end
 
   @moduledoc """
-  Kitto installer. Generates a scaffolding to build a new dashboard upon.
+  Creates a new Kitto dashboard.
+
+  It expects the path of the project as argument.
+
+      mix kitto.new PATH [--edge]
+
+  A project at the given PATH will be created. The application name and module
+  name will be retrieved from the path.
+
+  ## Options
+
+  * `--edge` - use the `master` branch of Kitto as your dashboard's dependency
+
+  ## Examples
+
+      mix kitto.new hello_world
 
   See: https://github.com/kittoframework/demo
   """


  def run(argv) do
    {opts, argv} =
      case OptionParser.parse(argv) do
        {opts, argv, []} ->
          {opts, argv}
        {_opts, _argv, [switch | _]} ->

    end
  end

  def run(app, mod, path, opts) do
    binding = [application_name: app,
               application_module: mod,
               kitto_dep: kitto_dep(opts[:edge])]

    copy_from path, binding, @new

