From 699833d933157443b97218e9df378c9d52c66ec2 Mon Sep 17 00:00:00 2001 From: neodarz <neodarz@neodarz.net> Date: Sun, 26 May 2019 16:50:04 +0200 Subject: Move touch_cli to external file --- pyblog | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'pyblog') 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"], -- cgit v1.2.1