summaryrefslogtreecommitdiff
path: root/cmd2/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/plugin.py')
-rw-r--r--cmd2/plugin.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/cmd2/plugin.py b/cmd2/plugin.py
new file mode 100644
index 00000000..dc9ec297
--- /dev/null
+++ b/cmd2/plugin.py
@@ -0,0 +1,27 @@
+#
+# coding=utf-8
+"""Classes for the cmd2 plugin system"""
+import attr
+
+
+@attr.s
+class PostparsingData:
+ stop = attr.ib()
+ statement = attr.ib()
+
+
+@attr.s
+class PrecommandData:
+ statement = attr.ib()
+
+
+@attr.s
+class PostcommandData:
+ stop = attr.ib()
+ statement = attr.ib()
+
+
+@attr.s
+class CommandFinalizationData:
+ stop = attr.ib()
+ statement = attr.ib()