You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import click
|
|
from flask import Blueprint
|
|
from app.factory import db
|
|
|
|
|
|
cli_bp = Blueprint('cli', 'cli', cli_group=None)
|
|
|
|
|
|
@cli_bp.cli.command('init')
|
|
def init():
|
|
import app.models
|
|
db.create_all()
|