Add CLI command to init database

This commit is contained in:
2022-07-20 23:28:45 +02:00
parent 083451d506
commit 7f33df91ef
2 changed files with 7 additions and 0 deletions

View File

@@ -92,6 +92,13 @@ def serve(args):
) )
@subcommand()
def initdb(args):
from models import init
init()
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Main # Main