Skip to content

Instantly share code, notes, and snippets.

@victusfate
Forked from niku/cli.ex
Created October 4, 2017 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victusfate/29755ae6a971394126f5c602cdabb6cf to your computer and use it in GitHub Desktop.
Save victusfate/29755ae6a971394126f5c602cdabb6cf to your computer and use it in GitHub Desktop.
defmodule MyApp.CLI do
def main(_args) do
IO.puts("Hello from MyApp!")
end
end
defmodule MyApp.Mixfile do
use Mix.Project
def project do
[app: :my_app,
version: "0.0.1",
elixirc_paths: ["."],
escript: escript()]
end
def escript do
[main_module: MyApp.CLI]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment