Erl2ex v0.0.9 Mix.Tasks.Erl2ex

Usage: mix erl2ex [options] [input path]

Command line options:

--output, -o "path"          (Set the output file or directory path)
--include-dir, -I "dir"      (Add a directory to the include path)
--[no-]emit-file-headers     (Emit a header comment in each file)
--define-prefix "prefix"     (Prefix for variables used to define macros)
--defines-from-config "app"  (Define macros from this application's config)
--verbose, -v                (Display verbose status)
--help, -?                   (Display help text)

erl2ex is a Erlang to Elixir transpiler.

When no input path is provided, erl2ex reads from stdin and writes to stdout. Any output path is ignored.

When the input path is a file, erl2ex reads from the file and writes to the specified output path. If no output path is present, erl2ex creates an output file in the same directory as the input file.

When the input path is a directory, erl2ex recursively searches the directory and reads from every Erlang (*.erl) file it finds. It writes the results in the same directory structure under the given output path, which must also be a directory. If no output path is provided, the results are written in the same directories as the input files.

Summary

Functions

Callback implementation for c:Mix.Task.run/1

Functions

run(args)

Callback implementation for c:Mix.Task.run/1.