Merge remote-tracking branch 'origin/command_info' into command_info
This commit is contained in:
commit
0a54067407
2 changed files with 15 additions and 0 deletions
|
|
@ -401,6 +401,15 @@ class Command(object, metaclass=CommandMeta):
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def get_command_info(self):
|
||||||
|
"""
|
||||||
|
This is the default output of func() if no func() overload is done.
|
||||||
|
Provided here as a separate method so that it can be called for debugging
|
||||||
|
purposes when making commands.
|
||||||
|
|
||||||
|
"""
|
||||||
|
self.get_command_info()
|
||||||
|
|
||||||
def get_command_info(self):
|
def get_command_info(self):
|
||||||
"""
|
"""
|
||||||
This is the default output of func() if no func() overload is done.
|
This is the default output of func() if no func() overload is done.
|
||||||
|
|
|
||||||
|
|
@ -202,6 +202,12 @@ class MuxCommand(Command):
|
||||||
else:
|
else:
|
||||||
self.character = None
|
self.character = None
|
||||||
|
|
||||||
|
def get_command_info(self):
|
||||||
|
"""
|
||||||
|
Update of parent class's get_command_info() for MuxCommand.
|
||||||
|
"""
|
||||||
|
self.get_command_info()
|
||||||
|
|
||||||
def get_command_info(self):
|
def get_command_info(self):
|
||||||
"""
|
"""
|
||||||
Update of parent class's get_command_info() for MuxCommand.
|
Update of parent class's get_command_info() for MuxCommand.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue