fix alembic migration extraction
This commit is contained in:
parent
5ff3dad0e5
commit
27f3237279
1 changed files with 6 additions and 5 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue