diff options
author | kotfu <kotfu@kotfu.net> | 2018-06-22 16:26:59 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-06-22 16:26:59 -0600 |
commit | a73c061b82ac1824db8e1747698c90c0ae7766b1 (patch) | |
tree | 1ea8bd58ddd885776e91ed79dec41fb69b5a169a /cmd2/plugin.py | |
parent | 1cd46fd53c698f062995c2c45db57c07285a6f46 (diff) | |
download | cmd2-git-a73c061b82ac1824db8e1747698c90c0ae7766b1.tar.gz |
Postcommand hooks implemented
Diffstat (limited to 'cmd2/plugin.py')
-rw-r--r-- | cmd2/plugin.py | 5 |
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() |