aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-05-26 23:34:35 +0200
committerneodarz <neodarz@neodarz.net>2019-05-26 23:34:35 +0200
commit2a4e883191b881049a579d777e2c9c2c3fd3accc (patch)
tree6f54a7b049de0a01bf7147a7b91dd55a6ce576d9
parent2c1200b1cd084aeb084971698280176f04daea75 (diff)
downloadmy_new_personal_website-2a4e883191b881049a579d777e2c9c2c3fd3accc.tar.xz
my_new_personal_website-2a4e883191b881049a579d777e2c9c2c3fd3accc.zip
Rename cli.py to better file namesplit_code_more
-rw-r--r--cli/management.py (renamed from cli/cli.py)0
-rwxr-xr-xpyblog12
2 files changed, 6 insertions, 6 deletions
diff --git a/cli/cli.py b/cli/management.py
index 9d35c643..9d35c643 100644
--- a/cli/cli.py
+++ b/cli/management.py
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"],