aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"],