From 2a4e883191b881049a579d777e2c9c2c3fd3accc Mon Sep 17 00:00:00 2001 From: neodarz Date: Sun, 26 May 2019 23:34:35 +0200 Subject: Rename cli.py to better file name --- pyblog | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pyblog') diff --git a/pyblog b/pyblog index b8cd4e71..7ad662c8 100755 --- a/pyblog +++ b/pyblog @@ -12,7 +12,7 @@ import dateutil.parser from utils import utils -from cli import cli +from cli import management as manage from cli import post @@ -47,27 +47,27 @@ def main(): parser_generate = subparsers.add_parser( "generate", aliases=["g", "gen"], description="Generate new or changed objects.") - parser_generate.set_defaults(func=cli.generate) + parser_generate.set_defaults(func=manage.generate) parser_regenerate = subparsers.add_parser( "regenerate", aliases=["r", "regen"], description="Regenerate the entire blog afresh.") - parser_regenerate.set_defaults(func=cli.regenerate) + parser_regenerate.set_defaults(func=manage.regenerate) parser_new_post = subparsers.add_parser( "preview", aliases=["p", "pre"], description="Serve the blog locally and auto regenerate upon changes.") - parser_new_post.set_defaults(func=cli.preview) + parser_new_post.set_defaults(func=manage.preview) parser_new_post = subparsers.add_parser( "deploy", aliases=["d", "dep"], description="Deploy build/ to origin/master without regenerating.") - parser_new_post.set_defaults(func=cli.deploy) + parser_new_post.set_defaults(func=manage.deploy) parser_new_post = subparsers.add_parser( "gen_deploy", aliases=["gd", "gendep"], description="Rebuild entire blog and deploy build/ to origin/master.") - parser_new_post.set_defaults(func=cli.gen_deploy) + parser_new_post.set_defaults(func=manage.gen_deploy) parser_new_post = subparsers.add_parser( "edit", aliases=["e", "ed"], -- cgit v1.2.1