View Source mix cascade (Cascade v0.1.0)

Generates code from the given template.

It expects the template name as argument.

$ mix cascade template_name [--root PATH] -- [...]

Notice that individual templates may support extra command line arguments. These must be specified after the -- separator.

You can list all available templates by running:

$ mix cascade.help

You can get detailed docs for a specific template by running:

$ mix cascade.help template_name

Options

  • --root (string) - The root path under which the template will be generated.
    • If it is not set it defaults to the current working directory.
    • If it is a relative path is is expanded with respect to the current working directory.
    • If is is an absolute path it is used unchanged.