Current section

Files

Jump to
gen_cli lib mix tasks gen.ex
Raw

lib/mix/tasks/gen.ex

defmodule Mix.Tasks.Gen do
@moduledoc "The gen mix task: `mix help gen`"
use Mix.Task
# TODO: add whatever callback mix help _ needs to show instructions on the command line
def run(argv) do
{_switches, positional_args, _} = OptionParser.parse(argv, aliases: [h: :help, i: :interactive], strict: [interactive: :boolean, filepath: :string])
GenCLI.Runner.run(positional_args |> List.first())
end
end