Mix.Tasks.Escriptize
Generates an escript for the project.
Command line options
--force- forces compilation regardless of modification times--no-compile- skips compilation to .beam files
Configuration
The following option must be specified in your mix.exs:
:escript_main_module- the module to be invoked once the escript starts. The module must contain a function namedmain/1that will receive the command line arguments as binaries;
The remaining options can be specified to further customize the escript:
:escript_name- the name of the generated escript. Defaults to app name;:escript_path- the path to write the escript to. Defaults to app name;:escript_app- the app to start with the escript. Defaults to app name. Set it tonilif no application should be started.:escript_embed_elixir- iftrueembed elixir in the escript file. Defaults totrue.:escript_embed_extra_apps- embed additional Elixir applications. if:escript_embed_elixiristrue. Defaults to[].:escript_shebang- shebang interpreter directive used to execute the escript. Defaults to "#! /usr/bin/env escript\n".:escript_comment- comment line to follow shebang directive in the escript. Defaults to "%%\n":escript_emu_args- emulator arguments to embed in the escript file. Defaults to "%%!\n".
Summary
| run(args) | Callback implementation of |