mix source (Mix v1.20.0)

Copy Markdown View Source

Prints source file location for modules and functions.

Examples

$ mix source MODULE           - prints the source location for the given module
$ mix source MODULE.FUN       - prints the source location for the given module+function
$ mix source MODULE.FUN/ARITY - prints the source location for the given module+function+arity

Command line options

  • --open, -o - opens the source file in your editor instead of printing the location. Requires the ELIXIR_EDITOR or EDITOR environment variable to be set.