prezto/modules/phoenix/README.md
2017-07-17 14:29:26 +07:00

45 lines
1.7 KiB
Markdown

Phoenix Framework
=============
Defines [Elixir Phoenix][1] aliases.
Aliases
-------
- `mpn`='mix phoenix.new'
- `mpr`='mix phoenix.routes'
- `mps`='mix phoenix.server'
- `mpgc`='mix phoenix.gen.channel' generates a Phoenix channel
- `mpgh`='mix phoenix.gen.html' generates controller, views, and context for an HTML resource
- `mpgj`='mix phoenix.gen.json' generates controller, views, and context for a JSON resource
- `mpgm`='mix phoenix.gen.model' generates an Ecto model in your Phoenix application
- `mpgs`='mix phoenix.gen.secret' generates a secret
- `mec`='mix ecto.create' creates the repository storage
- `med`='mix ecto.drop' drops the repository storage
- `mem`='mix ecto.migrate' runs the repository migrations
- `megm`='mix ecto.gen.migration' generates a new migration for the repo
- `merb`='mix ecto.rollback' rolls back the repository migrations
- `mecm`='mix do ecto.create, ecto.migrate' creates the repository storage then start migration
- `kid`='kiex default' sets default elixir version with specific version
- `kii`='kiex install' installs a known release or branch
- `kil`='kiex list' lists installed versions
- `kilb`='kiex list branches' lists current branches
- `kilk`='kiex list known' lists known releases
- `kilr`='kiex list releases' lists known releases
- `kis`='kiex shell' uses sub-shell with specific elixir version
- `kisu`='kiex selfupdate' upgrades kiex
- `kiu`='kiex use' use specific elixir version
Authors
-------
*The authors of this module should be contacted via the [issue tracker][2].*
- [Han Ngo](https://github.com/tieubao)
[1]: http://www.phoenixframework.org
[2]: https://github.com/sorin-ionescu/prezto/issues