summaryrefslogtreecommitdiff
path: root/cmd2/plugin.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-06-22 16:26:59 -0600
committerkotfu <kotfu@kotfu.net>2018-06-22 16:26:59 -0600
commita73c061b82ac1824db8e1747698c90c0ae7766b1 (patch)
tree1ea8bd58ddd885776e91ed79dec41fb69b5a169a /cmd2/plugin.py
parent1cd46fd53c698f062995c2c45db57c07285a6f46 (diff)
downloadcmd2-git-a73c061b82ac1824db8e1747698c90c0ae7766b1.tar.gz
Postcommand hooks implemented
Diffstat (limited to 'cmd2/plugin.py')
-rw-r--r--cmd2/plugin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd2/plugin.py b/cmd2/plugin.py
index 47f4a514..377012b8 100644
--- a/cmd2/plugin.py
+++ b/cmd2/plugin.py
@@ -14,8 +14,9 @@ class PrecommandData():
@attr.s
class PostcommandData():
- stop = attr.ib(default=False)
+ stop = attr.ib()
+ statement = attr.ib()
@attr.s
class CommandFinalizationData():
- stop = attr.ib(default=False)
+ stop = attr.ib()