aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-05-26 16:26:24 +0200
committerneodarz <neodarz@neodarz.net>2019-05-26 16:26:50 +0200
commit6f36091aa8bf5d4ae446346a945c6217c2493e97 (patch)
tree2da98fb2e383bced7e992736b734334b5aa2e647 /cli
parent75dc923f207cccfe4439f46792e624c9c5c230bd (diff)
downloadmy_new_personal_website-6f36091aa8bf5d4ae446346a945c6217c2493e97.tar.xz
my_new_personal_website-6f36091aa8bf5d4ae446346a945c6217c2493e97.zip
Move regenerate to external file
Diffstat (limited to '')
-rw-r--r--cli/cli.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/cli.py b/cli/cli.py
index ad081fb7..33bd1422 100644
--- a/cli/cli.py
+++ b/cli/cli.py
@@ -7,3 +7,9 @@ def generate(args):
"""Wrapper for generate_blog(fresh=False)."""
# pylint: disable=unused-argument
exit(generators.generate_blog(fresh=False))
+
+
+def regenerate(args):
+ """Wrapper for generate_blog(fresh=True)."""
+ # pylint: disable=unused-argument
+ exit(generators.generate_blog(fresh=True))