From 40964495e731647b308f33ade5c94567a5095cbf Mon Sep 17 00:00:00 2001 From: Xavier L'Heureux Date: Tue, 23 Jul 2019 11:30:33 -0400 Subject: [PATCH] Hanami --- plugins.md | 2 +- tools/hanami.ion | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 tools/hanami.ion diff --git a/plugins.md b/plugins.md index 3f10078..fa4a59d 100644 --- a/plugins.md +++ b/plugins.md @@ -227,7 +227,7 @@ Since Ion does not support autocompletion via plugins, a lot of oh-my-zsh plugin |--------------------------+--------------------------------| | gulp | Not happening | |--------------------------+--------------------------------| -| hanami | Planned | +| hanami | Done | |--------------------------+--------------------------------| | helm | Not happening | |--------------------------+--------------------------------| diff --git a/tools/hanami.ion b/tools/hanami.ion new file mode 100644 index 0000000..4c0bfa7 --- /dev/null +++ b/tools/hanami.ion @@ -0,0 +1,25 @@ +# # Hanami Plugin # +# This plugin adds convenient ways to work with [Hanami](https://hanamirb.org/) via console. +# It's inspired by Rails plugin, so if you've used it, you'll feel like home. +# +# ## Usage ## +# +# For example, type `hc` into your console when you're within Hanami project directory to run +# the application console. Have a look at available shortcuts below. You can read more about +# these commands [on the official website](https://hanamirb.org/guides/command-line/applications/). + +alias hc='hanami console' +alias hd='hanami destroy' +alias hg='hanami generate' +alias hgm='hanami generate migration' +alias hs='hanami server' +alias hsp='hanami server -p' +alias hr='hanami routes' +alias hdc='hanami db create' +alias hdd='hanami db drop' +alias hdp='hanami db prepare' +alias hda='hanami db apply' +alias hdv='hanami db version' +alias hdrs='hdd && hdp' +alias hdtp='HET hdp' +alias hrg='hr | grep' -- GitLab