summaryrefslogtreecommitdiff
path: root/plugins/hanami
diff options
context:
space:
mode:
authorArtem Pyankov <artpyankov@gmail.com>2016-08-27 17:18:12 +0500
committerMarc Cornellà <marc.cornella@live.com>2018-04-15 20:08:52 +0200
commit7c62c57b9f23b32685a3ce668b54edd3032456fb (patch)
tree8e0bc72ff8b54a7406076c752718a767363be6ea /plugins/hanami
parente64cdc9ec40c4b98b612905cbdc6c86b14dc1fb6 (diff)
downloadzsh-7c62c57b9f23b32685a3ce668b54edd3032456fb.tar.gz
zsh-7c62c57b9f23b32685a3ce668b54edd3032456fb.tar.bz2
zsh-7c62c57b9f23b32685a3ce668b54edd3032456fb.zip
Add table of aliases for hanami plugin
Diffstat (limited to 'plugins/hanami')
-rw-r--r--plugins/hanami/README.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/hanami/README.md b/plugins/hanami/README.md
index 20e9dd5c4..81f2431a8 100644
--- a/plugins/hanami/README.md
+++ b/plugins/hanami/README.md
@@ -4,3 +4,26 @@ This plugin adds convinient ways to work with [Hanami](http://hanamirb.org/) via
## Usage ##
For example, type `hc` into your console when you're within Hanami project directory to run application console.
You can read about available commands [here](http://hanamirb.org/guides/command-line/applications/), almost all of them have shortcut aliases with this plugin.
+
+## Aliases ##
+
+| Alias | Description | Command |
+|-------|------------------------------------------|------------------------------------------------|
+| HED | Set environment variable HANAMI_ENV to development | HANAMI_ENV=development |
+| HEP | Set environment variable HANAMI_ENV to production | HANAMI_ENV=production |
+| HET | Set environment variable HANAMI_ENV to test | HANAMI_ENV=test |
+| hc | Run application console | hanami console |
+| hd | Remove specified hanami resource (model, action, migration, etc.) | hanami destroy |
+| hg | Create specified hanami resource (model, action, migration, etc.) | hanami generate | hanami generate |
+| hgm | Create migration file | hanami generate migration |
+| hs | Launch server with hanami application | hanami server |
+| hsp | Launch server with specified port | hanami server -p |
+| hr | List application routes | hanami routes |
+| hdc | Create application database | hanami db create |
+| hdd | Delete application database | hanami db drop |
+| hdp | Create application database, load schema (if any), run pending migrations | hanami db prepare |
+| hda | Run pending migrations, dump schema, delete all migration files | hanami db apply |
+| hdv | Print current database version (timestamp of last applied migration) | hanami db version |
+| hdrs | Drop and recreate application database | hdd && hdp |
+| hdtp | Actualize test environment database | HET hdp |
+| hrg | Grep hanami routes with specified pattern | hr &#124; grep |