summaryrefslogtreecommitdiff
path: root/plugins/ext_test
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2020-07-13 15:28:40 -0400
committeranselor <anselor@gmail.com>2020-07-14 19:26:30 -0400
commite38684d219847f636562ab2720b82aae4a6fd408 (patch)
treeec20d7a46b8cba1a662d46e79d5e004590bee93b /plugins/ext_test
parent683d049299c0cf7a2821b639a95ad0911bab1bc7 (diff)
downloadcmd2-git-e38684d219847f636562ab2720b82aae4a6fd408.tar.gz
Brought in cmd2 plugin template as a first-class member of cmd2 proper
Diffstat (limited to 'plugins/ext_test')
-rw-r--r--plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py b/plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py
index 02fd29b1..731a0f3b 100644
--- a/plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py
+++ b/plugins/ext_test/cmd2_ext_test/cmd2_ext_test.py
@@ -2,12 +2,17 @@
# coding=utf-8
"""External test interface plugin"""
-from typing import Optional
+from typing import Optional, TYPE_CHECKING
import cmd2
+if TYPE_CHECKING:
+ _Base = cmd2.Cmd
+else:
+ _Base = object
-class ExternalTestMixin:
+
+class ExternalTestMixin(_Base):
"""A cmd2 plugin (mixin class) that exposes an interface to execute application commands from python"""
def __init__(self, *args, **kwargs):