lib/mix/tasks/combo_new.saas.ex
defmodule Mix.Tasks.ComboNew.Saas do
use Mix.Task
@shortdoc "Creates a Phoenix project in SaaS type"
@moduledoc """
#{@shortdoc}.
## Usage
It expects the path of the project as an argument.
$ mix combo_new.saas PATH [--app APP] [--module MODULE]
A project at the given PATH will be created. The application name and module
name will be retrieved from the `PATH`, unless `--app` or `--module` is given.
## Options
* `--app` - the name of the OTP application.
* `--module` - the name of the base module in the generated skeleton.
* `-v`, `--version` - prints the version.
"""
@impl true
def run(argv) do
ComboNew.run(__MODULE__, ComboNew.Generator.ComboSaaS, argv)
end
end