7c62c57b9f23b32685a3ce668b54edd3032456fb

Author
Artem Pyankov <artpyankov@gmail.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Add table of aliases for hanami plugin

Diff

 1diff --git a/plugins/hanami/README.md b/plugins/hanami/README.md
 2index 20e9dd5c49c4c51e6b95a4da0732c3ac433dd6a7..81f2431a889ed65f1ef8cd92d9c9b3e9d22a97dc 100644
 3--- a/plugins/hanami/README.md
 4+++ b/plugins/hanami/README.md
 5@@ -4,3 +4,26 @@ This plugin adds convinient ways to work with [Hanami](http://hanamirb.org/) via
 6 ## Usage ##
 7 For example, type `hc` into your console when you're within Hanami project directory to run application console.
 8 You can read about available commands [here](http://hanamirb.org/guides/command-line/applications/), almost all of them have shortcut aliases with this plugin.
 9+
10+## Aliases ##
11+
12+| Alias | Description                              | Command                                        |
13+|-------|------------------------------------------|------------------------------------------------|
14+| HED | Set environment variable HANAMI_ENV to development | HANAMI_ENV=development |
15+| HEP | Set environment variable HANAMI_ENV to production | HANAMI_ENV=production |
16+| HET | Set environment variable HANAMI_ENV to test | HANAMI_ENV=test |
17+| hc | Run application console | hanami console |
18+| hd | Remove specified hanami resource (model, action, migration, etc.) | hanami destroy |
19+| hg | Create specified hanami resource (model, action, migration, etc.) | hanami generate | hanami generate |
20+| hgm | Create migration file | hanami generate migration |
21+| hs | Launch server with hanami application | hanami server |
22+| hsp | Launch server with specified port | hanami server -p |
23+| hr | List application routes | hanami routes |
24+| hdc | Create application database | hanami db create |
25+| hdd | Delete application database | hanami db drop |
26+| hdp | Create application database, load schema (if any), run pending migrations | hanami db prepare |
27+| hda | Run pending migrations, dump schema, delete all migration files | hanami db apply |
28+| hdv | Print current database version (timestamp of last applied migration) | hanami db version |
29+| hdrs | Drop and recreate application database | hdd && hdp |
30+| hdtp | Actualize test environment database | HET hdp |
31+| hrg | Grep hanami routes with specified pattern | hr &#124; grep |