mix composer.gen.recipe (composer v0.2.0)

Copy Markdown View Source

Adds a recipe stub to a recipe group, creating the group file when it does not exist.

mix composer.gen.recipe ash/base
mix composer.gen.recipe lv/auth --local

adds the recipe base to lib/composer/<app>/recipes/ash.exs in the current project's cookbook, or, with --local, auth to <config dir>/recipes/lv.exs in your local recipes (see Composer.Local). The argument is always group/name.

A new group file starts with a comment listing the entry forms. Adding to an existing group appends to its keyword list; a recipe of the same name is an error.

Options

  • --local - write to the local config directory
  • -c, --config - the local config directory, with --local