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))) (concat alembic-command " " args)))
(defun +grfn/extract-alembic-migration-name (output) (defun +grfn/extract-alembic-migration-name (output)
(string-match (rx (0+ anything) "Generating " (unless (string-match (rx (0+ anything) "Generating "
(group (one-or-more (not (syntax whitespace)))) (group (one-or-more (not (syntax whitespace))))
" ... done" " ..." (one-or-more (syntax whitespace)) "done"
(0+ anything)) (0+ anything))
output) output)
(user-error "Error: %s" output))
(match-string-no-properties 1 output)) (match-string-no-properties 1 output))
(defun -run-alembic (args) (defun -run-alembic (args)