diff options
author | neodarz <neodarz@neodarz.net> | 2019-05-26 16:21:58 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-05-26 16:22:31 +0200 |
commit | 75dc923f207cccfe4439f46792e624c9c5c230bd (patch) | |
tree | e8ed5ceb31cadbde89ed927ee4f116bac876424f /pyblog | |
parent | 73ffcccec884bbb62699b1df9ed9a4eecbc21c03 (diff) | |
download | my_new_personal_website-75dc923f207cccfe4439f46792e624c9c5c230bd.tar.xz my_new_personal_website-75dc923f207cccfe4439f46792e624c9c5c230bd.zip |
Move generate to external file
Diffstat (limited to 'pyblog')
-rwxr-xr-x | pyblog | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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"], |