From 7f33df91ef5b3594a0fc2706e8505572a4b5ebb0 Mon Sep 17 00:00:00 2001 From: Benjamin Sigonneau Date: Wed, 20 Jul 2022 23:28:45 +0200 Subject: [PATCH] Add CLI command to init database --- fioul.ini => fioul.ini.example | 0 fioul.py | 7 +++++++ 2 files changed, 7 insertions(+) rename fioul.ini => fioul.ini.example (100%) diff --git a/fioul.ini b/fioul.ini.example similarity index 100% rename from fioul.ini rename to fioul.ini.example diff --git a/fioul.py b/fioul.py index b943989..5a4daf9 100755 --- a/fioul.py +++ b/fioul.py @@ -92,6 +92,13 @@ def serve(args): ) +@subcommand() +def initdb(args): + from models import init + + init() + + # ---------------------------------------------------------------------- # Main