Commit 23782a06 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Call _post_execute() when a subcommand succeeds.

Thanks to Jacek for pointing out.
parent e364b278
......@@ -104,13 +104,7 @@ class PromptApplication(CLIApplicationBase):
try:
if self._execute(subcommand, args) != False:
if self.todolist.is_dirty():
self._archive()
if config().keep_sorted():
self._execute(SortCommand, [])
self.todofile.write(str(self.todolist))
self._post_execute()
except TypeError:
usage()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment