diff options
author | neodarz <neodarz@neodarz.net> | 2019-05-26 23:34:35 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-05-26 23:34:35 +0200 |
commit | 2a4e883191b881049a579d777e2c9c2c3fd3accc (patch) | |
tree | 6f54a7b049de0a01bf7147a7b91dd55a6ce576d9 /pyblog | |
parent | 2c1200b1cd084aeb084971698280176f04daea75 (diff) | |
download | my_new_personal_website-2a4e883191b881049a579d777e2c9c2c3fd3accc.tar.xz my_new_personal_website-2a4e883191b881049a579d777e2c9c2c3fd3accc.zip |
Rename cli.py to better file namesplit_code_more
Diffstat (limited to 'pyblog')
-rwxr-xr-x | pyblog | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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"], |