aboutsummaryrefslogtreecommitdiff
path: root/pyblog
diff options
context:
space:
mode:
Diffstat (limited to 'pyblog')
-rwxr-xr-xpyblog8
1 files changed, 2 insertions, 6 deletions
diff --git a/pyblog b/pyblog
index a3f483d5..ace987ae 100755
--- a/pyblog
+++ b/pyblog
@@ -50,11 +50,7 @@ from config.config import *
from generators import generators
-
-def generate(args):
- """Wrapper for generate_blog(fresh=False)."""
- # pylint: disable=unused-argument
- exit(generators.generate_blog(fresh=False))
+from cli import cli
def regenerate(args):
@@ -658,7 +654,7 @@ def main():
parser_generate = subparsers.add_parser(
"generate", aliases=["g", "gen"],
description="Generate new or changed objects.")
- parser_generate.set_defaults(func=generate)
+ parser_generate.set_defaults(func=cli.generate)
parser_regenerate = subparsers.add_parser(
"regenerate", aliases=["r", "regen"],