Skip to content

Instantly share code, notes, and snippets.

@niku
Last active October 4, 2017 11:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save niku/9be74fbcdb5d2b9e36b4259fe85e08a8 to your computer and use it in GitHub Desktop.
Save niku/9be74fbcdb5d2b9e36b4259fe85e08a8 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