From 12e05d77288c39f262322eaee36faf3d0b31c781 Mon Sep 17 00:00:00 2001 From: neodarz <neodarz@neodarz.net> Date: Sun, 26 May 2019 16:40:34 +0200 Subject: Move new_post_cli to external file --- cli/cli.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli') diff --git a/cli/cli.py b/cli/cli.py index 51b9925c..71491357 100644 --- a/cli/cli.py +++ b/cli/cli.py @@ -77,3 +77,8 @@ def new_post(title): edit_post_with_editor(fullpath) return 0 + + +def new_post_cli(args): + """CLI wrapper around new_post.""" + new_post(args.title) -- cgit v1.2.1