View Source mix magma.text.type.new (Magma v0.2.0)

A Mix task for generating a new text type.

This task is used to create a configuration document for a new text type. Users must specify a valid Elixir module name as the text type name as the first argument. Optionally, a human-readable label can be provided.

Example

To create a new text type with just the name:

$ mix magma.text.type.new MyTextType

To create a new text type with a name and a label:

$ mix magma.text.type.new MyTextType "My Custom Text Type"

Command line options

  • --force - Overwrites any existing text type configuration without confirmation (default: false)

Summary

Functions

Callback implementation for Mix.Task.run/1.

Functions

Callback implementation for Mix.Task.run/1.