lib/pidge.ex
defmodule Pidge do
def main(args) do
case args do
["compile" | rest_args] -> Pidge.Compiler.compile(rest_args)
["run" | rest_args] -> Pidge.Harness.CommandLine.run(rest_args)
["go" | rest_args] ->
Pidge.Compiler.compile([])
Pidge.Harness.CommandLine.run(rest_args)
["continue" | rest_args] -> Pidge.Harness.CommandLine.continue(rest_args)
["new" | [app_name]] -> Pidge.App.new_app(app_name)
_ -> IO.puts("Unknown command")
end
end
end