about summary refs log tree commit diff
path: root/+commands.el
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-03-25T00·52-0400
committerGriffin Smith <root@gws.fyi>2019-03-25T00·52-0400
commitc3cc2313513992f9e225d1bd39b7c858a5e3d463 (patch)
tree0e9736de5a2d0c9318e9ee5060214e3d229367ea /+commands.el
parent857bb51980457e0d34aea80f9095b3b03e70b874 (diff)
Command to make a new alembic migration
Diffstat (limited to '+commands.el')
-rw-r--r--+commands.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/+commands.el b/+commands.el
index 9b4a685e1c8c..4025a9504a42 100644
--- a/+commands.el
+++ b/+commands.el
@@ -115,6 +115,14 @@
 ;; Org-mode
 (ex! "cap"         #'+org-capture/dwim)
 
+(ex! "arev" #'generate-alembic-migration)
+
+(evil-define-command evil-alembic-upgrade (&optional revision)
+  (interactive "<a>")
+  (alembic-upgrade revision))
+
+(ex! "aup" #'evil-alembic-upgrade)
+
 ;; Elixir
 (add-hook! elixir-mode
   (ex! "AV" #'alchemist-project-toggle-file-and-tests-other-window)