Commit 508144eb087eab76bb20d9f7148de3b10ef0a968
1 parent
c99e4b38
Exists in
master
and in
4 other branches
Add cli pattern
Showing
3 changed files
with
15 additions
and
3 deletions
Show diff stats
pdc_web.py
1 | 1 | # |
2 | 2 | # Flask app wrapper |
3 | 3 | # |
4 | -from app import create_app | |
5 | - | |
4 | +from app import create_app, cli | |
6 | 5 | |
7 | 6 | # |
8 | 7 | # Use app factory with configuration set by FLASK_ENV |
9 | 8 | # see app/__init_.py/create_app() for more details. |
10 | 9 | # |
11 | 10 | pdc_app = create_app() |
11 | + | |
12 | +# | |
13 | +# Declare command line interpreter | |
14 | +# used with 'flask aroma_db' command | |
15 | +# see aroma/cli.py for more details. | |
16 | +# | |
17 | +cli.register(pdc_app) | ... | ... |