fix alembic migration extraction

This commit is contained in:
Griffin Smith 2020-05-18 11:33:34 -04:00
parent 5ff3dad0e5
commit 27f3237279

View file

@ -997,11 +997,12 @@
(concat alembic-command " " args)))
(defun +grfn/extract-alembic-migration-name (output)
(string-match (rx (0+ anything) "Generating "
(group (one-or-more (not (syntax whitespace))))
" ... done"
(0+ anything))
output)
(unless (string-match (rx (0+ anything) "Generating "
(group (one-or-more (not (syntax whitespace))))
" ..." (one-or-more (syntax whitespace)) "done"
(0+ anything))
output)
(user-error "Error: %s" output))
(match-string-no-properties 1 output))
(defun -run-alembic (args)