aboutsummaryrefslogtreecommitdiff
path: root/pyblog
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-05-26 16:50:04 +0200
committerneodarz <neodarz@neodarz.net>2019-05-26 16:50:04 +0200
commit699833d933157443b97218e9df378c9d52c66ec2 (patch)
tree5ed2d75c1a058b581a51d63731b57d41f7be913c /pyblog
parent6d020825e5f2fa09bd5488954ecec2afe8c85aef (diff)
downloadmy_new_personal_website-699833d933157443b97218e9df378c9d52c66ec2.tar.xz
my_new_personal_website-699833d933157443b97218e9df378c9d52c66ec2.zip
Move touch_cli to external file
Diffstat (limited to 'pyblog')
-rwxr-xr-xpyblog7
1 files changed, 1 insertions, 6 deletions
diff --git a/pyblog b/pyblog
index 3c574445..0eeb82b2 100755
--- a/pyblog
+++ b/pyblog
@@ -53,11 +53,6 @@ from generators import generators
from cli import cli
-def touch_cli(args):
- """CLI wrapper around touch."""
- cli.touch(args.filename)
-
-
def deploy(args):
"""Deploys build directory to origin/master without regenerating.
@@ -507,7 +502,7 @@ def main():
parser_new_post.add_argument("filename",
help="path or basename of the source file, "
"e.g., 2015-05-05-new-blog-new-start.md")
- parser_new_post.set_defaults(func=touch_cli)
+ parser_new_post.set_defaults(func=cli.touch_cli)
parser_generate = subparsers.add_parser(
"generate", aliases=["g", "gen"],