Commandex.Metadata (Commandex v0.6.0)

Copy Markdown View Source

Compile-time metadata of a command.

Every command struct holds a Commandex.Metadata struct in its __meta__ field. Commandex.command/1 builds it, and new/1 reads it to cast the given parameters.

Attributes

  • params - A map of each parameter name to its {type, opts} definition.

Summary

Types

t()

@type t() :: %Commandex.Metadata{
  params: %{optional(atom()) => {Commandex.Type.t(), Keyword.t()}}
}