aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-05-26 16:40:34 +0200
committerneodarz <neodarz@neodarz.net>2019-05-26 16:40:34 +0200
commit12e05d77288c39f262322eaee36faf3d0b31c781 (patch)
tree177ecdffd5f6bbedd651eb6b10df714e1383981e /cli
parentf3600fccc4a02324b5cc86549e644720097c61df (diff)
downloadmy_new_personal_website-12e05d77288c39f262322eaee36faf3d0b31c781.tar.xz
my_new_personal_website-12e05d77288c39f262322eaee36faf3d0b31c781.zip
Move new_post_cli to external file
Diffstat (limited to 'cli')
-rw-r--r--cli/cli.py5
1 files changed, 5 insertions, 0 deletions
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)